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

Reply
 
Thread Tools
Different Cell Color for Stickies Details »»
Different Cell Color for Stickies
Version: 1.0.0, by Andrew111888 Andrew111888 is offline
Developer Last Online: Apr 2011 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 08-13-2006 Last Update: Never Installs: 156
Template Edits
 
No support by the author.

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

Show Your Support

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

Comments
  #2  
Old 08-15-2006, 04:17 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 08-24-2006, 01:20 PM
bongwater's Avatar
bongwater bongwater is offline
 
Join Date: Nov 2005
Location: south Florida
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 08-26-2006, 02:55 AM
Andrew111888's Avatar
Andrew111888 Andrew111888 is offline
 
Join Date: Mar 2003
Posts: 208
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 08-26-2006, 09:11 AM
bongwater's Avatar
bongwater bongwater is offline
 
Join Date: Nov 2005
Location: south Florida
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
  #6  
Old 08-30-2006, 04:23 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack! I'll install it right away...
Reply With Quote
  #7  
Old 10-20-2006, 05:54 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Reply With Quote
  #8  
Old 11-19-2006, 05:31 PM
craig hughes craig hughes is offline
 
Join Date: Apr 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great change...thanks
Reply With Quote
  #9  
Old 11-25-2006, 01:42 AM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Andrew

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

Install
Reply With Quote
  #10  
Old 03-08-2007, 09:13 PM
SirFlash's Avatar
SirFlash SirFlash is offline
 
Join Date: Feb 2007
Location: Canada
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works on 3.6.4 thanks
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 11:42 AM.


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.04458 seconds
  • Memory Usage 2,297KB
  • 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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete