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)

Twizted 11-08-2001 11:06 PM

Quote:

Originally posted by J-OST
Yes, it works great with 2.2.0.
you must have installed it then right?

could u pleaz help me out and tell me where to put the new part of the code at???

:(

Reeve of shinra 11-09-2001 01:25 AM

Step three has two parts ....

A) open newreply - find what it asks for then copy / past over the info from step 4.

B) open Newthread.php - find what it asks for then copy paste over the same information you pasted found in step 4.

Remember that 'changeme' must read field5 or field6 or field437 or whatever ...

Reeve of shinra 11-09-2001 01:28 AM

heretic - make sure you have the right field selected. ie field5.

Twizted 11-09-2001 03:12 AM

it said

Directly underneath those, before the query, add this (same code for both files)

do i add it right under that part of the code.. or into the middle of that code???

the original code is

PHP Code:

        } else {
      if (
$attachmentid and !$foruminfo[moderateattach]) {
        
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
      } 

so would i make it go right under it like this

PHP Code:

    } else {
      if (
$attachmentid and !$foruminfo[moderateattach]) {
        
$DB_site->query("UPDATE thread SET attach = attach + 1 WHERE threadid = '$threadid'");
      }
      
//  attempt at auto-surround post with tags
      
if ($bbuserinfo[changeme]!="") {
        
$message "[color=".$bbuserinfo[changeme]."]".$message."[/color]";
        } 

or before the query in it?

im confused right now -.-

Twizted 11-09-2001 03:20 AM

awesome it works

:p

Ed FvC 11-09-2001 03:59 AM

This is pretty sweet. :D How about adding a default font face, too? I'm always typing font=trebuchet ms color=#99cc00...gets rather old.

Great hack!

heretic 11-09-2001 03:22 PM

Quote:

Originally posted by Reeve of shinra
heretic - make sure you have the right field selected. ie field5.


yes, I was sure.

I'll try it again.

Mike Gaidin 11-09-2001 08:05 PM

Sorry I didn't see this sooner Twizted. I'm glad it's working for you now. :)

Reeve of shinra 11-09-2001 10:44 PM

You can actually change it to font face very easilly by repeating the same steps and changing the surrounding tags in the hack part. You will see what I mean....

Logan 11-09-2001 11:02 PM

I really like this. Good job!!!


All times are GMT. The time now is 02:05 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.01099 seconds
  • Memory Usage 1,738KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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