Page 1 of 1

Alternative View Protection

PostPosted: August 20th, 2011, 3:31 am
by drbyte
Hi Jason

Just noticed that the Alternative View Protection sometimes hangs. You have to reset it for whatever you need to protect. Resting it by choosing another option and save then choose the original option then save.


Updates

Everything seems OK but the search results.

Re: Alternative View Protection

PostPosted: August 20th, 2011, 4:27 pm
by Jason Caldwell
Thanks for reporting this Sam.
Are you running any caching plugins? Or anything that modifies WordPress search results, another plugin perhaps, one that stores its own cache of results maybe?

Re: Alternative View Protection

PostPosted: August 20th, 2011, 9:44 pm
by drbyte
Hi Jason

Yes, we are running WP Super Cache and Search Tags Plugins. I have disabled both of them and cleared the browser cache when I was testing but the results are the same.

Are custom post types covered under the alternative view types?

Thank You

Re: Alternative View Protection

PostPosted: August 21st, 2011, 11:39 am
by Jason Caldwell
drbyte wrote:Are custom post types covered under the alternative view types?
Yes, Custom Post Types are covered by s2Member's Post Level Restrictions, based on Post ID; and therefore the Alternative View Protection is also good for Custom Post Types. However, Alternative View Protection for s2Member works along with the WP_Query class ( part of the WordPress core ). Some plugins make direct SQL queries instead of doing everything "the WP way", and as a result, queries performed by some plugins may not get covered by s2Member.

Have you tried this against a standard WP search ( i.e. /?s=search+term ), without the additional plugins? If it still happens then, let's take a closer look. Otherwise, post a link to that search plugin you're using and I'll have a look for you. Short of that, you might try a different search plugin, one that uses the WP_Query class to perform searches, either directly, or indirectly.

Re: Alternative View Protection

PostPosted: August 23rd, 2011, 12:18 am
by drbyte
Hi Jason

Yes we are using the default WP search engine. The weird thing is that these posts have no tags no text..just a title and it's coming up..I am suspecting that the permalink have something to do with it. /%postname% somehow is not being covered.

I will try again, maybe there is something in the function file that is not right. I use that file to go around from installing plugins

Sam