vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Default Post Color (https://vborg.vbsupport.ru/showthread.php?t=244786)

Dave 06-16-2010 10:00 PM

Default Post Color
 
1 Attachment(s)
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.

https://vborg.vbsupport.ru/external/2010/06/23.png

3) Press save and go to User Profile Field Manager to check the field number and write it in a notepad or something.
https://vborg.vbsupport.ru/external/2010/06/24.png

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.

Kolbi 06-17-2010 11:20 AM

Nice description :)

The font tag is an old standard I guess?

Wouldn?t there be a modern xhtml version?

merk_aus 06-17-2010 02:42 PM

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.

1320Nation 12-26-2011 07:53 PM

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:

Webrunner 12-28-2011 01:13 PM

is there a way to make this working in the social groups?

HHelp1 12-28-2011 02:00 PM

May any 1 here show me some SS please? :/

doctorsexy 12-28-2011 05:59 PM

Quote:

Originally Posted by HHelp1 (Post 2281649)
May any 1 here show me some SS please? :/

+1 on that....

Webrunner 02-19-2012 05:37 AM

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.


All times are GMT. The time now is 12:59 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
  • Page Generation 0.00966 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete