MyBB Community Forums

Full Version: Get Tags?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am not sure what there are called but is there a thread or page on ALL the tags?

So if i want to get the username the tag would be $mybb->user['username']..

Etc...

I am looking for the following tags:
- Profile Link... I tried $mybb->user['profilelink'] = no go
- New Messages
- and i will probably need more, so if there is a reference sheet then that will help
What are you referring as "tags" they are called variables.

For displaying profile link you'll need to use

member.php?action=profile&uid={$mybb->user['uid']}

As for new messages if you are referring to new private messages use


{$mybb->user['pms_unread']}



For full list of variables save the following content as php file and move it to your forum root and execute it via url, it will dump all mybb variables.

<?php
define("IN_MYBB", 1);

require_once "./global.php";

echo '<pre>';
print_r($mybb);
die('</pre>');
?>
Ok thanks!

And one more question (Noobie Question)

Would i have to use javascript if wanted the PM Number to show up when the unreadpm > 0?

So...
[INBOX] <- No unread pm's//// [INBOX 1] <--- One unread pm
You can use Template Conditionals plugin for that. http://mybbhacks.zingaburga.com/showthre...464&page=1

Activate it, then put into template:
[INBOX <if $mybb->user['pms_unread'] then>{$mybb->user['pms_unread']} </if>]