Is there such a thing as $post['USERNAME']? Where can I find the variable that tells me the name of the post owner?
$post['USERNAME']
|
2009-07-29, 08:51 PM
The variable for the user that is logged in and loading a page is {$mybb->user['username']}
2009-07-29, 09:01 PM
Where can I find the list of $mybb global variables?
2009-07-29, 09:07 PM
This is a list of ones for users and usergroups: http://www.learnmybb.com/forums/thread-144.html
It's basically {$mybb->user['X']} or {$mybb->usergroup['X']} where X is the column name from the users/usergroups table.
2009-07-29, 09:08 PM
Hmm, how come I can't use $mybb->user['username'] in Plugins??
You can, you have to define $mybb first.
Put that in your function and it'll work.
REP ++++++!!!!!
Question: How do I get the poster's name? For instance, I'm trying to edit the post bit so that it displays the FID4 of the topic poster... How do I do it
2009-07-29, 09:26 PM
But whenever I say
It only returns my FID4, not the FID4 of the poster. NVM WORKS PERFECTLY! THNAK YOu!
2009-07-29, 09:37 PM
If it's $post['X'] then it's information about that specific post, and about the author of that specific post.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 2 Guest(s)