MyBB Community Forums

Full Version: Variable help..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need a few variables.

Can anyone tell me how I can do the following?

  1. Show the current time/date on the index (the default code, I forget it).
  2. If you're a logged in user, show one navigation bar, if you're not, show another (need a if logged in variable).
  3. "Hello *USERNAME*" variable (I need a variable that shows a persons username on the index, and if you're not logged in, show "Guest").

I'll pay for this.
This is probably the easiest way to do what you want: http://mybbhacks.zingaburga.com/showthread.php?tid=260
Thanks Tim, but even when using that, how would I go about doing this? I got all of the things posted above, but I did forget to post one (this is the only thing that I can't figure out how to do).

On the forum homepage, I want it to show the currently logged in users avatar. If they don't have an avatar, then display the image noavatar.png, and if they're a guest, display the image noavatar.png. How do I do this?
Wrap the avatar in a div element with a by image noavatar.png
I don't understand Jessie?