Is there a string of code I can use to show the viewers username?
When I added this to the hello world plugin I got:
Your username is ['username'];
Did you globalize the $mybb variable?
e.g.
function hello_world($page)
{
global $mybb;
$page = str_replace("<div id=\"content\">", "<div id=\"content\"><p>Your username is {$mybb->user['username']}</p>", $page);
return $page;
}
I have now, thanks for the help!
Now how do you show when the user registered?