latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Where do I put the code please?

Home Forums Community Forum Where do I put the code please?

This topic contains 0 replies, has 1 voice. Last updated by  Lavish Dhand 4 years, 4 months ago.

Topic Author Topic
Posted: Thursday Aug 30th, 2012 at 4:38 pm #23618
Lavish Dhand
Username: lavish

Can someone have a look here :

http://www.s2member.com/forums/topic/uri-restriction-for-buddypress-profile/

and please guide me where to put the following code:

$displayed_username = str_replace("/members/", "", $_SERVER["REQUEST_URI);
$slash = strpos($displayed_username, "/");
$displayed_username = substr_replace($displayed_username, "", $slash);

If I put the above code in wp-content/plugins/s2member/includes/classes/ruris.inc.php my website goes blank white!!

Thank you very much for the help..

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.