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
  #92  
Old 04-27-2007, 02:52 AM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Someone want to help to get this in 3.6?
I am stuck at
Display Size: 11

There is no display size in 3.6
Reply With Quote
  #93  
Old 04-28-2007, 03:08 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and looking great on 3.6.4! Had to edit post bit and legacy both.
Reply With Quote
  #94  
Old 04-30-2007, 01:57 AM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cajunboy2208 View Post
Someone want to help to get this in 3.6?
I am stuck at
Display Size: 11

There is no display size in 3.6
Anyone?
Reply With Quote
  #95  
Old 04-30-2007, 08:48 AM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't worry about that...just pretend it isn't even there.
Reply With Quote
  #96  
Old 04-30-2007, 12:24 PM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you deezel
Reply With Quote
  #97  
Old 04-30-2007, 09:08 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome, Cajunboy! Got it working?
Reply With Quote
  #98  
Old 05-03-2007, 09:57 PM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it installed finally. Works like a charm. Thanks much!
Reply With Quote
  #99  
Old 05-03-2007, 10:02 PM
deezelpope deezelpope is offline
 
Join Date: Feb 2007
Posts: 1,272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! Happy to hear it!!
Reply With Quote
  #100  
Old 07-30-2007, 02:02 AM
grc grc is offline
 
Join Date: Oct 2005
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've spent some time today getting this mod to work on 3.6.8 -- including the addition of font size too.

First, add a Personal Font Size field to the User Profile Fields. Make the options
Use Forum Default
medium
large


Or you can size by points
9pt
10pt
11pt
12pt




Then, in the postbit template the replacement for:
Quote:
<div id="post_message_$post[postid]">$post[message]</div>
Is

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

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

<else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
Again, the "fieldx" instances need to be replaced with the three field numbers from the User Profile Field Manager. The first three can be in any order. The second three need to match the proper field numbers for font, color, and size.

Hope this helps someone.
Reply With Quote
  #101  
Old 08-03-2007, 07:47 PM
Chachacha's Avatar
Chachacha Chachacha is offline
 
Join Date: Jul 2006
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now when someone quotes your post, the color doesn't show up, anyone know how to make it work in quotes as well?
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 08:36 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.06248 seconds
  • Memory Usage 2,309KB
  • 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
  • (3)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