MyBB Community Forums

Full Version: Include mybb username in custom page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Lets say to be simple...
I have a page on the same website which i want to include the user's username on.
So it says Hello LowPriceBargains,

LowPriceBargains = username


Is it possible?

Also it would be nice to know how i would check if they are logged in to my forum...
Are you using a plugin for the custom page? If yes, you could place the string {$mybb->user['username']} in your custom page to retrieve the username.

If the page isn't part of mybb (I mean, if you only created a xhtml page with the same style of mybb) that code won't have any effects. There's a tutorial for including in an external page the mybb databases, I will look for it..
--EDIT-- Like this: http://community.mybb.com/thread-51222.html
its possible ? :

use a code to show the user name after he do login to board . like VB

my mean in this pic