Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Improved Thread Preview Hack Details »»
Improved Thread Preview Hack
Version: 1.00, by N!ck N!ck is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-02-2002 Last Update: Never Installs: 88
 
No support by the author.

The idea for this hack was originally that of Parker Clack, a regular here on vBulletin.org.

What this hack does:
Basically, this hack pops up a little box/window when the mouse is run over a thread title that shows the first three hundred characters of the first post in the thread (that is, the post that started the thread).

Improvements to Parker Clack's hack:
  • Far, far less code...
  • Easier installation (one file edit, one template edit)...
  • Less space usage...the beginning of the first post in each thread is not stored twice - only once now!...

Versions:
3.0: Overgrow's search page thread preview instructions.
2.1: Added some necessary instructions.
2.0 Reduced MySQL queries significantly.
1.0 Initial release.

Comments appreciated...

A version for vbHacker is available here - note: some files may need fixing afterward if they present parse errors!

How to Censor Previews (by nakkid)
See page seven of this thread.

A very important security fix is available here - I have not updated the ZIP, so install it after you install the hack

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 03-08-2002, 10:50 PM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oh man your users post alot! wow.. the new version doesn't slow anything down for large sites. Users love it, go for it..
Reply With Quote
  #43  
Old 03-09-2002, 08:11 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
oh man your users post alot! wow.. the new version doesn't slow anything down for large sites. Users love it, go for it..
damn, I am itchin to do it
Reply With Quote
  #44  
Old 03-12-2002, 02:15 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How easy is it to uninstall this hack? Besides reverting to the changed files, do I need to do anything else?
Reply With Quote
  #45  
Old 03-12-2002, 02:20 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did it not work for you? I had quite a few online today and it held up fine. It does increase page size (ouch bandwidth) but I figure it helps reduce bandwidth by having people not click on threads they normally would have. I know it stops me from having to click on a lot.
Reply With Quote
  #46  
Old 03-12-2002, 02:21 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Revert the files and remove the "title" from the templates, if it needs to go.
Reply With Quote
  #47  
Old 03-12-2002, 02:29 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
Did it not work for you? I had quite a few online today and it held up fine. It does increase page size (ouch bandwidth) but I figure it helps reduce bandwidth by having people not click on threads they normally would have. I know it stops me from having to click on a lot.
i havent installed it yet, I have 419 users online right this second.... so reverting the php files will uninstall the hack? how about that database table?
Reply With Quote
  #48  
Old 03-12-2002, 02:37 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea I had to check out your site I have 19 fewer on right now, but hit my record today. (Always seem to on Mondays)

I can't get the latest version of this hack! I have my own version installed since I wrote some of this code but... due to vBulletin's problem with cached attachments, I can't get the latest version. If you send it to me in email, webmaster@overgrow.com, or attach it here in a post, I can look at it and make sure there is nothing else to uninstall.

Did it not work for you? Did you see an increased load-- web or db server?

ps. I find the thread[firstpostid] to be a handy field to have.. i had it before this hack hehe.. i'd leave it, but that's just me
Reply With Quote
  #49  
Old 03-12-2002, 02:55 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
Yea I had to check out your site I have 19 fewer on right now, but hit my record today. (Always seem to on Mondays)

I can't get the latest version of this hack! I have my own version installed since I wrote some of this code but... due to vBulletin's problem with cached attachments, I can't get the latest version. If you send it to me in email, webmaster@overgrow.com, or attach it here in a post, I can look at it and make sure there is nothing else to uninstall.

Did it not work for you? Did you see an increased load-- web or db server?

ps. I find the thread[firstpostid] to be a handy field to have.. i had it before this hack hehe.. i'd leave it, but that's just me
I havent installed it yet....just makin sure I can go back in case server load is too high

heres the attachment
Reply With Quote
  #50  
Old 03-12-2002, 03:00 AM
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From someone with a similar size site, I can tell you the increased server load is non-existant. Once you add the 'firstpostid' field, there is a JOIN added on. I don't see a blip of an increase in load.

OK after looking over the new hack--

revert the PHP
revert the templates: searchresultbit_threadonly and forumdisplaybit
remove the firstpostid field from thread

When it installs, it does a mass update on the thread table so I would close down the site for a minute.
Reply With Quote
  #51  
Old 03-12-2002, 03:02 AM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Overgrow
From someone with a similar size site, I can tell you the increased server load is non-existant. Once you add the 'firstpostid' field, there is a JOIN added on. I don't see a blip of an increase in load.

OK after looking over the new hack--

revert the PHP
revert the templates: searchresultbit_threadonly and forumdisplaybit
remove the firstpostid field from thread

When it installs, it does a mass update on the thread table so I would close down the site for a minute.
how about the page size after install? is it noticeably bigger?

Can you tell me what exact query to run to drop that field if I do go back? Thanks again
Reply With Quote
Reply

Thread Tools

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 10:11 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.04793 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete