Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-25-2012, 05:31 PM
Goshee Goshee is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Link on row instead of only text?

Hi guys! Firstly thanks for all the answers you guys have been posting, really helped me out a lot over the past month since I purchased VBulletin!

Ok, currently when I go to open a thread I have to click the text of the thread name to open said link. The same thing applies when I want to go to a forum or sub forum.

What I would like is that instead of having to focus on pointing your cursor on the text link, I'd rather as soon as you mouse over the thread/forum/subforum title row the link appears clickable.

For example:

http://eu.battle.net/wow/en/forum/872818/

You don't have to click on the thread titles for the link to open, you can click anywhere in the background of it too!

I'd also like the row to change colour once moused over to easily identify what you are pointing at.

Sorry if I explained that poorly (probably why I couldn't find an answer in the first place :P)

Thanks for reading!

----------------------------------------------------------------------------------------------------------------------

For those who want to know how to change the colour of your thread/forum rows on hover then add this code in the Edit Templates -> CSS Templates -> additional.css

Code:
.forumrow:hover, .threadbit > div:hover { 
background: #FF000 !important; }
Change the #FF000 to whatever colour you want!

To those who experienced the problem of the replies/views column not highlighting here is the fix!

Navigate to the 'threadbits' template

Find:
Code:
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">

Replace With:
Code:
<ul class="threadstats td {vb:raw thread.statusstring}" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">

This will now highlight the entire row, including the replies/views column!
Reply With Quote
  #2  
Old 05-25-2012, 06:01 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is due to how that theme has been coded. Where did you download it? Try to ask at its support thread/forum about it.
Reply With Quote
  #3  
Old 05-25-2012, 06:06 PM
Goshee Goshee is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh sorry, I used the default Vbulletin theme for my website and have just been adjusting it from there.

The example isn't my forum, just an example of how I would like my forum to work. My forum is exactly like this one. Sorry for the confusion.
Reply With Quote
  #4  
Old 05-25-2012, 06:40 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Goshee View Post
Oh sorry, I used the default Vbulletin theme for my website and have just been adjusting it from there.

The example isn't my forum, just an example of how I would like my forum to work. My forum is exactly like this one. Sorry for the confusion.
No problem. Maybe I misunderstood what you meant. English is not my first language.

It will involve some css/template changes to make a hover effect. To make it for the whole area there so it will have a hoover on mouse hoovering, add this code at the additional.css file:

HTML Code:
.threadinfo:hover {
     background: red;
}
And change red with whatever color you would like to have as a background on mouse hoover.
Reply With Quote
  #5  
Old 05-27-2012, 04:16 PM
Goshee Goshee is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome thanks a lot mate! It's almost there now, is there anyway I can get it so the threads/posts & last post sections also highlight too?

Similar to how when you click on a thread to moderate it the whole bar changes colour

Also need to figure out how link the thread title/background to the post instead of only the title Thanks again!
Reply With Quote
  #6  
Old 05-27-2012, 05:34 PM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey this is a nice thing to have. I've done it to my forum as well. Would be great to know how to make it link instead of just highlight the whole thing.
Reply With Quote
  #7  
Old 05-27-2012, 07:19 PM
Goshee Goshee is offline
 
Join Date: Apr 2012
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found a bit of better code which includes the whole bar guys

Code:
.forumrow:hover, .threadbit > div:hover { 
background: #FF000 !important; }
Change the #FF000 to whatever colour you want!

Still need to figure out how to link it

[s]EDIT: Seem to be having problems with the Replies/Views column not highlighting with the rest of the row... if anyone has a fix for this would appreciate it! (Threads/Posts column works fine)

This works to get it on hover

Code:
.threadstats:hover {
     background: #261307;
}
Though obviously it works independently with the other code, need to combine them somehow :P[/s]

Found the fix, view the original post to see it! If you used the above code in your additional CSS then remove it
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 06:16 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.04524 seconds
  • Memory Usage 2,227KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete