vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Automatic Post Coloring (https://vborg.vbsupport.ru/showthread.php?t=32104)

Diva 08-24-2002 08:41 PM

Quote:

Originally posted by [D]Vincent
You're suppose to put it in Admin CP > Templates > Modify > Style that you want to modify > Postbit Templates > postbit and then find the $post[message] and do as he said.
Let's try this one more time. :tired:

Quote:

Now add
$color_on and $color_off around $post[message] and it'll work.
Around meaning:
1. Somewhere around the line [above or below it]

or

2. Literally within that line:
Quote:

<p><normalfont color="$post[field5]">$color_on $post[message] $color_off</normalfont></p>
Keep in mind that I do not do hacks, just follow the instructions and enjoy the results.

Austin Dea 08-25-2002 12:18 AM

It should be just
Code:

<p><normalfont>$color_on$post[message]$color_off</normalfont></p>
if you used that code hack from KuraFire. Be sure to change the X in 'fieldX' to the field number you created.

Diva 08-25-2002 03:12 AM

thank you!

Darth Cow 08-25-2002 07:09 AM

Thanks... I guess :p. Some of my users have been doing this thing on their own for while manually, and it does get a bit annoying, so they've been bugging me for this for a while. Of course, I have better things to spend my programing time on than adding useless tasteless features, those I suppose there isn't any additional harm. I might have actually done it on my own, but I didn't realize how easy adding an optional profile field like this is :cool:.

EDIT: Actually, I'd like to humbly recommend a slight change in this script, adding the code before the following instead where it was previously:

PHP Code:

    $subject=censortext($subject);
    
$message=censortext($message); 

That will insure that someone can't just make their color "black[/font]" and procede to add whatever cuss words they feel like :).


All times are GMT. The time now is 09:33 PM.

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.01039 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete