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)
-   -   Profile Enhancements - User Name Style: Bold & Glow (Optional) (https://vborg.vbsupport.ru/showthread.php?t=168724)

TCE Killa 01-24-2008 10:00 PM

User Name Style: Bold & Glow (Optional)
 
This is my first ever template modification, this works for any versions of 3.6.x vBulletin versions.

Please refer to this thread for a glowing usertitle:

https://vborg.vbsupport.ru/showthread.php?t=168785

Description: This will give users an option in their profile to bold & glow there usernames.


Step 1 - Bold

Create a new profile field through your AdminCP.

Multiple Selection Textbox

Title: Username Bold

Description: Here you can bold your username if you would like to make it stand out more.

Limit Selection: 1

Items Per Line: 0

Fields: 1 field called Bold Username (one option for users to check if they want).

Profile Field Type: Multiple-Selection Checkbox

Field Required: No

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No

Click Save.

Step Two

Edit the template you use, either Posbit Legacy or Postbit.
Find (there will be two, do this to the first one):
PHP Code:

$post[musername

Replace with:
PHP Code:

<if condition="$post[fieldx]">
    <
span style="font-weight: bold; $post[fieldx]">
        
$post[username]</span><else />
$post[musername]
</if></
a

Step Three

In the same template, find the second:
PHP Code:

$post[musername

Replace with:

PHP Code:

<if condition="$post[fieldx]">
    <
span style="font-weight: bold; $post[fieldx]">
        
$post[username]</span><else />$post[musername][/if] 

Replace the X (on fieldx) with your bold profile field. You're done.

Step One - Glow

Create a new profile field through your AdminCP.

Single Line Text Box

Title: Username Glow

Description: Here you can glow your username if you would like to make it stand out more.

Field Required: No

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No

The rest is up to you.

Click Save.

Step Two

Find in your Postbit or Postbit Legacy template:
PHP Code:

$post[musername

Replace with:

PHP Code:

<if condition="$post[fieldx]"
                <
div style="width:100%;filter:glow(color=$post[fieldx],strength=6)">$post[username]</div> <else />$post[musername]</if> 

Step Three

Same template, find second:
PHP Code:

$post[musername

Replace with:
PHP Code:

<if condition="$post[fieldx]"
                <
div style="width:100%;filter:glow(color=$post[fieldx],strength=6)">$post[username]</div> <else />$post[musername]</if> 

Make sure you replace the x's with your Glow field number.


You're done, any problems, just tell me please. Remember to mark Installed if you use and like it.

iogames 01-25-2008 08:02 PM

ScreenShots?

TCE Killa 01-25-2008 09:47 PM

Yeah sorry, here is the screenshots. If you're wondering how to have an option so users can pick for a custom usertitle glow of any color of there choice, that will be in my next template modification release:up:

gael11 01-26-2008 04:33 AM

It looks nice, I try !

Magnumutz 01-26-2008 05:29 AM

Yeah... unfortunately, this is an IE only function, if i'm not mistaken.

TCE Killa 01-26-2008 08:59 AM

Yeah sorry, I should have noted, this only works for IE.

Glad everyone likes it.

zhabbo 01-27-2008 12:37 PM

I tried this, but I have a problem.
My name is glowing red, and my name is red.
Is there anyway I can change the glow color?

TCE Killa 01-28-2008 08:48 AM

I'll have a look into it for you, just post that bit of your postbit or postbit legacy and I'll try and correct it for you.

Ultimate Killer 02-02-2008 04:11 PM

I tried this and you user title but couldn't get them to work :(

TCE Killa 02-03-2008 01:02 PM

If you post me your posbit legacy or postbit of where you copied and pasted, I'll try and correct it for you.


All times are GMT. The time now is 06:44 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.01608 seconds
  • Memory Usage 1,754KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete