vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Changing Background Color for threads that have been read? (https://vborg.vbsupport.ru/showthread.php?t=112491)

dragtech 04-08-2006 08:00 PM

Changing Background Color for threads that have been read?
 
How and where do i change or add the code to change the background color of threads that have been read, and leave the unread thread as default? I did a search but could not find anthing that helped me.

I'm using VB3.5.4

Thanks

Freesteyelz 04-08-2006 09:41 PM

Ack. I thought this would be a great mod to work on then I saw this thread with the answers. :) Darn those vB Team. :D

dragtech 04-09-2006 01:48 AM

Perhaps i was doing something wrong. But i could not get that to work for me. Nothing would change.

Freesteyelz 04-09-2006 02:52 AM

Ahh...Maybe it hasn't been done yet. Hmm... :D

Try this:

In Threadbit template --> threadbit look for:

Code:

        <td class="alt2" id="td_title_$thread[realthreadid]" title="$thread[preview]">
Replace it with:

Code:

<!-- COLOR BACKGROUND CHANGE ON READ -->

<if condition="$show['gotonewpost']">
        <td class="alt2" id="td_title_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt2" id="td_title_$thread[realthreadid]" title="$thread[preview]" style="background:#ff0000">
</if>

<!-- / COLOR BACKGROUND CHANGE ON READ -->

Change "#ff0000" to whatever color you want. The column for read threads (non-bold) will change color while the unread thread columns will remain the same.


All times are GMT. The time now is 10:27 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.01054 seconds
  • Memory Usage 1,714KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete