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
Welcome Clickable Username! Details »»
Welcome Clickable Username!
Version: 1.00, by Borgs8472 Borgs8472 is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 04-17-2006 Last Update: Never Installs: 28
Template Edits
 
No support by the author.

Here's an awesomely powerful hack from me, sure to win over your forum posters hearts and minds.

Actually it's simply to compete with the likes of IPB and phpbb who like to emphasise 'your posts' more by default.

Open up your navbar template (or in some cases header template) and find:
Code:
<phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>
and replace with:
Code:
<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>
In just one edit, (this can be done with an even smaller template edit and and a phrase edit but it's not worth the hassle) your often viewed 'Welcome Username!' message has added functionality, as it can be clicked on as a link to the user's profile.

I decided to remove the default underlining that many people will have this being a link, so the link looks aesthetically similar. The colour may be slightly changed after this.

Show Your Support

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

Comments
  #2  
Old 04-18-2006, 01:21 AM
DJ XtAzY DJ XtAzY is offline
 
Join Date: Feb 2005
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

smartest simple mod XD
Reply With Quote
  #3  
Old 04-18-2006, 01:43 AM
Tralala's Avatar
Tralala Tralala is offline
 
Join Date: Jan 2006
Posts: 1,207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed!
Reply With Quote
  #4  
Old 04-18-2006, 01:55 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can also maintain the wonderful, translatable phrasing system by doing it this way.

Code:
<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>
Reply With Quote
  #5  
Old 04-18-2006, 02:11 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JumpD
You can also not maintain the wonderful, translatable phrasing system by doing it this way.

Code:
<phrase 1="<a style='text-decoration: none' href='member.php?u=$bbuserinfo[userid]'>$bbuserinfo[username]</a>">$vbphrase[welcome_x]</phrase>
what does that mean JUMP?
Reply With Quote
  #6  
Old 04-18-2006, 02:15 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Kihon Kata
what does that mean JUMP?
Removed the word "not".
The one in the release thread hard codes the word "Welcome" so it will be a problem for other language boards specifically muli-lingual board. What I posted will leave the current phrase intact and just add the link to the name so you will not be defeating the system to get what you want.
Reply With Quote
  #7  
Old 04-18-2006, 10:23 AM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
oh, well done. That seems such an odd way of hacking the the phrase system I never considered it. I'll replace with your way in post #1
Reply With Quote
  #8  
Old 04-18-2006, 01:53 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borgs8472
^ ^
oh, well done. That seems such an odd way of hacking the the phrase system I never considered it. I'll replace with your way in post #1
I just tried it and it worked. *shrugs*

Not really odd if you think about it. It replaces x with whatever is between the quotes. As long as it can get through the parser without kicking up an error.

I don't think that style bit will do anything by the way.
Reply With Quote
  #9  
Old 04-18-2006, 01:55 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ ^
It does. Most people have links underlined by default. However welcome username is not underlined normally. Adding that parameter ensures the look stays the same.
Reply With Quote
  #10  
Old 04-18-2006, 02:05 PM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should make it look like the rest of the text. Looks kind of odd as link color.
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 01:23 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.04365 seconds
  • Memory Usage 2,291KB
  • 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
  • (4)bbcode_code
  • (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
  • (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