Community Support Forums — WordPress® ( Users Helping Users ) — 2011-07-27T01:57:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2839 2011-07-27T01:57:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2839&p=29259#p29259 <![CDATA[Re: Question About IP]]> viewtopic.php?f=4&t=14230

Statistics: Posted by Cristián Lávaque — July 27th, 2011, 1:57 am


]]>
2011-04-12T19:17:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2839&p=9609#p9609 <![CDATA[Re: Question About IP]]> Thanks for the great suggestion.
I'll see what we can do about this in the next release.

Until then, here is a hackety hack that should work for you.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_action 
("ws_plugin__s2member_before_ip_restrictions_ok", "my_function");
function my_function ($vars = array ())
    {
        if (is_object ($user = new WP_User ($username = $vars["restriction"]))) /* A Username restriction? */
            if ($user->has_cap ("s2member_level1")) /* OK. So now, are they at Membership Level #1 ? */
                $vars["__refs"]["restriction"] = false; /* Do NOT impose restrictions. */
    }
?>

Statistics: Posted by Jason Caldwell — April 12th, 2011, 7:17 pm


]]>
2011-04-11T09:45:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2839&p=9484#p9484 <![CDATA[Re: Question About IP]]> I have a different problem, but I figured this was the only post about IP addresses, so I should stick it here.

Is there any plans in the future for having different IP access to different levels of membership.
In my case we are doing things for schools, whereby you have an individual user (a pupil say) and a silver member which might be a school. So all pupils in one school can login in as the same user.

Individual members I want to have limited IP usage. Silver members I want unlimited.

Just wondered if you guys had thought of this and it was on your radar, or there was an easy way to make this so.
Thanks in advance, Sam

Statistics: Posted by phenotype — April 11th, 2011, 9:45 am


]]>
2011-03-27T17:15:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2839&p=8473#p8473 <![CDATA[Re: Question About IP]]>

You can find the unique IP restrictions configuration here WP Admin -> s2Member -> General Options -> Unique IP Access Restrictions.

Is that what you were looking for?

Statistics: Posted by Cristián Lávaque — March 27th, 2011, 5:15 pm


]]>
2011-03-27T05:49:12-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2839&p=8443#p8443 <![CDATA[Question About IP]]> Statistics: Posted by Supertvplayer — March 27th, 2011, 5:49 am


]]>