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)

stark 10-10-2002 08:48 AM

Is there wa way to increase the amount of time the box shows up? A lot of my users are saying it goes away too fast to read the 300 characters.

N!ck 10-10-2002 12:52 PM

that's just Internet Explorer's timeout...nothing can be done about it...

EvilLS1 11-11-2002 07:11 AM

Nice hack!

Question: is it possible to show the first 300 charecters of the last reply to the thread instead of the first post?

N!ck 11-11-2002 04:13 PM

it would require you to make newreply.php update a new field called "lastpostid" in table "thread" with the reply id#. it would be a bit of work, but it's certainly possible.

NuclioN 11-18-2002 12:32 AM

Strange...after installing the threadstarter dates in forumdisplay are all set to 1 januari 1970 for all topics. (???)

#01 12-06-2002 11:27 AM

Quote:

Originally posted by LS1 TA
Nice hack!

Question: is it possible to show the first 300 charecters of the last reply to the thread instead of the first post?

This would definatly be more useful to me. Can sombody make these changes and post em here?

Thanx

Brahm 12-12-2002 10:27 PM

Works and looks fantastic on my site. Thanks for the Hack!

dotagious 01-11-2003 02:55 AM

I'm running vbportal and noticed that the modification needed for the newthread.php file edits the same block of text that vbportal does. When the code is added over the vbportal code, I get an error when trying to submit a new thread.

I replaced the original file, and thread preview is working fine regardless. Could someone look at the following code and tell me what I need to do (if anything, considering it's working) to make this hack work with vbportal?

How my newthread.php looks with vbportal code:

PHP Code:

// vBPortal Begin
// create first post
//      $DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1')");
      
$DB_site->query("INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible,topic) VALUES (NULL,'$threadid','".addslashes(htmlspecialchars($subject))."','".addslashes($postusername)."','$bbuserinfo[userid]','".time()."','$attachmentid','".addslashes($message)."','$allowsmilie','$signature','$ipaddress','$iconid','1','$topic')");
// vBPortal End 


dotagious 01-14-2003 07:46 PM

*sigh*

dotagious 01-15-2003 10:23 PM

ttt


All times are GMT. The time now is 10:38 AM.

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.01756 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_php_printable
  • (1)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