Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Users Choose Color/Font Of Username In Posts Details »»
Users Choose Color/Font Of Username In Posts
Mod Version: 1.00, by Gio~Logist (Coder/Designer) Gio~Logist is offline
Developer Last Online: May 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.8 Rating: (0 vote - 0 average) Installs: 6
Released: 29 Jul 2005 Last Update: Never Downloads: 18
Supported Template Edits  

//////////////////////// Users Choose Color/Font Of Username In Posts \\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////// by gio~logist \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
------------------- Allow users to change what color their username is in posts --------------------
------------------------------------------ Via UserCP -------------------------------------------
//////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

This hack was originally made for 3.5, however, Erwin gave me the OK to post it here as well, due to the fact that it also works on this version of vb :-D

Want members to be able to choose the font color of their usernames in posts?

Step 1
Go to User Profile Fields >> Add New User Profile Field

Choose A "Single-Line Text Box"

Title: "Color of Your Username"

Description: Type in the color in which you will like your username to be. Keep in mind that writing the colors in text does not always work, so try and format it like this: #ff0000 (that code is for red).

Display Size: 11

Max length of allowed user input: 7


HIT SAVE


Step 2
Now go to edit your postbit template and search for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

X will be the id for the field in which you created. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID.


HIT SAVE



Want them to be able to choose the font as well?

Step 1
Go to User Profile Fields >> Add New User Profile Field

Choose A "Single-Line Text Box"

Title: "Font of Your Username"

Description: Type in the font in which you will like. For example for tahoma, type in "Tahoma", without the quotations.

Display Size: 15

Max length of allowed user input: 20


HIT SAVE

Step 2
Now go to edit your postbit template and search for this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with this


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The X in font-family will be the id for the field in which you created. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID.


HIT SAVE

AND WE'RE DONE!

If you want them to be able to choose both color AND font, only do step 1 in each part, and then replace:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The X in font-family will be the id for the field in which you created. The X in font-color will be the id for the field in which you created before. To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID.


Planned For Next Version (So Far)
- Have a pop up that allows you to pick a color and then shows the code for that color.

If you have any other ideas feel free to post them!

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Users Choose Username Font/Color Posts Gio~Logist vBulletin 3.5 Template Modifications 61 15 Mar 2010 05:53

Comments
  #2  
Old 14 Aug 2005, 19:41
HipHopFame HipHopFame is offline
 
Join Date: Dec 2004
Nice!! Installed..
Reply With Quote
  #3  
Old 15 Aug 2005, 06:03
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Real name: ITS A SECRET
Nice modification, thank you for sharing.
Reply With Quote
  #4  
Old 15 Aug 2005, 07:42
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Unless I'm missing something, the method I wrote for my forum the other day is slightly "safer" .
Reply With Quote
  #5  
Old 27 Aug 2005, 18:49
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Thank you for sharingn your nice hack, gio~logist...

At the moment, the font color and type only display in the postbit on my forum when a board user is online.

Guests do not see the username font changes.

Are others also experiencing this?

Thanks,

Khashyar
Reply With Quote
  #6  
Old 27 Aug 2005, 19:04
Khashyar Khashyar is offline
 
Join Date: Jan 2003
I think what might be happening, is that because the color and font profile fields are "private" fields, they are only showing for registered users...

Khashyar
Reply With Quote
  #7  
Old 07 Sep 2005, 14:24
Anon47's Avatar
Anon47 Anon47 is offline
 
Join Date: Aug 2005
Hey thanks! This mod is great. I was getting sick of setting up a new usergroup everytime somebody wanted a new color.


How would I go about making the usernames show up in each member's individual color in the Members List and Who's Online list as well?
Reply With Quote
  #8  
Old 10 Sep 2005, 01:04
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Real name: Giovanni Martinez
Originally Posted by Anon47
Hey thanks! This mod is great. I was getting sick of setting up a new usergroup everytime somebody wanted a new color.


How would I go about making the usernames show up in each member's individual color in the Members List and Who's Online list as well?
I am currently trying to work on getting profile fields to show in Who's Online. This isn't to easy but i am trying extremely hard because i need this for something im doing to my site.

Also, i will look into getting it to show in memberlist.

Originally Posted by Khashyar
Thank you for sharingn your nice hack, gio~logist...

At the moment, the font color and type only display in the postbit on my forum when a board user is online.

Guests do not see the username font changes.

Are others also experiencing this?

Thanks,

Khashyar
This can be that:

A) Maybe guests not being able to see a user's profile has affected this.
B) Maybe the field is private

Those are the only two reasons that come to my head.
Reply With Quote
  #9  
Old 15 Sep 2005, 21:23
HHU HHU is offline
 
Join Date: Sep 2005
Ok, Im Using Ushop So I Dont Want To Do This, But Is This Possible:

Using Vb 3.07

Same Idea Except Allow A User To Choose A Font And Font Color To Be Their Default Font Color / Font In The Usercp?

Couldnt Find A Thread.. Thanks For The Help
Reply With Quote
  #10  
Old 03 Oct 2005, 21:46
damianp damianp is offline
 
Join Date: Sep 2005
I cant get this to work in version 3.0.9 can anyone help?

I am assuming that this is the right bit of code:

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
<if condition="$post['fieldx'] != '' ">

<font style="font-family:$post[field7]; color:$post[field6];">$post[musername]</font>
<else />
$post[musername]
</if>



also the part I have highlighted in red ( ummm green )does that need to be changed aswell?
Reply With Quote
  #11  
Old 14 Oct 2005, 07:51
Flow Fusion's Avatar
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
I got it. I only needed to change one.

*Clicks install*
Reply With Quote
  #12  
Old 23 Nov 2005, 17:45
Bino Bino is offline
 
Join Date: Nov 2005
I still can't get this to work!
Reply With Quote
  #13  
Old 20 Dec 2005, 06:55
hotwheels hotwheels is offline
 
Join Date: May 2005
Real name: Doug
Quick Question? I have installed this into my postbit and i need to know what the first X is supposed to be?

<if condition="$post['fieldx'] != '' ">
<font style="font-family:$post[field74]; color:$post[field73];">$post[musername]</font>
<else />
$post[musername]
</if>


It show's up in my profile:
"Color of Your Username"Type in the color in which you will like your username to be. Keep in mind that writing the colors in text does not always work, so try and format it like this: #ff0000 (that code is for red).

"Font of Your Username"Type in the font in which you will like. For example for tahoma, type in "Tahoma", without the quotations.
But nothing is changed with my name on the site, still blue, stil the same text (font)

Last edited by hotwheels : 20 Dec 2005 at 09:06.
Reply With Quote
  #14  
Old 12 Jan 2008, 18:22
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Does this work for any versions of vBulletin? Thanks.
Reply With Quote
  #15  
Old 12 Apr 2008, 13:25
WNM07 WNM07 is offline
 
Join Date: Aug 2007
works with 3.6.9
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 00:16.

Layout Options | Width: Wide Color: