vb.org Archive

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

cad2go 02-04-2009 10:00 PM

Remove mouseover thread preview for guests
 
1 Attachment(s)
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.

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

Turning off thread preview for ALL users can be achieved WITHOUT edits through the Admin CP:
Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Length of Thread Preview Text>Set to 0

cad2go 02-05-2009 10:02 AM

I rated this terrible by mistake:o lol

Arcade Fire 02-05-2009 12:46 PM

Installed, Thanks ;)

Rated with excelent. :)

cad2go 02-06-2009 12:15 PM

lol Cheers

Sweeks 02-06-2009 05:43 PM

Nice one ;)
________
Free Kohls Gift Card


All times are GMT. The time now is 07:46 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.01247 seconds
  • Memory Usage 1,718KB
  • 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)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