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)
-   -   hot thread coloring (https://vborg.vbsupport.ru/showthread.php?t=38249)

N!ck 05-04-2002 10:00 PM

hot thread coloring
 
This is a tiny hack that changes the background color of a thread title in forumdisplay.php when it qualifies as a "hot thread".

NOTE: vB.org's replacements are automatically parsed in the attached text file. Wherever you see #F1F1F1, you may want to change that to { firstaltcolor } (without the spaces).

Xanthine 05-05-2002 01:33 AM

Very nice, thank you.

RDX1 05-05-2002 01:35 AM

demo?

N!ck 05-05-2002 01:52 AM

dude, it just changes the background color of the title cell.

DWZ 05-05-2002 02:17 AM

Quote:

Originally posted by nicksaunders
dude, it just changes the background color of the title cell.
it would still be nice to have a screenshot for those newbies to vB who dont know title cells are and everything...

RDX1 05-05-2002 02:36 AM

Quote:

Originally posted by nicksaunders
dude, it just changes the background color of the title cell.
others probley dont want to install it and se ethey dont want it...


also be cool instead of a diffrent table color, have it diffrent text color, ect mabey bold

N!ck 05-05-2002 03:17 AM

it's easy to adapt this if that's what you're after

lordofgun 05-05-2002 03:30 AM

on my forums, it's higlighting the background of EVERY cell in that column, not just the hot ones!

lordofgun 05-05-2002 03:51 AM

i don't show the F1F1F1 in my template, i show {firstaltcolor} instead. is that why i'm having problems?

N!ck 05-05-2002 03:57 AM

looking @ your "NFL Smackdown" forum, almost every single thread is a "hot thread" (look at the icons), so...?

N!ck 05-05-2002 03:59 AM

looking over the code again, i don't see how this could do the highlighting incorrectly - it works the same as the icons

lordofgun 05-05-2002 04:23 AM

oh geesh...i'm an idiot. I thought you meant it would highlight sticky threads.

i'm going to go practice my reading comprehension now. THANKS!

BTW, is there an easy way to change the bgcolor color of a stuck thread?

NICE HACK! :D

lordofgun 05-05-2002 04:28 AM

/me still feels like an idiot.

N!ck 05-05-2002 06:45 PM

i'll take a look

N!ck 05-05-2002 06:50 PM

forumdisplay.php - find:
PHP Code:

  $thread[typeprefix]=$stickythreadprefix.$thread[typeprefix]; 

after, add (remember to remove the spaces in { firstaltcolor }):

PHP Code:

  $rowbg="{bghighlight}";
} else {
  
$rowbg="{ firstaltcolor }";


Then, create your replacement {bghighlight} and follow the instructions in the text file for editing your forumdisplaybit template.

lordofgun 05-06-2002 03:28 AM

thanks bro! YOU ROCK! :D

N!ck 05-06-2002 03:39 AM

:)

mvigod 05-06-2002 02:41 PM

Can you add the ability to do this for sticky threads too in a different color? And maybe also announcements?

ZiRu$ 05-06-2002 08:05 PM

sounds cool but I don't want the bg color to be changed I want the TEXT color to be changed when a thread is stickied or a ANNOUNCMENT

Mike Gaidin 03-06-2003 08:04 PM

Quote:

Originally posted by ZiRu$
sounds cool but I don't want the bg color to be changed I want the TEXT color to be changed when a thread is stickied or a ANNOUNCMENT
That's what I'm looking for too.


All times are GMT. The time now is 02:07 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.01069 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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