vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Improved Thread Preview Hack (https://vborg.vbsupport.ru/showthread.php?t=35645)

inetd 05-18-2002 08:01 AM

yes

N!ck 05-18-2002 05:13 PM

really?

inetd 05-18-2002 05:16 PM

:D

Jeremy W. 05-23-2002 12:55 PM

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]);

Delmon 05-30-2002 06:54 AM

Arabic Transulation Of The Hack By : walah

29May2002

Marty McFly 06-04-2002 01:42 PM

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

freakyshiat 07-10-2002 04:52 PM

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 :)

freakyshiat 07-14-2002 06:50 PM

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?

JJR512 07-17-2002 09:45 AM

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"...;)

Marty McFly 07-17-2002 02:13 PM

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
---------------------------------------------------


All times are GMT. The time now is 01:28 PM.

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.01329 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete