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

Reply
 
Thread Tools
Sticky Background Color Change with Rollover Effect Details »»
Sticky Background Color Change with Rollover Effect
Version: 1.00, by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-16-2006 Last Update: Never Installs: 35
Template Edits
 
No support by the author.

Sticky Background Color Change with Rollover Effect

This mod takes from the following two releases:
Live Wire's Forumhome Mouseover Effect Mod.
Andrew111888's Sticky Background color Mod.

I've taken bits from both and combined them, and take no credit for the original idea of either, save that I'm doing them both. It's my first attempt at a release and should be considered beta until checked out by more experienced Coders than myself.

What it does: Changes the background color of sticky threads, with a mouseover effect:

Time to install: 5 minutes
Difficulty: Easy
Templates: 1
CSS Edit: 1
Demo: Here
Tested: IE, Maxthon, Firefox

Updated: 1.0.1: Fixed a bug where it wasn't showing thread preview for non-sticky threads.

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

Find:
Code:
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
Replace with:
Code:
<!-- Sticky Rollover Color -->
<if condition="$thread['sticky'] == 1">
	<td class="stickybg" id="td_title_$thread[realthreadid]" title="$thread[preview]" onmouseover="this.className='stickyover';" onmouseout="this.className='stickybg';">
<else />
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Rollover Color -->
ACP -> Styles & Templates -> Style Manager -> Style Name -> Main CSS -> Additional CSS Definitions

You will need to add these two declarations:

The normal background color, change #333333 to your desired background color:

Code:
.stickybg
{
	background-color: #333333;
}
And the mouseover color, change #444444 to your desired highlight color:

Code:
.stickyover
{
         background-color: #444444;
}
Screenshot attached.

Please Click if you're using this. Thanks!

Note: This does NOT effect any ajax functionality.

Show Your Support

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

Comments
  #2  
Old 01-17-2006, 11:18 PM
creedmaniac creedmaniac is offline
 
Join Date: Jan 2006
Location: South Carolina
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how would i change this to make all posts do this, not just stickies
Reply With Quote
  #3  
Old 01-17-2006, 11:25 PM
Guest210212002
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by creedmaniac
how would i change this to make all posts do this, not just stickies
https://vborg.vbsupport.ru/showthread.php?t=92600

Of note, that mod worked for my forumhome, but for some reason, viewing the forum lists via category view broke the mouseout, so when I rolled the mouse off, the background of the cell would turn black. I seem to be the only person noticing the behavior however.
Reply With Quote
  #4  
Old 01-18-2006, 12:32 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey thanks for the mod.
Reply With Quote
  #5  
Old 02-08-2006, 11:16 PM
Danny Diamond's Avatar
Danny Diamond Danny Diamond is offline
 
Join Date: Oct 2004
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed thanks
Reply With Quote
  #6  
Old 04-01-2006, 01:48 AM
sandalwood sandalwood is offline
 
Join Date: Mar 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this affect the ajax function, where moderator can doubleclick to edit titles? the other thread mentions that this is the case. and i don't like missing that feature.
Reply With Quote
  #7  
Old 04-01-2006, 03:13 AM
sandalwood sandalwood is offline
 
Join Date: Mar 2006
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okie doke, confirmed that this does not affect ajax
cool thanks installed
Reply With Quote
  #8  
Old 04-28-2006, 02:14 PM
Guest210212002
Guest
 
Posts: n/a
Default

Thanks.

I'll edit the original post to reflect it - apologies for not answering the question sooner.
Reply With Quote
  #9  
Old 04-28-2006, 02:58 PM
rrr rrr is offline
 
Join Date: Oct 2004
Location: California
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make this go across all the columns instead of just the thread title column?
Reply With Quote
  #10  
Old 07-06-2006, 01:11 PM
Guest210212002
Guest
 
Posts: n/a
Default

Not that I'm aware of, at least not with my method, since I'm doing it within the cell.
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 03:28 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.04877 seconds
  • Memory Usage 2,282KB
  • 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
  • (4)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
  • (1)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
  • (6)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
  • 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