MyBB Community Forums

Full Version: user array?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Where could I find the user array?

Example:
{$mybb->user['username']}
You can do a couple things to find all the array keys. You can do var_dump on $mybb->user or you can look at the mybb_users table. Each column in that table is an array key for $mybb->user.
Quote:You can do var_dump on $mybb->user
And how do I acomplish this exacly ? Thanks!
Quote:you can look at the mybb_users table
Found it. But unfortunately I didn't find what I was looking for (user's profile link). Sad
The build_profile_link function is in the inc/functions.php file.
and how do I reffer to that function in the templates?
In templates it would be easier to just build the string:

{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}
I tought of that, but the link won't work if SEO links are enabled, right?
I'm trying to make a theme here.

(I'm I hard nut to crack, I know)
It will still work Smile
Well I should have done my homework.

Thank you for your support and patience, really appreciate it!