Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Show all posts on one page Details »»
Show all posts on one page
Version: 1.00, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-30-2005 Last Update: Never Installs: 9
 
No support by the author.

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> 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-02-2005, 05:12 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it will produce the same amout of queries, but it will just select more posts, the array will be bigger = more memory usage, bandwidth, etc..

i don't suggest anyone use this unless you are certain you aren't going to have large threads.. eg, 100+ replies

say you have a thread with a 1000 replies.
1) the viewers' browser will take a year to load because of all the content and will probably bog down their system (browser would use more cpu to process)
2) server bandwidth usage will skyrocket because of the large pages.
3) waste of server resources
Reply With Quote
  #13  
Old 02-03-2005, 10:41 PM
Cibox.de Cibox.de is offline
 
Join Date: Oct 2004
Location: Germany
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx for this mod
Reply With Quote
  #14  
Old 02-24-2005, 05:41 AM
Lumina's Avatar
Lumina Lumina is offline
 
Join Date: Sep 2002
Location: France
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mike Sullivan says it is a potential DoS:
http://www.vbulletin.com/forum/showpost.php?p=822044
Reply With Quote
  #15  
Old 03-23-2005, 07:58 PM
underESTIMATED underESTIMATED is offline
 
Join Date: Feb 2005
Location: Akron, Oh
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's useful on most occasions.

Thank you for this...
Reply With Quote
  #16  
Old 04-10-2005, 02:29 AM
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice hack KirbyDE : )

Quote:
Originally Posted by KirbyDE
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> 
I guess it will look better when doing the above this way (Don't edit template "SHOWTHREAD"):

Note: My version is vB 3.0.7

1. Open the file "/includes/adminfunctions_template.php" and find this line:
PHP Code:
'array',                 // used for checking 
Below that add:
PHP Code:
'strpos',                // used for checking 
2. Go to template "pagenav" and find this:
HTML Code:
</tr>
</table>
</div>
Above that add:
HTML Code:
<if condition="strpos($address, 't=')"><td class="alt1"><a class="smallfont" href="$address&amp;showall=1" title="View all posts in a single page">Show All</a></td></if>
Reply With Quote
  #17  
Old 08-15-2005, 03:57 PM
Gutspiller's Avatar
Gutspiller Gutspiller is offline
 
Join Date: Dec 2001
Posts: 1,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually... From the looks of it, this code only shows 2.1 trillion posts per page, not "all".
Reply With Quote
  #18  
Old 03-27-2008, 04:56 PM
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Waiting for version 2.00
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:44 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.04513 seconds
  • Memory Usage 2,277KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_html
  • (4)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete