Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Personal Font/Color in Posts Details »»
Personal Font/Color in Posts
Version: 1.00, by Gio~Logist Gio~Logist is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-28-2005 Last Update: 07-28-2005 Installs: 78
Template Edits
 
No support by the author.

Personal Font/Color in Posts
by gio~logist
Allow users to change what color/font their posts are in threads Via UserCP

[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] "Your Font Color In Posts"

[high]Description:[/high] This is the color of the font in which will appear in your posts. (Ex: #ff0000 is red)

[high]Display Size:[/high] 11

[high]Max length of allowed user input:[/high] 8


[high]HIT SAVE[/high]



[high]Step 2[/high]
[high]Go to User Profile Fields >> Add New User Profile Field[/high]

Choose A "Single-Line Text Box"

[high]Title:[/high] "Your Font In Posts"

[high]Description:[/high] This is the font in which will appear in your posts. (Ex: Tahoma)

[high]Display Size:[/high] 15

[high]Max length of allowed user input:[/high] 20


[high]HIT SAVE[/high]


[high]Step 3[/high]
Now go to edit your postbit template and search for this code:

HTML Code:
$post[message]
Replace it with this

HTML Code:
<if condition="$post['fieldx'] != '' OR $post['fieldx'] != ''">

<font style="font-family:$post[fieldx]; color:$post[fieldx];">$post[message]</font>

 

     <else />

$post[message]

</if>
Replace the first x in the condition statement with the ID of the ?Your Font Color In Posts? profile field, and replace the second with the ?Your Font In Posts? profile field. The X in font-family will be the id for the field in which you created in the first step and the X in color will be the id for the field in which you created in the first step. 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.


[high]HIT SAVE[/high]

[high]AND WE'RE DONE![/high]


[high]Addons Already Made[/high]
Glowing Posts For Mods, S.Mods, and Admins


[high]Planned Addons For Next Release[/high]
- Nothing So Far

Feel Free to Post Any Ideas/Suggestions

Supporters / CoAuthors

Show Your Support

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

Comments
  #12  
Old 08-03-2005, 08:02 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gio~logist
I do not have time to do the admin option thing. Why not just make field/dont make field editable in order to enable/disable the hack?

You want only certain usergroups to be allowed to do this?

hello!
some of us don't know how to do that kind of ++++ yet.
some of us just installed vB last week!
not everyone is a php guru like u.


That said, does this hack effect text formating used in the posts?
Reply With Quote
  #13  
Old 08-03-2005, 08:41 PM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Replace the first x in the condition statement with the ID of the ?Your Font Color In Posts? profile field, and replace the second with the ?Your Font In Posts? profile field. The X in font-family will be the id for the field in which you created in the first step and the X in color will be the id for the field in which you created in the first step. 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.
x, x, x,x... Got somethin again y?
Reply With Quote
  #14  
Old 08-04-2005, 01:19 AM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lmao you can't use Y in fields... atleast i don't think so... i will get to work on the admin option thing ASAP, i've been extremely busy lately
Reply With Quote
  #15  
Old 08-04-2005, 01:27 AM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gio~logist
Lmao you can't use Y in fields... atleast i don't think so... i will get to work on the admin option thing ASAP, i've been extremely busy lately
before the admin thing, you might wanna make it work in quotes. :ninja:
Reply With Quote
  #16  
Old 08-04-2005, 01:47 AM
Brinnie's Avatar
Brinnie Brinnie is offline
 
Join Date: Jul 2005
Location: Louisiana
Posts: 360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

btw, do you know why some colors (#540000) don't work?
Reply With Quote
  #17  
Old 08-04-2005, 01:04 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i dont see why a certain color woulrnd work as long as you make sure to put the # (for firefox). why doesn't that one work? what happens?
Reply With Quote
  #18  
Old 08-16-2005, 01:11 AM
jesus likes pie jesus likes pie is offline
 
Join Date: Apr 2005
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installs
Reply With Quote
  #19  
Old 08-18-2005, 09:24 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THANK YOU gio~logist for all of your hard work and effort that you've put into this. It IS appreciated
Reply With Quote
  #20  
Old 08-23-2005, 11:55 PM
Extreme John Extreme John is offline
 
Join Date: Nov 2004
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For whatever reason mine's not working...

<div id="post_message_$post[postid]"><if condition="$post['field5'] != '' OR $post['field6'] != ''">

<font style="font-family:$post[field5]; color:$post[field6];">$post[message]</font>

Is this right??
Reply With Quote
  #21  
Old 08-24-2005, 11:14 PM
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Posts: 2,575
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5
THANK YOU gio~logist for all of your hard work and effort that you've put into this. It IS appreciated
Thank you, i appreciate that
Reply With Quote
Reply


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 03:13 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.06928 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete