vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forum Highlight (https://vborg.vbsupport.ru/showthread.php?t=200895)

Indyaboard 01-06-2009 06:46 PM

Forum Highlight
 
1 Attachment(s)
How can I make the forums highlight when the mouse is over them? Something like the below screen shot.

Indyaboard 01-06-2009 06:47 PM

Quote:

Originally Posted by Indyaboard (Post 1703521)
How can I make the forums highlight when the mouse is over them? Something like the below screen shot.

Demo: http://www.helpviatwitter.com/index....gora&Itemid=53

Bellardia 01-06-2009 07:01 PM

Use CSS and the pseudo class :hover to style classes or perhaps some javascript if you're more comfortable with that.

Indyaboard 01-08-2009 07:01 PM

Quote:

Originally Posted by Bellardia (Post 1703534)
Use CSS and the pseudo class :hover to style classes or perhaps some javascript if you're more comfortable with that.

Not sure what you mean, can you provide me the code and how to edit it? or any hacks that are already posted here @ vB.org?

Bellardia 01-08-2009 07:29 PM

Not sure if there are any hacks, it's a relatively simple concept.
A better way for threads since it is in a table is to actually use Javascript.

If you go to the showthread_threadbit_level1_post and showthread_threadbit_level2_post you can add some inline JS code to the <tr>'s. Make sure you strip the classes from the <td>'s so that the <tr> takes precedence.

Make the <tr>
Code:

<tr onmouseover="this.className='somestyle'" onmouseout="this.className='originalstyle'" class="originalstyle">
Note: this will prevent the colors of the backgrounds from changing when using the inline mod. You can prevent that by using javascript on the <td>'s instead but it wouldn't be such a generic code.

Make sure you define the classes in the css.

Indyaboard 01-10-2009 02:44 PM

Sorry, but I'm kinda new to this stuff. I don't know where the "showthread_threadbit_level1_post" and "showthread_threadbit_level2_post" are. I want to put this color as my highlight color "#FFFF66" Can you provide me step by step on how to do this? Cause I don't know where to add the CSS / <tr><td> and stuff like that :confused: It would be really cool if you can teach me how to do this in an easier way lol? Sorry and thank you so much for your help! :up::cool:

Indyaboard 01-12-2009 10:38 AM

Any help, someone? :confused:

Digital Jedi 01-12-2009 11:02 AM

Quote:

Originally Posted by Indyboard (Post 1707382)
Sorry, but I'm kinda new to this stuff. I don't know where the "showthread_threadbit_level1_post" and "showthread_threadbit_level2_post" are. I want to put this color as my highlight color "#FFFF66" Can you provide me step by step on how to do this? Cause I don't know where to add the CSS / <tr><td> and stuff like that :confused: It would be really cool if you can teach me how to do this in an easier way lol? Sorry and thank you so much for your help! :up::cool:

They're the name of templates in your Style Manager in the Admin CP, and they control the look of your threads on the forum homepage and in subforums. <tr> and <td> are the subdivisions of <table>. They'll be arranged in those templates like this:

Code:


<table>
<tr>
<td>
</td> 
</tr>
</table>

Notice they're nested inside each other. A <tr></tr> creates a row and a <td></td> creates a cell inside that row. Bellardia is showing you an opening <tr> tag with a bit of Javascript inside of it. It should do what you've asked about. By "stripping the classes", all that means is removing the class="" part from that tag if it has any. Probably need to remove them from the <td> tags well.

To test it out, create a new style in your Style Manager with No Parent style, and open up those templates and experiment with putting them into those tags. You can then view the forum in your test style to see if the changes are working the way you want them to.

Oh, um, this is the easy way. ;)

Bellardia 01-12-2009 11:35 AM

The templates I told you start off with
<tbody>
<tr>
<td>

On a default theme typically the <td>'s have the class="" inside them, usually alternating between alt1 and alt2. You'll need to remove all of these and place on class alt1 on the <tr>. This is because the <td>'s would show their style over the <tr> and you cant change the style of all the <td>'s as easily as you can change the style of the <tr>.

CSS is located in Styles & Templates > All Style Options

And yeah, this is the easiest way ;)


All times are GMT. The time now is 04:55 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.01127 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete