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
  #52  
Old 02-09-2006, 09:59 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work with 3.5.2 and 3.5.3?
Reply With Quote
  #53  
Old 02-09-2006, 11:38 PM
guv2000 guv2000 is offline
 
Join Date: Apr 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thnx much room56. it's perfect hack
Reply With Quote
  #54  
Old 03-06-2006, 03:50 AM
BabyNameAddict BabyNameAddict is offline
 
Join Date: Feb 2006
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Beautiful!

Installed, works like a charm.

I edited it to only have users change color only.

Thanks so much! :nervous:
Reply With Quote
  #55  
Old 03-09-2006, 05:23 PM
sunnycher sunnycher is offline
 
Join Date: Mar 2005
Location: FL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this didn't work for me! I did the changes.
Then went into my profile and changed my settings and then went to a new thread and typed something andit's not showing my color and font.
Reply With Quote
  #56  
Old 03-09-2006, 05:30 PM
sunnycher sunnycher is offline
 
Join Date: Mar 2005
Location: FL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I fixed it! Thank you!!!!!
Reply With Quote
  #57  
Old 06-19-2006, 03:03 AM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:
<!-- message -->
        <
div id="post_message_$post[postid]"><if condition="$post['field6'] != '' OR $post['field7'] != '' OR $post['field8'] != ''">
<
font face="$post[field7]color="$post[field6]"><if condition=$post['field8'] == 'yes'"><b></if>$post[message]<if condition=$post['field8'] == 'yes'"></b></if></font

 

     <else />

$post[message]

</if></
div>
        <!-- / 
message --> 



Could someone tell me were to put this....font-size: 9pt; My font size shrunk!

Also, Firefox doesnt pick up the color...is there an answer for this? I notice there is a lot firefox doesnt do these days agh!
Reply With Quote
  #58  
Old 06-29-2006, 06:18 PM
RNCS Hosting RNCS Hosting is offline
 
Join Date: Jun 2006
Location: England
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Took a few tweaks but finally got it to work thank you
Reply With Quote
  #59  
Old 07-01-2006, 05:17 PM
SpaceStar SpaceStar is offline
 
Join Date: Apr 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not working for me either

tried everything mentined here - in different skins but stilllll....
Reply With Quote
  #60  
Old 07-13-2006, 03:45 PM
SpaceStar SpaceStar is offline
 
Join Date: Apr 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rom56
i have edit it for bold/unbold (sorry for my english i'am french ) i can do it for italic and underline if you like my bold 's add-on !

Excellent - it wasn't working for me, after replacing code described in your reply, it works fine - thanks... Your can add code for italic and underline as well please... thanks
Reply With Quote
  #61  
Old 07-13-2006, 07:29 PM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SpaceStar
can add code for italic and underline as well please...
Directions? :surprised:
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 01:59 AM.


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.08182 seconds
  • Memory Usage 2,317KB
  • 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
  • (1)bbcode_php
  • (2)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
  • (4)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