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

Reply
 
Thread Tools
Welcome text, links to your profile. Details »»
Welcome text, links to your profile.
Version: 1.02, by Yours Truly Yours Truly is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 07-18-2007 Last Update: Never Installs: 11
Template Edits
 
No support by the author.

Time taken: 2 Minutes
Difficulty: Easy as pie
What it does: This will basically change your username at the top of the page in the navbar template to the html markup and a link to that persons profile.

You can also use this for Vb 3.5.x too

Go to:

Style Manager --> [Template you wanna edit] --> Navigation / Breadcrumb Templates --> navbar

Find:

PHP Code:
            <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br /> 
Replace with:

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

---------------------------------------------------------------------------------------

Making it link to the usercp:


Style Manager --> [Template you wanna edit] --> Navigation / Breadcrumb Templates --> navbar

Replace:

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

PHP Code:
            <strong><phrase 1="$bbuserinfo[musername]"><a href="usercp.php$session[sessionurl_q]">$vbphrase[welcome_x]</a></phrase></strong><br /> 
To come:
  • Let the user choose what they want their name to link to
  • Post some ideas

Versions:
  • 1.00
    • Release
  • 1.01
    • Updated to use phrases instead of editing the templates
    • Corrected usercp url
  • 1.02
    • Fixed again as using phrases doesn't parse the links correctly

Show Your Support

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

Comments
  #12  
Old 07-25-2007, 04:30 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
Looking forward to it!
Would be much appreciated if you pressed the install button as well =]
Reply With Quote
  #13  
Old 07-25-2007, 05:03 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated to use phrases and use the correct url for the usercp
Reply With Quote
  #14  
Old 07-25-2007, 06:43 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still get the same error. The URL that it's trying to go to is:
Code:
/forum/member.php?$session[sessionurl]u=$bbuserinfo[userid]
Reply With Quote
  #15  
Old 07-26-2007, 08:37 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
I still get the same error. The URL that it's trying to go to is:
Code:
/forum/member.php?$session[sessionurl]u=$bbuserinfo[userid]
Try

Code:
/forum/member.php?$session[sessionurl_q]u=$bbuserinfo[userid]
Reply With Quote
  #16  
Old 07-26-2007, 01:48 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Yours Truly View Post
Try

Code:
/forum/member.php?$session[sessionurl_q]u=$bbuserinfo[userid]
I still get the same error.
Reply With Quote
  #17  
Old 07-26-2007, 02:13 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
I still get the same error.
I have figured it out ill post the fix in an hour when i get back from work
Reply With Quote
  #18  
Old 07-26-2007, 03:19 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 1.02 released

1.02
  • Fixed again as using phrases doesn't parse the links correctly
Reply With Quote
  #19  
Old 07-26-2007, 05:07 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A template edit it is then.

Thanks!
Reply With Quote
  #20  
Old 07-26-2007, 05:10 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
A template edit it is then.

Thanks!
Sorry about that mate the phrase manager wasn't parsing the links correctly =]
Reply With Quote
  #21  
Old 07-27-2007, 03:07 AM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No worries. Not your fault.
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 07:30 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.05469 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_code
  • (4)bbcode_php
  • (5)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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