Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications

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
  #2  
Old 03-30-2006, 03:09 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is nice. Thanks!
Reply With Quote
  #3  
Old 03-30-2006, 03:45 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem .

Imo vB should add this or something similar to the default version, as it doesn't increase site load or any of that, it simply shows an extra link.
Reply With Quote
  #4  
Old 03-30-2006, 06:15 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you click the drop down link for Quick Links, it has a My Profile link in there
Reply With Quote
  #5  
Old 03-30-2006, 06:55 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MindTrix
If you click the drop down link for Quick Links, it has a My Profile link in there
True. However:
1. Some sites removed the quick links dropdown
2. It's still an extra click
Reply With Quote
  #6  
Old 03-30-2006, 06:56 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I prefer my hack which goes in the usercp :/
Reply With Quote
  #7  
Old 03-30-2006, 07:25 PM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deaths
True. However:
1. Some sites removed the quick links dropdown
2. It's still an extra click
LOL Nice justification

Quote:
Originally Posted by Borgs8472
I prefer my hack which goes in the usercp :/
Thats nice to know
Reply With Quote
  #8  
Old 03-31-2006, 08:32 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MindTrix
LOL Nice justification
I'm not sure whether or not you're being sarcastic here.

Maybe this'll do as a justification than:
This hack is what I described it. A very small addition which saves you and your users a click or two. Ofcourse you can use quicklinks, ofcourse you can scroll to the homepage and click your profile. Heck, you can even send a PM to yourself to get to your profile. Which is fastest though? I'm pretty sure we both know
Reply With Quote
  #9  
Old 03-31-2006, 08:34 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borgs8472
I prefer my hack which goes in the usercp :/
Your hack is something completely different. My hack adds a link to the navbar, yours adds a link to a user's threads in the UserCP. Please, read the description of the hack before posting useless spqm.
Reply With Quote
  #10  
Old 03-31-2006, 10:03 AM
MindTrix's Avatar
MindTrix MindTrix is offline
 
Join Date: Apr 2002
Location: United Kingdom
Posts: 1,833
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deaths
I'm not sure whether or not you're being sarcastic here.

Maybe this'll do as a justification than:
This hack is what I described it. A very small addition which saves you and your users a click or two. Ofcourse you can use quicklinks, ofcourse you can scroll to the homepage and click your profile. Heck, you can even send a PM to yourself to get to your profile. Which is fastest though? I'm pretty sure we both know
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
Reply With Quote
Reply

Thread Tools

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 12:09 AM.


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.04378 seconds
  • Memory Usage 2,311KB
  • Queries Executed 23 (?)
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_php
  • (6)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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