Deaths
03-29-2006, 10:00 PM
Add URL to profile to Welcome Message in navbar
vBHackers.com (http://www.vbhackers.com)
Introduction:
One of the few things which annoy me about vB is having to look for a link for my profile (either a post or in the WOL), unlike in IPB. So, I wrote this little template edit to make my life, your life and your members life a bit easier ;).
The edits:
Open up the Navbar template (Admincp -> Styles & Templates -> Style Manager -> Select the "Edit Templates" options in the dropdown next to the skin you wish to edit -> Click "[? ?]" next to "Navigation / Breadcrumb Templates" -> Click [Edit] next to "navbar")
Find:
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
Replace it with:
<div class="smallfont">
<strong>
<phrase 1="<a href='member.php?u=$userid'>$bbuserinfo[username]</a>"> $vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
Press save!
This will change the:
Welcome, Deaths.
You last visited: Today at 10:55 AM
Private Messages: Unread 0, Total 74.
Text into:
Welcome, Deaths (LINK_TO_PROFILE).
You last visited: Today at 10:55 AM
Private Messages: Unread 0, Total 74.
PLEASE NOTE:
This may not work on custom styles. If you have a custom style and wish to apply this hack but can't, post the navbar template (and possibly a link to your site) and I'll see if I can help.
Looking for more great vB 3.5 modifications? Some exclusive modifications only available at vBhackers.com (http://www.vbhackers.com):
* Deaths BBCode (http://www.vbhackers.com/forum/showthread.php?t=3598), /you BBCode (http://www.vbhackers.com/forum/showthread.php?t=3597), WikiPedia BBCode (http://www.vbhackers.com/forum/showthread.php?t=3594), Bump System Plugin (http://www.vbhackers.com/forum/showthread.php?t=3319), Today's Posts on Forumhome (numer) (http://www.vbhackers.com/forum/showthread.php?t=3223), Latest X Threads on Forumhome Advanced (with forumname!) (http://www.vbhackers.com/forum/showthread.php?t=3593) and many, many more! (http://www.vbhackers.com/forum/index.php)
vBHackers.com (http://www.vbhackers.com)
Introduction:
One of the few things which annoy me about vB is having to look for a link for my profile (either a post or in the WOL), unlike in IPB. So, I wrote this little template edit to make my life, your life and your members life a bit easier ;).
The edits:
Open up the Navbar template (Admincp -> Styles & Templates -> Style Manager -> Select the "Edit Templates" options in the dropdown next to the skin you wish to edit -> Click "[? ?]" next to "Navigation / Breadcrumb Templates" -> Click [Edit] next to "navbar")
Find:
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
Replace it with:
<div class="smallfont">
<strong>
<phrase 1="<a href='member.php?u=$userid'>$bbuserinfo[username]</a>"> $vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
Press save!
This will change the:
Welcome, Deaths.
You last visited: Today at 10:55 AM
Private Messages: Unread 0, Total 74.
Text into:
Welcome, Deaths (LINK_TO_PROFILE).
You last visited: Today at 10:55 AM
Private Messages: Unread 0, Total 74.
PLEASE NOTE:
This may not work on custom styles. If you have a custom style and wish to apply this hack but can't, post the navbar template (and possibly a link to your site) and I'll see if I can help.
Looking for more great vB 3.5 modifications? Some exclusive modifications only available at vBhackers.com (http://www.vbhackers.com):
* Deaths BBCode (http://www.vbhackers.com/forum/showthread.php?t=3598), /you BBCode (http://www.vbhackers.com/forum/showthread.php?t=3597), WikiPedia BBCode (http://www.vbhackers.com/forum/showthread.php?t=3594), Bump System Plugin (http://www.vbhackers.com/forum/showthread.php?t=3319), Today's Posts on Forumhome (numer) (http://www.vbhackers.com/forum/showthread.php?t=3223), Latest X Threads on Forumhome Advanced (with forumname!) (http://www.vbhackers.com/forum/showthread.php?t=3593) and many, many more! (http://www.vbhackers.com/forum/index.php)