MyBB Community Forums

Full Version: Trying to find the "find uid" variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to add a "Your Threads" button to the header of my forum.
This is the code I should be using (I think)

<a href="http://www.minecraftlounge.net/search.php?action=finduserthreads&uid=XXXXX">Your Threads</a>

where XXXXX should be the variable that automatically finds the UID of the person logged in.

I've tried this variable but it hasn't worked:
$mybb->user['uid']


I'm so confused.
The variable {$mybb->user['uid']} should work just fine.
(2012-06-14, 05:58 PM)euantor Wrote: [ -> ]The variable {$mybb->user['uid']} should work just fine.

Thank you very much! I really appreciate the help! May I suggest adding an option for adding things like this to the ACP? Or at least add a .txt file to the ACP that includes codes like the one above.

Thank you anyway!
All variables have to be wrapped in curly braces "{" "}". There are so many variables though that it would be fairly difficult to document them all anywhere.