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™

BuddyPress Admin Bar Signup Redirect to /Register

s2Member Plugin. A Membership plugin for WordPress®.

BuddyPress Admin Bar Signup Redirect to /Register

Postby AMEEKER » January 16th, 2012, 5:11 pm

The BuddyPress admin bar for logged out users shows a signup link, and that link directs to /register. I'd like it to direct to the page I've designated within S2Member as my page for members to join.

There is an option within BuddyPress to assign its pages to your own WP pages (example: Register to "my grandma's cat" page...) but when I did that, it didn't change the Signup link and ALSO changed the page I have designated as my page for members to join to direct to /register.

Does this make sense at all? What I'd LIKE to do is completely remove the Signup link in the BuddyPress admin bar (and I can do that my just yanking out this code below) but then I'm sure in subsequent BP upgrades, it will return.

Is there something I've missed along the way that will direct that Signup link to my registration page, or another way I can remove that action which displays the signup link that won't also be removed with every upgrade?


// Show "Sign Up" link if user registrations are allowed
if ( bp_get_signup_allowed() )
echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page(false) . '">' . __( 'Sign Up', 'buddypress' ) . '</a></li>';
User avatar
AMEEKER
Registered User
Registered User
 
Posts: 13
Joined: April 18, 2011

Re: BuddyPress Admin Bar Signup Redirect to /Register

Postby Raam Dev » January 19th, 2012, 10:48 pm

You should be able to hide that menu item via CSS instead of modifying the code itself. Adding the following line to your theme's style.css file (or whatever CSS file is loaded for that page) should do the trick:

Code: Select all
li.bp-signup { display:none; }
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

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

cron