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
Sticky background color change Details »»
Sticky background color change
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.0 Beta 4 Rating:
Released: 02-22-2008 Last Update: Never Installs: 124
Template Edits
Re-useable Code Translations  
No support by the author.

Simple template mod, updated from my 3.5.x mod.

ACP -> Styles & Templates -> Style Manager -> Edit Templates -> Threadbit

Find:

Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
Replace with:

Code:
<!-- Sticky Color -->
<if condition="$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>
<!-- /Sticky Color -->
Then create the CSS class:

ACP -> Styles & Templates -> Style Manager -> Style Name -> Main CSS -> Additional CSS Definitions

Add the following:

Code:
.stickybg
{
	background-color: #333333;
}
Change the red code to your new color.

Screenshot:

Show Your Support

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

Comments
  #42  
Old 11-06-2008, 11:11 PM
raja811 raja811 is offline
 
Join Date: Oct 2006
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #43  
Old 01-08-2009, 07:18 PM
fariborz khan's Avatar
fariborz khan fariborz khan is offline
 
Join Date: Jul 2007
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want install this hack but i think when i want upgrade my site i must change this code again can i create a importable poroduct for this usful hack that i dont need change againe when i upgrade my forum?
Reply With Quote
  #44  
Old 01-29-2009, 02:12 AM
HaS?R HaS?R is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks Great.Thanks.
Reply With Quote
  #45  
Old 02-02-2009, 01:54 AM
Dingo14 Dingo14 is offline
 
Join Date: Dec 2007
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dadoc View Post
I wanted to do this
but at the end I was not able to find this

Code:
.stickybg
{
	background-color: #333333;
}
Because I have non default skins would that be the problem?

I tried to install it on Crime Case Files
you have to add that code to your Additional CSS Definitions for the skin you are adding to

Works great thanks for this
Reply With Quote
  #46  
Old 06-02-2009, 04:17 AM
iBetc iBetc is offline
 
Join Date: May 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reasons the stickies are centered now.

Can I correct this? They look a bit awkward when all the other threads are left justified.
Reply With Quote
  #47  
Old 06-02-2009, 04:38 AM
iBetc iBetc is offline
 
Join Date: May 2009
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Correction...

Turns out the "sicky" is the same color as the background color. I tried changing the color of the word 'sticky' but no luck. Any advice?
Reply With Quote
  #48  
Old 06-18-2009, 05:40 PM
DesignerDani DesignerDani is offline
 
Join Date: Jun 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks! Just what I needed.
Reply With Quote
  #49  
Old 08-18-2009, 05:50 PM
kNeeLy's Avatar
kNeeLy kNeeLy is offline
 
Join Date: Nov 2008
Location: ohio
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI..this works on 3.7.4 and 3.8.4 :-P
Reply With Quote
  #50  
Old 10-16-2009, 07:38 AM
RrCoX22's Avatar
RrCoX22 RrCoX22 is offline
 
Join Date: Nov 2006
Location: Los Altos, Ca
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone know to the reason why the word "Sticky:" is no longer viewable? I had this installed on 3.7.4 and upgraded to 3.8.4 and it still works. I just recently created a new vbulletin starting out with 3.8.4 and the word "Sticky:" is not viewable. I even tried add this:

Code:
.stickyprefix {
color:#FF4400;
font-weight:bold;
}
into the Additional CSS Definitions and still no luck
Reply With Quote
  #51  
Old 01-12-2010, 06:01 AM
stefke1974's Avatar
stefke1974 stefke1974 is offline
 
Join Date: Dec 2009
Location: Belgium
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great on 3.8.4 , thanks (Click here for preview)
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:30 PM.


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.09585 seconds
  • Memory Usage 2,303KB
  • 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
  • (5)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
  • (10)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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete