vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Full User Name Style (Optional) (https://vborg.vbsupport.ru/showthread.php?t=172055)

TCE Killa 03-03-2008 10:00 PM

Full User Name Style (Optional)
 
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::D

montsa007 07-21-2008 05:07 AM

First post reserved.
Everybody does it :D


All times are GMT. The time now is 11:47 PM.

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.00967 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete