Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add URL to profile to Welcome Message in navbar Details »»
Add URL to profile to Welcome Message in navbar
Version: 1.00, by Deaths Deaths is offline
Developer Last Online: Mar 2009 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-29-2006 Last Update: Never Installs: 2
Template Edits
 
No support by the author.

Add URL to profile to Welcome Message in navbar

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:
PHP Code:
<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:
PHP Code:
<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.
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:

[high]* Deaths BBCode, /you BBCode, WikiPedia BBCode, Bump System Plugin, Today's Posts on Forumhome (numer), Latest X Threads on Forumhome Advanced (with forumname!) and many, many more![/high]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-31-2006, 01:33 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MindTrix
No, no sarcasim intended. I meant it as a honest opinion, i thought it was good reply from you, sorry if you took any offence
My appologies than . I was a bit ticked off by the reply by Borgs8472, won't happen again.
Reply With Quote
  #13  
Old 02-09-2007, 04:46 AM
SirFlash's Avatar
SirFlash SirFlash is offline
 
Join Date: Feb 2007
Location: Canada
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much, this mod makes VB more intuitive, especially for noobs who used to ask where their user profile is at. This worked perfectly on my VB 3.6.4... the code to replace was the same. Cheers.
Reply With Quote
  #14  
Old 02-09-2007, 07:49 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually The original code is a bit flawed...
Try replacing your 1st phrase 1....

Code:
<phrase 1="<a href='member.php?u=$userid'>$bbuserinfo[username]</a>"> $vbphrase[welcome_x]</phrase></strong><br />
WITH

Code:
<phrase 1="<a href='member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'>{$bbuserinfo['musername']}</a>">$vbphrase[welcome_x]</phrase></strong><br />
That way all pages will show the profile link AND with color if you've used the Membergroup markup

Jacquii.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04854 seconds
  • Memory Usage 2,257KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete