Log in

View Full Version : Forum Display Enhancements - Remove mouseover thread preview for guests


cad2go
02-03-2009, 10:00 PM
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:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

Replace with:
<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
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.