Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
Full User Name Style (Optional) Details »»
Full User Name Style (Optional)
Version: 1.00, by TCE Killa TCE Killa is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 03-03-2008 Last Update: Never Installs: 4
Template Edits
Re-useable Code  
No support by the author.

This modification will let your users choose to bold, italic, underline, glow, font and color their usernames. The best thing about it is, they can use it all at the same time if they wish or they can just use one or two of them etc....

I have only tested this on 3.6.8 but should work on all 3.6 versions.

Note: The glow in this modification will not work for firefox users.

Please make sure you mark installed if you use this and their is alot of profile field numbers to memorize, so please write them down.

Step one

Create a new profile field - Single line text box.

Title: Username Color
Description: This will be the color of your username, please type in the color hex code here.
Private field: No

Rest is up to you:up:

Please note the profile field number.

Step two

Create a new profile field - Single line text box.

Title: Username Font
Description: Add a font here for your username (example: Tahoma)
Private field: No

Rest is up to you.

Please take note of the profile field number.

Step three

Create a new profile field - Single line text box.

Title: Username Glow
Description: Add a glow color of your choice, type the hex code here.
Private field: No

Rest is up to you.

Please note the profile field number.

Step four

Create a new profile field - Multiple Selection CheckBox.

Title: Username Bold
Description: Make your name stand out more by bolding it.
Options: Bold Username
Field required: No

Rest is up to you.

Please note the profile field number.

Step five

Create a new profile field - Multiple Selection CheckBox.

Title: Username Italic
Description: Make your name italic here.
Options: Italic Username
Field required: No

Rest is up to you.

Please note the profile field number.

Step six

Create a new profile field - Multiple Selection CheckBox.

Title: Username Underline
Description: Underline your username if you wish here.
Options: Underline Username
Field required: No

Rest is up to you.

Please note the profile field number.

Step seven

After you have wrote down all of the profile field numbers, we go into the posbit legacy or postbit template depending which one you use.

Find:

PHP Code:
 <div align="center">
          <
div id="postmenu_$post[postid]">
            <if 
condition="$show['profile']">
            <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"
Add below:

PHP Code:
    <if condition="$post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] OR $post['fieldXX'] != '' ">
<
div style="font-family:$post[fieldXX]; color:$post[fieldXX]; font-weight:bold;$post[fieldXX]; width:100%;filter:glow(color=$post[fieldXX],strength=6); font-style:italic;$post[fieldXX]; text-decoration:underline;$post[fieldXX];">
$post[username]<else />
$post[musername]
</if> 
Make sure you place it in the right place so the code you added should have an </a> after it.

It should now look like this:
PHP Code:
<div align="center">
          <
div id="postmenu_$post[postid]">
            <if 
condition="$show['profile']">
            <
class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">
    <if 
condition="$post['field14'] OR $post['field28'] OR $post['field59'] OR $post['field63'] OR $post['field65'] OR $post['field27'] != '' ">
<
font style="font-family:$post[field28]; color:$post[field14];">
<
div style="font-weight:bold;$post[field27]; width:100%;filter:glow(color=$post[field59],strength=6); font-style:italic;$post[field63]; text-decoration:underline;$post[field65];">
$post[username]<else />
$post[musername]
</if></
a
Replace the XX's with your field number's.

This code:
PHP Code:
<div style="font-family:$post[fieldXX]
is the username font field number, just replace the XX with your font field number... Same goes to the rest, the color is the username color field number, font weight bold is the username bold field number, filter:glow color is the username glow field number, italic is the username italic field number and underline is the username underline field number.

Please mark installed if you use, hope everyone likes it. Enjoy.:up:

Show Your Support

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

Comments
  #2  
Old 07-21-2008, 05:07 AM
montsa007 montsa007 is offline
 
Join Date: Feb 2008
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First post reserved.
Everybody does 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:41 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.03989 seconds
  • Memory Usage 2,219KB
  • Queries Executed 15 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete