Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #162  
Old 07-10-2003, 05:14 PM
TheCaver TheCaver is offline
 
Join Date: Oct 2001
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it supposed to take forever to do the tpinstall step2? It seems like it just hangs.....

Board is 50k> threads, 450K posts.....

JC
Reply With Quote
  #163  
Old 09-18-2003, 07:36 AM
blazin blazin is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed the hack and it works only with the threads that existed at the time of the hack install.

Any new threads that have been made after the install do not show a preview.

The firstpostid field is 0 on all new posts...if I change it manually to some value it works

Any ideas?
Reply With Quote
  #164  
Old 09-20-2003, 09:11 PM
rseidl rseidl is offline
 
Join Date: Apr 2002
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope i dont get jailed for asking this but

1. would this hack work for vb3 also ?
and
2. does the zip file on page 1 of this thread include the "missing" $ sign and control panel on/off switch
Looks very useful ! Thanks
Reply With Quote
  #165  
Old 09-21-2003, 05:21 AM
MaDCaT75 MaDCaT75 is offline
 
Join Date: Jul 2003
Location: Southern California
Posts: 718
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack

/me clicks install
Reply With Quote
  #166  
Old 09-25-2003, 12:54 PM
richier richier is offline
 
Join Date: Dec 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having an issue after installing this hack. I have VBportal installed and every thing is working fine except when a new thread is started it double posts the starters post

It's some where in here and I can't find it

// vBPortal Begin
// create first post
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmili e,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($ subject))."','".addslashes($po stusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($mess age)."','$allowsmilie','$signa ture','$ipaddress','$iconid','1')");
$DB_site->query("UPDATE thread SET firstpostid = '$postid' WHERE threadid = '$threadid'");
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmili e,showsignature,ipaddress,iconid,visible,topic) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($ subject))."','".addslashes($po stusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($mess age)."','$allowsmilie','$signa ture','$ipaddress','$iconid','1','$topic')");
// vBPortal End

$postid=$DB_site->insert_id();

indexpost($postid,1);
Reply With Quote
  #167  
Old 10-08-2003, 02:06 AM
Ludelover Ludelover is offline
 
Join Date: Jan 2003
Location: Redwood City
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheCaver
Is it supposed to take forever to do the tpinstall step2? It seems like it just hangs.....

Board is 50k> threads, 450K posts.....

JC

I get the same problem
Reply With Quote
  #168  
Old 10-08-2003, 02:13 AM
Ludelover Ludelover is offline
 
Join Date: Jan 2003
Location: Redwood City
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yo how do i unistall this thing? When I ran tpinstall.php i got to step 2 and it hangs. Now the board is slow as funk. It's fast 99% of the time.
Reply With Quote
  #169  
Old 10-20-2003, 03:51 AM
klaattu klaattu is offline
 
Join Date: May 2003
Location: mexico
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Click "install"

Wow wonderful hack and so simple to implement, it works perfectly if anybody wants to check it go http://www.clioclub.com.mx

By the way since that forum is only 10 days old I made a backup of the database (it download to my computer with the _db_.sql way so here are a few questions:

If my tables get corrupted or something while running the tpinstall.php file how do I reupload the tables?

I am nervous because my other site has mor e time a lot of more posts and members so I dont want to kill my self because I killed my database, any recomendatiosn, procedures or ways to fix if th e unexpected happens??

Thanks again and best regards Juan Carlos
Reply With Quote
  #170  
Old 10-30-2003, 02:21 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fazle
In the instructions > the threadpreview search .txt file > at the very bottom in the template change part, its missing a $ before fppreview
The original zip for this hack still HAS the $fppreview bug, can someone please update it.


Thanks for the hack! Excellent idea
Reply With Quote
  #171  
Old 11-05-2003, 09:34 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm suprised there has been no attention paid to ~rc~'s post (https://vborg.vbsupport.ru/showpost....&postcount=127) about the exploit. I've tried to duplicate it, but I couldn't.. perhaps I'm doing something wrong.

Has anyone else had any success in duplicating this? Has it been fixed in 2.3.0, because in a Who's Online it doesn't provide any links for Mods/Admin's nor will it allow me to hijack a searchid.
Reply With Quote
Reply


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 03: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.04806 seconds
  • Memory Usage 2,307KB
  • 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_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
  • (3)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