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)

N!ck 03-04-2002 12:04 PM

this hack will save you a huge amount of space. rather than storing the beginning of the first post of a thread, it stores only the ID of the first post!

if you DO want to change back over, you'll need to drop the extra field in your "thread" table and do some modifications to newthread.php and forumdisplay.php (and perhaps some un-modifications to other files as well ;)), then run the install script. really all the install script does is creates the new field ("firstpostid") and goes through each thread (this may take some time and bandwidth depending on the number of threads you have - my fairly new board had about 20 threads and the install script still went as fast as lightning), getting the ID of the first post and storing it.

Parker Clack 03-04-2002 03:59 PM

nick:

Nice way of doing this. When you get it all together with freddie's and Overgrow's suggestions and the search function finished could you put it all together in one file to download?

Thanks for idea of adding this to the search page though. I never thought of that!

Since I have over 200G of storage space on my server space is not an issue. :)

Parker

N!ck 03-04-2002 09:34 PM

Parker, the search page previews are Overgrow's idea :)

The instructions for the search page will be in version 3.0 of the hack...probably to be released tonight because I think I'll just steal Overgrow's entire post (and give him credit for that of course) and put it in a text file.

N!ck 03-05-2002 10:39 PM

The search page instructions have been added. :)

N!ck 03-06-2002 09:28 PM

bump :D

N!ck 03-08-2002 12:41 AM

:D

freakyshiat 03-08-2002 02:58 AM

is it easy to uninstall this biatch? :D

I had Parker's one for a while, but i reverted back to the original php files

Parker Clack 03-08-2002 03:45 AM

Fazle:

Did you have problems with it on your board? So far so good for me using either version.

Parker

freakyshiat 03-08-2002 03:54 AM

Quote:

Originally posted by Parker Clack
Fazle:

Did you have problems with it on your board? So far so good for me using either version.

Parker

oh no, not at all.... my board has 350-420 users online usually around peak times and gets 22k-25k posts a day...so the extra queries were making things a little slow :)

N!ck 03-08-2002 10:44 PM

there's a new version with no extra queries ;) download it, make the appropriate changes to your forumdisplay.php, and (if you want), do the modifications to search.php


All times are GMT. The time now is 11:59 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.01240 seconds
  • Memory Usage 1,734KB
  • 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_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