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)

Snapperhaed 03-28-2003 03:43 AM

I installed this on 2.3 #3 and could not get it to work.
I entered the code line for line, checked and double checked.
While I get no errors, I do not get anything on the mouse over.

I installed the 'tpinstall.php' is the forums/admin directory. Perhaps that was the problem. The install doesnt specify, unless I over looked it. Any suggestions, help and or tips?

Looking forward to proper operation!

EDIT:

After picking at it a little more, I noticed that it would NOT show posts which existed BEFORE installing this hack, however it DOES show the preview on NEW posts. Guess thats all that matters, or am I incorrect in assuming it would show prior posts?

N!ck 03-28-2003 09:48 PM

are you sure you ran tpinstall.php?

Rynthar 04-17-2003 06:15 AM

In VB 2.3.0, whenever I try to run tpinstall.php I get a mysql 1060 error after I try to go to step 2

Kars10 04-20-2003 07:40 PM

Hi N!ck, is there a way to integrate this hack in the online.php for the Threads the users read (vB3 Style)?

Thanks in advance
Kars

94supratt 04-24-2003 04:10 PM

How do i un install this totally?

Marty McFly 05-02-2003 12:52 AM

when trying to run the tpinstall.php i get this error:

----------------
Database error in vBulletin 2.3.0:

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: Thursday 01st of May 2003 08:49:37 PM
Script: http://www.purekaos.com/board/~purek...all.php?step=2
Referer:
--------------------

any ideas?

translucent 05-07-2003 07:44 PM

Is there any way to increase the number of characters shown and to display line breaks?

hukgwai 05-28-2003 09:13 PM

any reason why it stops responding during step 2?

Chazz Layne 06-24-2003 05:16 PM

Installed great and is running perfect here (2.2.9), but I ran into a problem with vBMyIndex shortly after. Somehow, it's preventing the News (and the add-on PotD I built) from showing anything posted since Thread Preview was installed. As much as I hate vBPortal, I must admit it is probably the same problem that dotagious ran into a couple pages back with his setup.

I'll poke around some and see what I can find in there... any one else had any luck with this issue?

Chazz Layne 06-24-2003 08:28 PM

Cool, found and fixed. As dotagious had narrowed down earlier it is in newthread.php. When you're adding in the sections in there, instead of replacing the whole area, just add the small query to the bottom. The original query is still the same... I. E....

PHP Code:

      $DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,isnews) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','Y')");
      
$postid=$DB_site->insert_id(); 

^^^^ Keep this, with whatever modifications you have done to make your portal software work.

Instead, just add this additional part (from Thread Preview) below it...
PHP Code:

      $DB_site->query("UPDATE thread SET firstpostid = '$postid' WHERE threadid = '$threadid'"); 

I don't have vB Portal installed to test it, but I am pretty sure this would fix the problem with that as well since they are built simillar at this point.


All times are GMT. The time now is 02:34 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.01167 seconds
  • Memory Usage 1,743KB
  • 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_php_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