Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-02T22:53:17-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=3087 2011-09-02T22:53:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=33836#p33836 <![CDATA[Re: S2Member and Wordpress Live Search]]>
If you don't know enough PHP for this, you can get help from a freelance developer in websites like jobs.wordpress.net, eLance.com or oDesk.com.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — September 2nd, 2011, 10:53 pm


]]>
2011-09-02T16:35:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=33784#p33784 <![CDATA[Re: S2Member and Wordpress Live Search]]>
Guster wrote:
I figured it out. I forgot that I put in all the member page ID’s in the “Specific Post/Page Access Restrictions”. I took them out and now it works great. Thanks again


I'm wondering if there is a way to automate insertion in to these page restriction lists based on certain behaviors, like comments with certain keywords or something to that affect. i have been storing my data so that I have access via ediscovery, but I am on hold until I know what my capabilities are with this organized data. Have you ever heard of StoredIQ? It is an information governance provided.

Statistics: Posted by presson — September 2nd, 2011, 4:35 pm


]]>
2011-07-08T19:08:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=22703#p22703 <![CDATA[Re: S2Member and Wordpress Live Search]]> Ah. Thanks for reporting back.
~ that is MUCH appreciated!

Statistics: Posted by Jason Caldwell — July 8th, 2011, 7:08 pm


]]>
2011-07-08T17:36:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=22696#p22696 <![CDATA[Re: S2Member and Wordpress Live Search]]> Statistics: Posted by Guster — July 8th, 2011, 5:36 pm


]]>
2011-07-08T17:10:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=22689#p22689 <![CDATA[Re: S2Member and Wordpress Live Search]]>
Guster wrote:
Hi there, I have an unusual problem that I need help with.
I have all of my level 1 pages restricted. I can access them with my admin account. But when my members get the level 1 membership they click on a level 1 page and it takes them to the membership options page.
So… For a test I put all the level 1 pages in level 0 and saved changes. Logged back into the site as a member instead of the admin, and it did the same thing as before (click on a level 1 page and it takes them to the membership options page).
Can you think of any reason for this?
This sounds like your s2Member Roles have gotten corrupted somehow. Have you installed/used any of the User Role editing plugins? If all else fails, I would try deactivating s2Member, and then reactivate it so that your Roles/Capabilities get reset to the proper configuration.

Statistics: Posted by Jason Caldwell — July 8th, 2011, 5:10 pm


]]>
2011-07-08T11:45:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=22655#p22655 <![CDATA[Re: S2Member and Wordpress Live Search]]> I have all of my level 1 pages restricted. I can access them with my admin account. But when my members get the level 1 membership they click on a level 1 page and it takes them to the membership options page.
So… For a test I put all the level 1 pages in level 0 and saved changes. Logged back into the site as a member instead of the admin, and it did the same thing as before (click on a level 1 page and it takes them to the membership options page).
Can you think of any reason for this?

Statistics: Posted by Guster — July 8th, 2011, 11:45 am


]]>
2011-04-22T22:37:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=13202#p13202 <![CDATA[Re: S2Member and Wordpress Live Search]]> Statistics: Posted by csixty4 — April 22nd, 2011, 10:37 pm


]]>
2011-04-19T00:01:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=12891#p12891 <![CDATA[Re: S2Member and Wordpress Live Search]]>
100% Resolved ( will be included with s2Member v3.6+ )

Statistics: Posted by Jason Caldwell — April 19th, 2011, 12:01 am


]]>
2011-04-18T23:55:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=12890#p12890 <![CDATA[Re: S2Member and Wordpress Live Search]]> Statistics: Posted by vitorclaw — April 18th, 2011, 11:55 pm


]]>
2011-04-18T22:35:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=12882#p12882 <![CDATA[Re: S2Member and Wordpress Live Search]]> is_admin() Conditional, whenever AJAX requests are processed through /admin-ajax.php. You see, s2Member does NOT Filter queries processed inside admin panels for obvious reasons. However, as we've seen here, exceptions do exist ( i.e. Ajax search plugins ).

I'm attaching a patched file that can be uploaded to an existing installation of s2Member v3.5.8. Unzip the attached file, and upload it. Please allow this revised file to overwrite your existing copy of /s2member/includes/classes/querys.inc.php.

For Daves reference, and/or anyone else writing Ajax search plugins that you'd like to make compatible with s2Member's Query Filters, here is the section of code that was modified:
Code:
if (!is_admin () /* The additional Ajax checks below, allow search plugins like Daves Live Search to be Filtered. Even when `is_admin() = true`.
See: `http://wordpress.org/extend/plugins/daves-wordpress-live-search/`. Also see: `http://www.primothemes.com/forums/viewtopic.php?f=4&t=3087#p12786`. */
|| (is_admin () && defined ("DOING_AJAX") && DOING_AJAX && !empty ($_REQUEST["action"]) && (did_action ("wp_ajax_nopriv_" . $_REQUEST["action"]) || did_action ("wp_ajax_" . $_REQUEST["action"])) && $wp_query->is_search ()))
    { 
Ajax Developers: please make sure that your plugin is using the WP_Query class, and please make sure that your Ajax request follows the WordPress standard of using /admin-ajax.php. Just like Daves Live Search plugin.

querys.inc.php.zip
Also, please make sure s2Member's Alternative View Protection is set to: Searches, Searches and Feeds, or Yes ( All ). Any of those options should do fine. In the case of Daves Live Search, also make sure that you've cleared your search result cache under the Advanced Tab of Daves Live Search plugin.

This issue should be resolved now.
Please write back to confirm, and then we'll have the changes included in the release of s2Member v3.6+.

100% Resolved ( awaiting confirmation )

Statistics: Posted by Jason Caldwell — April 18th, 2011, 10:35 pm


]]>
2011-04-16T18:26:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=12786#p12786 <![CDATA[Re: S2Member and Wordpress Live Search]]>

Statistics: Posted by vitorclaw — April 16th, 2011, 6:26 pm


]]>
2011-04-13T23:08:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9994#p9994 <![CDATA[Re: S2Member and Wordpress Live Search]]>
Well, I tried to change the code just like you said but the private post still appearing on the search, even when its not beign displayed at the latest posts section. I also tried to change the alternate view protection to all other options and the posts still appearing. Applying the s2member filter to the query doesn`t work either.

By the way I got a strange behaviour, i got this from firebug console

Code:
{"searchTerms":"teste","results":[],"displayPostMeta":false}


No results, but I have a post named Teste, which appears when i`m logged as an admin

Statistics: Posted by vitorclaw — April 13th, 2011, 11:08 pm


]]>
2011-04-13T22:15:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9989#p9989 <![CDATA[Re: S2Member and Wordpress Live Search]]>
Could you try a different change? Line 61 again. Take Jason's suggestion out and try this:

Code:
$posts = $wpQueryResults->query(array(
's' => $_GET['s'],
'showposts' => $maxResults,
'post_type' => 'any',
'post_status' => 'publish',
));


Then, about 25 lines below that, replace:

Code:
foreach($wpQueryResults->posts as $result)


with:

Code:
foreach($posts as $result)

Statistics: Posted by csixty4 — April 13th, 2011, 10:15 pm


]]>
2011-04-12T23:08:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9648#p9648 <![CDATA[Re: S2Member and Wordpress Live Search]]>
Code:
      attach_s2member_query_filters();
         $wpQueryResults->query(array(
            's' => $_GET['s'],
            'showposts' => $maxResults,
            'post_type' => 'any',
            'post_status' => 'publish',
         ));
      detach_s2member_query_filters();
        $this->searchTerms = $wpQueryResults->query_vars['s'];


Right here at line 61 right?

Statistics: Posted by vitorclaw — April 12th, 2011, 11:08 pm


]]>
2011-04-12T22:55:47-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9646#p9646 <![CDATA[Re: S2Member and Wordpress Live Search]]> Also, can you please confirm that you tried this?
Code:
attach_s2member_query_filters();
        $wpQueryResults->query(array(
          's' => $_GET['s'],
          'showposts' => $maxResults,
          'post_type' => 'any',
          'post_status' => 'publish',
        ));
detach_s2member_query_filters();  

Statistics: Posted by Jason Caldwell — April 12th, 2011, 10:55 pm


]]>
2011-04-12T22:19:13-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9640#p9640 <![CDATA[Re: S2Member and Wordpress Live Search]]>

Statistics: Posted by vitorclaw — April 12th, 2011, 10:19 pm


]]>
2011-04-12T21:57:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9638#p9638 <![CDATA[Re: S2Member and Wordpress Live Search]]> viewtopic.php?f=4&t=3087&p=9635#p9627 * We'll continue to investigate in the mean time.

Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:57 pm


]]>
2011-04-12T21:50:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9635#p9635 <![CDATA[Re: S2Member and Wordpress Live Search]]>

Statistics: Posted by vitorclaw — April 12th, 2011, 9:50 pm


]]>
2011-04-12T21:04:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9627#p9627 <![CDATA[Re: S2Member and Wordpress Live Search]]> is_search(), but if you set Alternative View Protection to "All", it should work. In other words, s2Member might be unable to detect that these are search results, but setting Alternative View Protection to "All" would eliminate that issue for you.

Also, be sure that you test while logged-out. Or, while logged-in as a Member, NOT an Administrator.

If all else fails, open DavesWordPressLiveSearchResults.php, and find this section:
Code:
        $wpQueryResults->query(array(
          's' => $_GET['s'],
          'showposts' => $maxResults,
          'post_type' => 'any',
          'post_status' => 'publish',
        )); 

Change it to:
Code:
attach_s2member_query_filters();
        $wpQueryResults->query(array(
          's' => $_GET['s'],
          'showposts' => $maxResults,
          'post_type' => 'any',
          'post_status' => 'publish',
        ));
detach_s2member_query_filters(); 

Statistics: Posted by Jason Caldwell — April 12th, 2011, 9:04 pm


]]>
2011-04-12T14:56:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9583#p9583 <![CDATA[Re: S2Member and Wordpress Live Search]]> Statistics: Posted by vitorclaw — April 12th, 2011, 2:56 pm


]]>
2011-04-12T11:11:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9576#p9576 <![CDATA[Re: S2Member and Wordpress Live Search]]>
You could probably implement it the access check using a function from the Advanced Query Conditionals. You can read about them here WP Admin -> s2Member -> API / Scripting -> Advanced Query Conditionals.

The developer of that plugin may be interested in having it work with s2Member and help you.

Statistics: Posted by Cristián Lávaque — April 12th, 2011, 11:11 am


]]>
2011-04-12T08:13:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9569#p9569 <![CDATA[Re: S2Member and Wordpress Live Search]]>

Statistics: Posted by vitorclaw — April 12th, 2011, 8:13 am


]]>
2011-04-12T02:38:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9537#p9537 <![CDATA[Re: S2Member and Wordpress Live Search]]>

Have you tried the alternative views settings? WP Admin -> Genearl Options -> Alternative View Protection

Statistics: Posted by Cristián Lávaque — April 12th, 2011, 2:38 am


]]>
2011-04-11T14:24:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=3087&p=9491#p9491 <![CDATA[S2Member and Wordpress Live Search]]>
I already tried to apply the s2Member filters to the plugin search core but it doesn`t work. Private content still appearing for everyone.

Is there any kind of function to prevent this kind of behavior?

Thanks

Statistics: Posted by vitorclaw — April 11th, 2011, 2:24 pm


]]>