vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Forumhome Mouseover Effect (https://vborg.vbsupport.ru/showthread.php?t=92600)

drumsy 01-07-2006 07:08 PM

I attempted to have the same effect in the forumdisplay utilizing the following code that I assembled from this thread creator's code and a previous poster. I am running into a problem though where I cannot force the hand to show in the forum display.

Edited in the threadbit template

PHP Code:

<td class="alt1Active" id="td_title_$thread[realthreadid]title="$thread[preview]style="cursor: pointer;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='showthread.php?$session[sessionurl]t=$thread[threadid]';"


silurius 01-07-2006 09:03 PM

Beautiful!

Dark_D 01-09-2006 11:19 PM

Works like a charm on 3.5.3, thanks

kregger 01-13-2006 01:05 AM

I like it a lot! *Install*

Craig

Club3G 01-14-2006 10:26 PM

Working, but it's changing my forum font to 9 pixels instead of 10, and causing my cells to shift:

http://www.sevenstring.org/chris/rolloverissue.jpg

How do I get around this? Thanks!

[high]* Club3G clicks install[/high]

Club3G 01-14-2006 10:50 PM

Fixed. I had to do the following, for anyone encountering a similar problem:

Add this to the main CSS. If your style isn't using verdana in that cell, substitute which font you're looking for.

Code:

/* ***** Forum Rollover Coloring ***** */
 .forumrollover 
{
        background: #555555;
        color: #CCCCCC;
        font: verdana;
}

Where the colors are from your alt2Active settings.

Then where this is present:

Code:

onmouseover="this.className='alt2Active'
Change to:

Code:

onmouseover="this.className='forumrollover'
Hope that helps anyone that might run into the same problem. IMHO this is a better way of doing it, as someone else mentioned, since it uses a separate CSS slot for a very specific feature, and it'll allow you to edit the color to your choosing without changing your alt2Active color settings globally.

- Chris

RYoBiOS 01-14-2006 11:15 PM

Is it possible even in thread pages?

Club3G 01-15-2006 04:28 AM

Quote:

Originally Posted by RYoBiOS
Is it possible even in thread pages?

Yeah, just make the same changes to I believe, threadbit.

Done my way (see a few posts up) with a CSS variable for the rollover:

Replace:

Code:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
With:

Code:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]" onmouseover="this.className='forumrollover';" onmouseout="this.className='alt1';">

QueenBee 01-15-2006 04:38 AM

wow i actually did it, but is there any way i can change the color of it?? i have a light theme, and the color that it makes is bothering my eyes.

thanks

Club3G 01-15-2006 04:49 AM

Quote:

Originally Posted by QueenBee
wow i actually did it, but is there any way i can change the color of it?? i have a light theme, and the color that it makes is bothering my eyes.

thanks

Yup.

In the main CSS for your style, add this to the bottom of the "Additional CSS Definitions" block down the bottom.

Code:

/* ***** Forum Rollover Coloring ***** */
 .forumrollover 
{
        background: #555555;
        color: #CCCCCC;
        font: verdana;
}

You might not need the color and font lines, I have them in there to fix the bug I posted a few posts up. If you're not using the verdana font, you definitely don't want that in there. ;)

Change the #555555 to whichever color you want to change to.

Then in the template edits, change:

Code:

onmouseover="this.className='alt2Active';"
to

Code:

onmouseover="this.className='forumrollover';"
That way if you every want to change it, just edit the CSS entry.


All times are GMT. The time now is 01:44 AM.

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.02458 seconds
  • Memory Usage 1,749KB
  • 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
  • (8)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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