vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Sticky Background Color Change with Rollover Effect (https://vborg.vbsupport.ru/showthread.php?t=105597)

01-16-2006 10:00 PM

Sticky Background Color Change with Rollover Effect
 
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 https://vborg.vbsupport.ru/ if you're using this. Thanks!

Note: This does NOT effect any ajax functionality.

creedmaniac 01-17-2006 11:18 PM

how would i change this to make all posts do this, not just stickies

Guest210212002 01-17-2006 11:25 PM

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.

Snake 01-18-2006 12:32 PM

Hey thanks for the mod.

Danny Diamond 02-08-2006 11:16 PM

installed thanks

sandalwood 04-01-2006 01:48 AM

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.

sandalwood 04-01-2006 03:13 AM

okie doke, confirmed that this does not affect ajax :)
cool thanks installed

Guest210212002 04-28-2006 02:14 PM

Thanks. :)

I'll edit the original post to reflect it - apologies for not answering the question sooner.

rrr 04-28-2006 02:58 PM

Is there a way to make this go across all the columns instead of just the thread title column?

Guest210212002 07-06-2006 01:11 PM

Not that I'm aware of, at least not with my method, since I'm doing it within the cell.


All times are GMT. The time now is 09:02 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.01197 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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