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
  #12  
Old 03-09-2007, 12:41 PM
anywares anywares is offline
 
Join Date: Dec 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr View Post
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.
same here

*installed*
Reply With Quote
  #13  
Old 03-16-2007, 08:41 AM
Tri@de's Avatar
Tri@de Tri@de is offline
 
Join Date: Sep 2003
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a way to have this working for all forums/thread/posts?
Reply With Quote
  #14  
Old 03-24-2007, 06:33 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found this code in threadbit in v 3.6.5:

Code:
<td class="alt1Active" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
and replaced it with this:

Code:
<if condition="$thread['sticky'] == 1">
	<td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1Active" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
...and don't forget to add:

Code:
.stickybg
{
	background-color: #hex;
	color: #000000;
}
to your CSS style definitions (and replace #hex with a color).
Reply With Quote
  #15  
Old 03-26-2007, 06:41 AM
Atakan KOC's Avatar
Atakan KOC Atakan KOC is offline
 
Join Date: Feb 2006
Location: Istanbul
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks....
Reply With Quote
  #16  
Old 04-24-2007, 06:08 AM
mikewiemholt mikewiemholt is offline
 
Join Date: Apr 2007
Location: San Luis Obispo, CA
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a bunch - instead of using a bg color I used an image which was nice

Thanks again,
Reply With Quote
  #17  
Old 04-25-2007, 03:21 AM
iorkara iorkara is offline
 
Join Date: Mar 2007
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Thanks Clicks Install
Reply With Quote
  #18  
Old 04-27-2007, 03:25 AM
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Location: Bathurst, Au
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Handy little idea
Reply With Quote
  #19  
Old 05-18-2007, 08:43 AM
dbembibre's Avatar
dbembibre dbembibre is offline
 
Join Date: Sep 2004
Location: Madrid (Spain)
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To extend the background in 3.6.x to announce as in the image Attachment 35356

In ACP -> Styles & Templates -> Style Manager -> [desired style] -> Edit Templates -> threadbit_announcement

Find
Code:
<td class="alt2" colspan="$announcecolspan">
Change to
Code:
<td class="stickybg" colspan="$announcecolspan">

For 3.5 versi?n see the following post
https://vborg.vbsupport.ru/showpost....1&postcount=13
Reply With Quote
  #20  
Old 06-13-2007, 03:13 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Easy to use, thanks!

BTW: i think there is a typo in the install file it is this:

Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
instead of this:

Code:
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
Reply With Quote
  #21  
Old 06-15-2007, 03:53 AM
rooney72 rooney72 is offline
 
Join Date: May 2007
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I modified advanced .css

.stickybg
{
background-color: #hex;
color: #750B10;
}

But the color is still light blue and NOT red as I want it
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 05:55 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.06316 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (9)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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