vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Remove mouseover thread preview for guests (https://vborg.vbsupport.ru/showthread.php?t=204255)

cad2go 02-03-2009 10:00 PM

Remove mouseover thread preview for guests
 
This edit will remove the text guests see when they hover their mouse over a thread.

The bonus is that your forumdisplay pages will load faster and guests won't be eating up as much bandwidth. Normal members are unaffected.

I haven't checked on 3.8 yet but presume this will work with it too as it's such a tiny edit.

Open up your threadbit template

Find:
Code:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
Replace with:
Code:

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="<if condition="$show['member']">$thread[preview]</if>">
That's it!

Demo: http://www.utdforum.com/forum/forumdisplay.php?f=2

This is the page size difference: (approx 25KB)
forumdisplay.php for guests = 80.1KB
forumdisplay.php for members = 107.1KB*

*based on a typical setting of 125 in Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Length of Thread Preview Text

NAZIA 02-04-2009 09:54 PM

LOL..
Who will use this.. anyways..
\Good working...

cad2go 02-04-2009 10:11 PM

Busy boards

Google isn't a big fan of repeated content either.

Maybe you if you want your ads to load faster lol

lazydesis 02-05-2009 02:11 AM

does the thread preview really take up extra time to load?

if this is true .. then i might want to completely eliminate it (even for members) .. i dun think its really that useful to anyone anyways

cad2go 02-05-2009 09:36 AM

Quote:

Originally Posted by lazyindian (Post 1734811)
does the thread preview really take up extra time to load?

if this is true .. then i might want to completely eliminate it (even for members) .. i dun think its really that useful to anyone anyways

This is the page size difference when this template change is made:
forumdisplay.php for guests = 80.1KB
forumdisplay.php for members = 107.1KB*

You can turn it off for everyone in
Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Length of Thread Preview Text>Set to 0

Nice member feature though imo.


All times are GMT. The time now is 02:08 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.01057 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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