Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Unread Thread Color Hack Details »»
Unread Thread Color Hack
Version: 1.00, by Michel Fortin Michel Fortin is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.2 Rating:
Released: 07-02-2008 Last Update: Never Installs: 20
Template Edits
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-03-2008, 10:28 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

I'm gonna give it a try

Reply With Quote
  #3  
Old 07-03-2008, 10:43 PM
NGUYENDUCTRUONG NGUYENDUCTRUONG is offline
 
Join Date: May 2008
Location: Deutschland
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much !
Reply With Quote
  #4  
Old 07-05-2008, 12:00 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Ozzy clicks * Installed and Launched *
Reply With Quote
  #5  
Old 07-06-2008, 01:08 PM
acegames acegames is offline
 
Join Date: Jan 2006
Location: UK
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks , just what I was looking for
Reply With Quote
  #6  
Old 07-07-2008, 02:24 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

How would I add one for closed and popular threads? Thanks
Reply With Quote
  #7  
Old 07-07-2008, 01:30 PM
Michel Fortin's Avatar
Michel Fortin Michel Fortin is offline
 
Join Date: Jul 2006
Location: Ottawa, Ontario (Canada)
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by soletrader View Post
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
Reply With Quote
  #8  
Old 07-07-2008, 04:00 PM
BigDog56 BigDog56 is offline
 
Join Date: Jan 2007
Posts: 430
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seams to change the color of the read threads, not the unread ones.
Reply With Quote
  #9  
Old 07-08-2008, 04:25 AM
g0dfather1984 g0dfather1984 is offline
 
Join Date: May 2008
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #10  
Old 07-14-2008, 02:17 AM
Emmmmrz's Avatar
Emmmmrz Emmmmrz is offline
 
Join Date: Jul 2008
Location: NorthPole
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05178 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete