![]() |
Users Choose Username Font/Color Posts
//////////////////////// Users Choose Color/Font Of Username In Posts \\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////////// by gio~logist \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ ------------------- Allow users to change what color their username is in posts -------------------- ------------------------------------------ Via UserCP ------------------------------------------- //////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\ Want members to be able to choose the font color of their usernames in posts? [high]Step 1[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Color of Your Username" [high]Description:[/high] 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). [high]Display Size:[/high] 11 [high]Max length of allowed user input:[/high] 7 [high]HIT SAVE[/high] [high]Step 2[/high] Now go to edit your postbit template and search for this code: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> [high]HIT SAVE[/high] Want them to be able to choose the font as well? [high]Step 1[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Font of Your Username" [high]Description:[/high] Type in the font in which you will like. For example for tahoma, type in "Tahoma", without the quotations. [high]Display Size:[/high] 15 [high]Max length of allowed user input:[/high] 20 [high]HIT SAVE[/high] [high]Step 2[/high] Now go to edit your postbit template and search for this code: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> [high]HIT SAVE[/high] [high]AND WE'RE DONE![/high] If you want them to be able to choose both color AND font, only do step 1 in each part, and then replace: HTML Code:
$post[musername] HTML Code:
<if condition="$post['fieldx'] != '' "> [HIGH]Current Add-Ons[/high] Exclude Certain Colors [HIGH]Planned For Next Version (So Far)[/high] - 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! |
great idea! could you also add a field to let them choose the font?
|
refresh
|
excellent! thanks
|
I UPDATED THE INSTRUCTIONS! IF YOU ALREADY INSTALLED, READ THE NEW INSTRUCTIONS!
I dont use vb3.5 so correct me if i was wrong in any of my codes, however, i don't THINK i was. |
The color doesn't change for me.
|
Did you use new instructions?
What did you insert in your profile? Did you make sure you followed instructions correctly? |
Yes.
I tried many different codes, even the one from the example and nothing. Yes, I even reverted and did it again. |
wow im an idiot... simple html mistake..... sorry about that, try now! i edited instructions....
|
That worked, thanks! Great hack my users will love this.
|
thanx for this, but i had some thing like this and i added a glow around the usernames as well
|
im glad you guys like it so far.... again, feel free to make more requests n stuff!
|
Wouldn't this mess with your html marking in the usergroups, though? ;)
|
Quote:
|
Thank you for sharing your mod. Could you please document your modification in a .txt file and attach it? It's easier for members to refer back to your mod if they need to install it again.
|
thank you
but if you can do same this: https://vborg.vbsupport.ru/showthread.php?t=60065 that will be great |
Quote:
Quote:
|
Quote:
Actually i can :-D That will be done tommorow as well :-D |
Quote:
|
Screenshots would also be a good idea gio ;). Also this should overwrite your usergroup markup just like boofo said, so if you have html markup usegroups, I would be careful.
~Curt |
Actually it only overwrites it IF THE USER HAS A COLOR SELECTED.
I'm a bit busy right now however, expect the release of user font hack tonight or sooner! |
Then a user could set their name the same as a Mod or Admin. ;)
And would you please post this in a text file so others can download it and have it in case of a re-install? |
I don't know if you wrote this for me:
https://vborg.vbsupport.ru/showthread.php?t=91845 but thanks! I will check it out later. As far as more ideas to throw in the hack- how about having a list of the fonts that they can choose in a drop-down menu? Quote:
|
Quote:
I didn't see your request however, i'm glad i can help. I will update this thread with instructions on how to make it function in who's online as well. Also, i would do a drop down menu, however, not everyone likes the same fonts. As for colors..... if someone chooses a color the same as one in which admins have....... does it really matter? That's why they invented showgroups.php If it really does matter then i can try and make a drop down, however, it doesnt seem that big of a deal at the moment. |
Quote:
|
So then i suppose you expect me to try and guess what color each admin of a forum has set each usergroup to so that then i can determind what to put int he drop down?
|
I dont know why they're griping, but this hack is awesome. Thanks tons man.
|
The only thing I could think of is I wish the colors were expanded to the other areas of the forum, as in the What's Happening area, and in the last post column, things like that.
The color picker would be nice as well. |
I already have the color picker ima use, i just need to write instructions and stuff.
I will explain how to get this working on other parts of the forum as well when i release the color picker. |
You get that stuff put in and I think it could be HOTM
|
Any updates?
|
this would be really good. Excellent idea but I wont use it since we resrve different/special colors for staff only.
I'll get the font color one though! |
Quote:
|
Quote:
|
Yeah that would be awesome, cause right now I have a user who is a ghost. IE: his username is the same as the background of the forum.
|
Quote:
|
I use postbit_legacy and $post[musername] appears twice (unless I have it in there twice from some other hack...). I'll figure it out, but you may want to update the instructions...
|
[high]Exclude Certain Colors Add-On[/high]
Change HTML Code:
<if condition="$post['fieldx'] != '' "> HTML Code:
<if condition="$post['fieldx'] != '' "> |
Simply awesome thanks tons gio~logist
|
How to use this just for the online colors on forumhome??
|
All times are GMT. The time now is 03:05 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|