PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
jeanmorency wrote:I had to deal with this issue after setting up an account for demo purpose.
What best practice can you suggest to set up a demo account that will be shared with various prospects (thus multiple IPs) without compromising the restrictions rules set for all other users?
Thanks
<?php
add_filter ("ws_plugin__s2member_disable_login_ip_restrictions", "my_s2_login_ip_restriction_handler");
function my_s2_login_ip_restriction_handler ($what_s2member_says = false, $vars = array ())
{
if (strtolower ($vars["username"]) === "mydemouser")
return true; /* Disable for this Username. */
/**/
else /* Return what s2Member says ( i.e. false ). */
return $what_s2member_says;
}
?>
Please elaborate just a bit further. You tried the hack above? For what reason exactly? and in what way did it not succeed for you? Also, please include the WordPress version number, and s2Member version that you're running with.Sparklesperson wrote:I tried the hack - no difference. What's next?
If you've done all of this, and the problem persists, I would start looking at your caching plugins.theinnerdancer1 wrote:what if I have done all this and they still receive the message? What else could it be?
Users browsing this forum: Bing [Bot] and 2 guests