Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-19T12:38:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6488 2011-05-19T12:38:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6488&p=15386#p15386 <![CDATA[Re: Member Profile Page]]> https://codex.wordpress.org/Function_Re ... t_userdata :)

Statistics: Posted by Cristián Lávaque — May 19th, 2011, 12:38 pm


]]>
2011-05-18T23:49:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6488&p=15353#p15353 <![CDATA[Member Profile Page]]>
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:
<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!

Statistics: Posted by CrownOfMars — May 18th, 2011, 11:49 pm


]]>