MyBB Community Forums

Full Version: Profile button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I notice there is a profile button (profile.gif) so was wondering how I would add that button to the bottom of the post, alongside the Email, Send PM, WWW, and Find buttons. Is there a switch in the Admin CP I am not seeing, or is this a hack the template type thing? Thanks.

Ken
To see the profile of a user, just click their username in their post, although I think there was a post about this. Search for forums for profile button, by using the forums search facility.

Also I'm sure this'll be easy to implement though. I'll try this on my test board on my local PC.
Hi, I searched the forum before I posted. Ill try looking again. Sure you can get to the profile by clicking on their name, its just nice to have a button that is explicit about it. And since its provided...
did you have any joy mate in getting it on there?

Cheers
I've cracked it, pretty simple to do.

Goto AdminCP -> Templates -> Modify / Delete -> *your template* -> Expand -> Post Bit templates -> Post bit -> Change Original.

Find:
$email$pm$www$find
replace with:
$email
 <a href="member.php?action=profile&uid=$post[uid]"><img src="images/profile.gif" border="0"></a> $pm$www$find
This'll place the profile button between the email and pm buttons, although you can move
<a href="member.php?action=profile&uid=$post[uid]"><img src="images/profile.gif" border="0"></a>
any between the $pm and $www or $www and $find depending how you want it layed out, but having it between the email and the pm button looks best.

Any problems post back
That worked! Thanks a lot.

Ken