vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Different Cell Color for Stickies (https://vborg.vbsupport.ru/showthread.php?t=123939)

Andrew111888 08-13-2006 10:00 PM

Different Cell Color for Stickies
 
What this modification does is change the td cell background color for a sticky thread when viewing a thread listing.

Please note the screenshots are from my 3.0.x release as there's no reason to make new ones.

Versions:
3.6.0
3.5.0
3.0.0

ericgtr 08-15-2006 04:17 PM

Neat, I have a slightly different use for this utilizing your code. I want unanswered topics to be highlighted, so I changed
Code:

<if condition="$thread['sticky'] == 1">
to
Code:

<if condition="$thread[replycount] == 0">
And walla! :)

Thanks, installed.

bongwater 08-24-2006 01:20 PM

I am running 3.6 Gold and I tried following your attached instructions by looking for the following line in the threadbit:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">

and it's not found. Can somebody tell me which string of text to find, if 3.6 gold differs from previous versions?

thanks

Andrew111888 08-26-2006 02:55 AM

I have just confirmed that with a default 3.6.0 gold template, that line is indeed in the threadbit template.

Perhaps your template is out of version?

bongwater 08-26-2006 09:11 AM

Hmm, I guess I must have been looking at the wrong template , because I found it! This was a quick easy one.

Thanks *clicks install*

Snake 08-30-2006 04:23 PM

Thanks for the hack! I'll install it right away... :)

StarBuG 10-20-2006 05:54 PM

I realy liked the Idea from ericgtr

I modified it a little further.

2 options:

1) Highlight only 0 reply threads but no stickies (that is my choice)
Code:

<if condition="$thread[replycount] != 0">
          <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
        <else />
          <if condition="$thread['sticky'] == 1 AND $thread[replycount] == 0">
          <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
    <else />
    <td class="zeroreplybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
    </if>
  </if>

and for the css
Code:

.zeroreplybg
{
        background-color: #ebf0d2;
        color: #000000;
}

2) highlight both (same colors)
Code:

<if condition="$thread[replycount] == 0 OR $thread['sticky'] == 1">
    <td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
          <else />
          <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
    </if>

and for the css
Code:

.stickybg
{
        background-color: #ebf0d2;
        color: #000000;
}

Thx *install*

craig hughes 11-19-2006 05:31 PM

Great change...thanks

Nathan2006 11-25-2006 01:42 AM

Thanks Andrew ;)

Also works really well when using "Separate Sticky and Normal Threads"

Install

SirFlash 03-08-2007 09:13 PM

works on 3.6.4 thanks


All times are GMT. The time now is 08:40 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.01177 seconds
  • Memory Usage 1,737KB
  • 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
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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