vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Show Thread Enhancements - Unread Thread Color Hack (https://vborg.vbsupport.ru/showthread.php?t=184306)

Michel Fortin 07-02-2008 09:00 PM

Unread Thread Color Hack
 
I wanted to implement a hack that would color code the threads that are unread -- above and beyond the link bolding. So I implemented this hack that will change the color of the background.

Here's what you do.

Go into the Main CSS of the template. Add the following in "Additional CSS Definitions" box:

Code:

/* ***** change thread color for unread ***** */
.unread {
background-color: #fefdf0 !important;
}

Now go to your threadbit template and look for:

Code:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
Add this code (in red):

Code:

<td class="<if condition="$show['gotonewpost']">unread </if>alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
And voila!

Click here for a live demo.

Hope this helps!

Super Jinni 07-03-2008 09:28 PM

thanks

I'm gonna give it a try

:)

NGUYENDUCTRUONG 07-03-2008 09:43 PM

Thank you very much !

TimberFloorAu 07-04-2008 11:00 PM

Great work mate. Works a dream, thank you very much .

Ozzy clicks * Installed and Launched *

acegames 07-06-2008 12:08 PM

Thanks , just what I was looking for

soletrader 07-07-2008 01:24 AM

Hi,

How would I add one for closed and popular threads? Thanks

Michel Fortin 07-07-2008 12:30 PM

Quote:

Originally Posted by soletrader (Post 1568657)
Hi,

How would I add one for closed and popular threads? Thanks

What you're looking for is here:

https://vborg.vbsupport.ru/showthread.php?t=174973

BigDog56 07-07-2008 03:00 PM

Seams to change the color of the read threads, not the unread ones.

g0dfather1984 07-08-2008 03:25 AM

Thank you!

Emmmmrz 07-14-2008 01:17 AM

I don't suppose it would be possible to get the code inserted into a text document to download for people that want to use this; but not go code diving atm? (like myself)


All times are GMT. The time now is 01:56 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.01582 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete