MyBB Community Forums

Full Version: Variable for profilelink?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So i got my custom website almost finished, but id like the profile link in one of the dropdown menus for the header.
I customized the header so it would work like this.. But i still need to find the variable for just the link..

Would this work?

<a href="member.php?action=profile&{$uid}">Profile</a>
Replace {$uid} with this:

{$mybb->user['uid']}
Are you sure it isnt this?

{$memprofile['uid']}

Did some research and found it in one of the templates.
(2016-05-26, 02:50 PM)SlayerLegendz Wrote: [ -> ]Are you sure it isnt this?

{$memprofile['uid']}

Did some research and found it in one of the templates.

What dropdowns are you referring to? If it's in the header, use the variable I gave you above.
Ok, thanks worked perfectly Smile
(2016-05-26, 02:53 PM)SlayerLegendz Wrote: [ -> ]Ok, thanks worked perfectly Smile

No problem, {$mybb->user['uid']} is your own uid, incase you didn't figure it out already.