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™

Member Profile Page

s2Member Plugin. A Membership plugin for WordPress®.

Member Profile Page

Postby CrownOfMars » May 18th, 2011, 11:49 pm

First of all i want to apologise for coming here everyday and making a new post haha. I really do spend hours trying to work it out myself before coming here!

Basically, i'm using bbPress/s2Member together. I'm wanting to use the bbPress Profile pages to display the s2member profile details.

bbPress uses http://domain.com/forums/users/ as the profile page. So inside s2Member in the General Options > Login Welcome Page section i've entered the following redirection URL: http://domain.com/spa/forums/users/%%current_user_id%% and it works perfectly.

I've also modified the bbPress profile edit page (http://domain.com/forums/users/edit) to include the [s2Member-Profile /] shortcode so they can edit their profiles.

The problem:

I'm wanting to display the content in the [s2Member-Profile /] shortcode to the public on the http://domain.com/forums/users/ page, so each user has their own profile page with details such as their first name, last name etc, viewable to the public. I'm just not sure how i go about this.

Within the bbPress Profile template, i've added the following:

Code: Select all
<div><?php echo S2MEMBER_CURRENT_USER_DISPLAY_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_LAST_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?></div>
<div><?php echo S2MEMBER_CURRENT_USER_EMAIL; ?></div>


But, obviously, this only echo's the details on the user thats currently logged in, not the details associated to the user profile on the page. Is there a way i can target those codes in order for them to display the details based on the user-id of the page? I hope that makes sense.

In example is here: http://stephenjohnmartin.com/spa/forums/users/1/

I'd like show the users details to the public under the Profile: admin section.

Sorry for bothering you again!
User avatar
CrownOfMars
Registered User
Registered User
 
Posts: 12
Joined: April 27, 2011

Re: Member Profile Page

Postby Cristián Lávaque » May 19th, 2011, 12:38 pm

Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron