Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Default Post Color Details »»
Default Post Color
Version: 1.00, by Dave Dave is offline
Developer Last Online: Aug 2021 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.3 Rating:
Released: 06-16-2010 Last Update: Never Installs: 13
Template Edits
Re-useable Code Translations  
No support by the author.

I could only find bad descriptions of this mod in this section so I decided to make one with a better explanation.

Description: Let users have a default font color of their text in a post. (Also possible for default font size and family.)

Time needed: A few minutes.

How to:

1) First login into the admin cp and go to User Profile Fields > Add New User Profile Field

2)
Title: Post color
Description: Please fill in a color code in the box. Example: #FF0909
Uncategorized
Default Value: (Leave empty or fill in a color code)
Max length of user input: 7
Field length: 7
Profile field type: Single-line text box

The other options are up to you.



3) Press save and go to User Profile Field Manager to check the field number and write it in a notepad or something.


4) Now go to Styles & Templates > Style Manager > Open the skin you want the default color / font or size in > Postbit templates > Postbit

5) Find this:
HTML Code:
<blockquote class="postcontent restore">
	{vb:raw post.message}
</blockquote>
And replace with this:
HTML Code:
<blockquote class="postcontent restore">
	<font color="{vb:raw post.fieldX}">{vb:raw post.message}</font>
</blockquote>
You have to replace the X with your own field number.

6) Save and do step 5 for postbit_legacy too.

That's it!

You can also replace color with size or family but you will have to edit the user profile field.
Best is to use multiple-selection menu for font family.

Show Your Support

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

Comments
  #2  
Old 06-17-2010, 11:20 AM
Kolbi Kolbi is offline
 
Join Date: Mar 2009
Location: D - S?dbaden
Posts: 899
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice description

The font tag is an old standard I guess?

Wouldn?t there be a modern xhtml version?
Reply With Quote
  #3  
Old 06-17-2010, 02:42 PM
merk_aus merk_aus is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sure Kolbi if you want the xhtml version you could easily do it for your site. To the Original Poster thanks for this it is greatly appreciated.
Reply With Quote
  #4  
Old 12-26-2011, 07:53 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod works perfect on my 4.1.9 version board.

However I Replaced the text the developer used in the Description area with the following text:

Quote:
This will be your font color when posting. (Ex: #FFFFFF is white)<br /> <a href="http://html-color-codes.info/" onclick="window.open('http://html-color-codes.info/');
return false;" target="newWin"><b>Click Here For Color Codes</b></a>
You will see what this does is add a color wheel type option which will allow your members to easily come up with ANY color they choose. I have a Dark Style board, so if you have a bright color board you might change the text (Ex: #FFFFFF is white) to (Ex: #000000 is black).

With this added info you should end up with a nice clean looking mod to your board. :up:
Reply With Quote
  #5  
Old 12-28-2011, 01:13 PM
Webrunner Webrunner is offline
 
Join Date: Aug 2004
Location: Netherlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to make this working in the social groups?
Reply With Quote
  #6  
Old 12-28-2011, 02:00 PM
HHelp1's Avatar
HHelp1 HHelp1 is offline
 
Join Date: May 2011
Location: Florida
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

May any 1 here show me some SS please? :/
Reply With Quote
  #7  
Old 12-28-2011, 05:59 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HHelp1 View Post
May any 1 here show me some SS please? :/
+1 on that....
Reply With Quote
  #8  
Old 02-19-2012, 05:37 AM
Webrunner Webrunner is offline
 
Join Date: Aug 2004
Location: Netherlands
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since this mod is just about adding standard vb profile fields, what would be the point in showing screenshots.
The text in post just change into color the user entered in these fields.
I myself also added font and font size.
Reply With Quote
Reply

Thread Tools

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 06:23 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.05143 seconds
  • Memory Usage 2,278KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete