Community Support Forums — WordPress® ( Users Helping Users ) — 2011-03-23T20:26:45-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2792 2011-03-23T20:26:45-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2792&p=8236#p8236 <![CDATA[Re: GEO filtering]]>
What comes to mind is to use conditions where you'd protect content, instead of protecting the whole page. If you have a function that checks the user's location, you can then determine if s2Member should have anything to do with him or not.

Code:
<?php
if 
(dont_use_s2member_with_this_user() || current_user_is('s2member_level1')) {
    echo 'The content goes here.';
}
 else {
    echo 'A message asking him to purchase access.';
}
?>


You could probably also have anything that s2Member would moderate access to, go through the function automatically using a hook, and decide there if s2Member has to mess with that person or not.

Statistics: Posted by Cristián Lávaque — March 23rd, 2011, 8:26 pm


]]>
2011-03-23T12:43:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2792&p=8216#p8216 <![CDATA[GEO filtering]]>
Whats the best way to effectively turn off S2member dynamically?

Statistics: Posted by jb1360 — March 23rd, 2011, 12:43 pm


]]>