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

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
  #2  
Old 07-19-2007, 07:56 PM
Stromba's Avatar
Stromba Stromba is offline
 
Join Date: Aug 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #3  
Old 07-19-2007, 08:42 PM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stromba View Post
Thank you
Your welcome =]
Reply With Quote
  #4  
Old 07-19-2007, 09:11 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should write better installation instructions, and this should be done through the phrase system, not the templates.
Reply With Quote
  #5  
Old 07-20-2007, 10:05 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
You should write better installation instructions, and this should be done through the phrase system, not the templates.
I appreciate it is bad i will amend it today i was a little worse for wear yesterday lol

And that's a good idea i never thought of doing it though phrases =]

Thanks
x
Reply With Quote
  #6  
Old 07-20-2007, 10:29 AM
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Location: .:: Ireland ::.
Posts: 1,306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should always think of doing it with phrases
Reply With Quote
  #7  
Old 07-20-2007, 10:47 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the instructions to link to usercp, when the replacement of:
PHP Code:
<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$bbuserinfo[musername]</a
was supposed to be made, it's supposed to be replaced with:
PHP Code:
<a href="usercp.php$session[sessionurl_q]"
Reply With Quote
  #8  
Old 07-25-2007, 08:48 AM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So how would this be put into the welcome_x phrase then? When I tried to put in the same code into the phrase, I got:

"This user has not registered and therefore does not have a profile to view."
Reply With Quote
  #9  
Old 07-25-2007, 09:26 AM
Yours Truly Yours Truly is offline
 
Join Date: Feb 2007
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dismas View Post
So how would this be put into the welcome_x phrase then? When I tried to put in the same code into the phrase, I got:

"This user has not registered and therefore does not have a profile to view."
Ill update this on my lunch break =]
Reply With Quote
  #10  
Old 07-25-2007, 12:53 PM
dismas's Avatar
dismas dismas is offline
 
Join Date: Jun 2007
Location: Vermont
Posts: 720
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to it!
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 11:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06450 seconds
  • Memory Usage 2,307KB
  • 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
  • (6)bbcode_php
  • (3)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
  • (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