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™

Customize The Lockout Error

s2Member Plugin. A Membership plugin for WordPress®.

Customize The Lockout Error

Postby cdlambden » August 17th, 2011, 1:58 pm

Hi, if a user has logged in from too many many ips and becomes logged out, how can i change the message they wee when they try to login again? Thanks!
User avatar
cdlambden
Registered User
Registered User
 
Posts: 12
Joined: August 17, 2011

Re: Customize The Lockout Error

Postby foxydot » August 17th, 2011, 3:46 pm

The text is defined in the plugin file s2member/includes/classes/ip-restrictions.inc.php starting on line 68.

Unfortunately, it's a simple echo statement and not tied to a hook or anything where you could alter it without affecting the plugin core, but it is a simple enough change to the plugin core that if you have some coding ability it shouldn't be too hair raising. Just make a note somewhere, because it will likely revert when you upgrade the plugin.
User avatar
foxydot
Registered User
Registered User
 
Posts: 6
Joined: December 6, 2010

Re: Customize The Lockout Error

Postby cdlambden » August 17th, 2011, 9:43 pm

Thanks! That's exactly what I was looking for. :)
User avatar
cdlambden
Registered User
Registered User
 
Posts: 12
Joined: August 17, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron