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
  #112  
Old 05-18-2002, 08:01 AM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes
Reply With Quote
  #113  
Old 05-18-2002, 05:13 PM
N!ck N!ck is offline
 
Join Date: Mar 2002
Location: Lake Havasu City, AZ
Posts: 886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really?
Reply With Quote
  #114  
Old 05-18-2002, 05:16 PM
inetd inetd is offline
 
Join Date: Nov 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply With Quote
  #115  
Old 05-23-2002, 12:55 PM
Jeremy W. Jeremy W. is offline
 
Join Date: May 2002
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had tried installing this and kept getting compile errors or something (I'm an ASP'er, not a PHP'er, gimme a break).

Line 991 I'm told. Line 991 is this:

Code:
$searchresult[message]=censortext(searchresult[pagetext]);
So I looks around and I realise it should read like this instead:

Code:
$searchresult[message]=censortext($searchresult[pagetext]);
Reply With Quote
  #116  
Old 05-30-2002, 06:54 AM
Delmon Delmon is offline
 
Join Date: Nov 2001
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Arabic Transulation Of The Hack By : walah

29May2002
Reply With Quote
  #117  
Old 06-04-2002, 01:42 PM
Marty McFly Marty McFly is offline
 
Join Date: Feb 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok...i installed this a couple of days ago and it worked great. now it doesnt work at all. what gives? www.purekaos.com/board
Reply With Quote
  #118  
Old 07-10-2002, 04:52 PM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the instructions > the threadpreview search .txt file > at the very bottom in the template change part, its missing a $ before fppreview

Didnt read the whole thread to see if anyone else brought it up, thanks.....

After 3/4 months of usage, my users think this was the best hack EVER, so thanks again to Parker for the original idea and nicksaunders/freddie for perfecting it
Reply With Quote
  #119  
Old 07-14-2002, 06:50 PM
freakyshiat freakyshiat is offline
 
Join Date: Nov 2001
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by nicksaunders
here's an example

open forumdisplay.php. find:
PHP Code:
    $fppreview=preg_replace("/\[[^\]]*\]/","",$fppreview); 
    
$fppreview=str_replace("\"","",$fppreview); 
replace with:
PHP Code:
$fppreview=str_replace("[img]","",$fppreview);
$fppreview=str_replace("[/img]","",$fppreview);
$fppreview=str_replace("[url]","",$fppreview);
$fppreview=str_replace("[/url]","",$fppreview);
$fppreview=str_replace("\"","",$fppreview); 
I made these changes in search.php also but doesnt work, it still ignores any text between "[" and "]"

Applying those changes in forumdisplay worked fine. any ideas?
Reply With Quote
  #120  
Old 07-17-2002, 09:45 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope nicksaunders doesn't mind, but I've made a small modification to this hack. The purpose of the mod is to add an on/off switch the user can set via the User CP/Edit Options, so he/she can decide to use this feature or not. I did this because some of my users said they didn't like it.

I have attached the modification instructions to this post. These instructions DO NOT include instructions for the base hack; they assume that you have already installed this hack, and show you what to do AFTER that. These will be meaningless if you have not already installed the original base hack!

nicksaunders, if you would like to include this modification in the official version of this hack, by all means, please feel free. If you do, I suppose it would be nice to have my name up there with "nicksaunders, freddie, Overgrow, & Parker Clack"...
Reply With Quote
  #121  
Old 07-17-2002, 02:13 PM
Marty McFly Marty McFly is offline
 
Join Date: Feb 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Marty McFly
ok...i installed this a couple of days ago and it worked great. now it doesnt work at all. what gives? www.purekaos.com/board
any way i can uninstall/reinstall this hack? i try going through the installation process again (tpinstall.php) and i get database erros and it wont go through. im getting this error:

---------------------------------------------------
Database error in vBulletin 2.2.6:

Invalid SQL: ALTER TABLE thread ADD firstpostid INT(10) UNSIGNED DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'firstpostid'

mysql error number: 1060

Date: Wednesday 17th of July 2002 11:13:30 AM
Script: http://www.purekaos.com/board/board/...all.php?step=2
Referer: http://purekaos.com/board/tpinstall.php
---------------------------------------------------
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 09:58 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.04694 seconds
  • Memory Usage 2,313KB
  • 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
  • (2)bbcode_code
  • (2)bbcode_php
  • (2)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