vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Show all posts on one page (https://vborg.vbsupport.ru/showthread.php?t=75456)

Andreas 01-30-2005 10:00 PM

Show all posts on one page
 
Did you ever want to display all posts of a certain thread on just one page?

So here you go:

In showthread.php FIND
PHP Code:

// ********************************************************************************  *
// set post order 

ABOVE that ADD
PHP Code:

if ($_REQUEST['showall'] == 1) {
  
$perpage 2147483648;


Then call the thread as showthread.php?t=ID&showall=1

If you want to have a link, put the this in template SHOWTHREAD (Thx to AshEbed!)
HTML Code:

<if condition="$show['pagenav']"><a href="showthread.php?$session[sessionurl]t=$threadid&amp;&showall=1">View All</a></if>

nexialys 01-31-2005 12:30 AM

genial...

(i usually have nothing to say on these hacks, but it's from KirbyDE, so...)

Paul M 01-31-2005 12:50 AM

While 2147483648 may be technically correct - tbh, I think 999999 would suffice for most threads ;) - and convey the significance of it somewhat better ....

Tekton 01-31-2005 12:52 AM

Quote:

Originally Posted by Paul M
While 2147483648 may be technically correct - tbh, I think 999999 would suffice for most threads ;) - and convey the significance of it somewhat better ....

maybe 999999999 to be on the safe side, ne?

Though, wouldn't showing more than a thousand cause some big lag/processing problems? or not?

7ABD 01-31-2005 06:09 AM

Hi , Mr .KirbyDE

thankyou for this hack , but this hack awe working slow inside posts ?


thanks :)

zurih 01-31-2005 09:07 AM

does this makes the page more time to load?

sabret00the 01-31-2005 09:42 AM

a thread showing 10 posts will load faster than that of 40 posts, however if you've got this set to show all and theirs only 5 posts in the thread it should load just as though their were 10 posts in terms of speed.

zurih 01-31-2005 02:49 PM

how can I apply this to be default?
I mean that by default in all of the threads we'll se all of the posts on one page?

Guy G 02-01-2005 03:05 PM

if its a big thread wouldnt it excute loads of queries?

zurih 02-01-2005 04:09 PM

Quote:

Originally Posted by Guy G
if its a big thread wouldnt it excute loads of queries?

I think that no metter what u'll have the same queries.. (am I right?!)
for example I have a thread with 2 replies and a thread with 14 replies and both of them - same queries.


All times are GMT. The time now is 10:05 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.02072 seconds
  • Memory Usage 1,735KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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