MyBB Community Forums

Full Version: Another noob needing help :)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
to make this clear I'm not asking for the code(although that would be very very helpful Smile)

Ok so this is the theme I'm coding for Svizy's P2H, i made it as complex as possible for some strange and unknown reason but he liked it(shame i can't code it lol) and i first need help with the login box demonstrated in the 2 screenshots is what I'm trying to code

login box(logged in but collapsed)
http://i50.tinypic.com/w9zgk9.png

login box(logged in and uncollapsed)
http://i48.tinypic.com/2qa39mw.png

So my first question is what is the working code to get the avatars to show, although i saw it a while ago i can't for the life of me find it again.

My second question is where do i change the welcome back X you last logged in blah blah to Logged in as X, or if i could create a custom template and have the code in there if so what would i need to use to show the current user.

Thats about all i can think of for the login part lol. If you want to kill me and collect my organs for asking for your help get in line svizy is first Toungue

edit: this is what has happened so far lol http://i49.tinypic.com/11i0gi0.png
I can reply for the avatar thing.. anyway i didn't get it.. are you asking how to do a toggle menu?

<img src="{$mybb->settings['bburl']}/{$mybb->user['avatar']}" height="25" width="25">
asking which templates or files to edit so it shows up Logged in as 'Name here'
You have to put the welcomeblock there
(2010-06-23, 07:01 AM)Trinit Wrote: [ -> ]You have to put the welcomeblock there
He wants to know how to chage the text in the welcomeblock. Is that changeble in some themplate or you need to make everything on your own if you wish to change that (wondering this myself as well)?
It would be very helpful, if someone could show me which files to edit Sad
To change it, you need to edit inc/languages/your_language/global.lang.php file:
$l['welcome_back'] = "<strong>Welcome back, {1}</strong>. You last visited: {2}";

You can find the variable in your header_welcomeblock_member template (by default):
{$lang->welcome_back}
Thats not necessary, just replace:

{$lang->welcome_back}

With:

<strong>Logged in as {$mybb->user['username']}</strong>