Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-28-2005, 11:36 PM
AshAbed AshAbed is offline
 
Join Date: Nov 2003
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Display all posts from a thread on one page

I'm looking for a hack which puts a link that lets you view all posts in a thread with multiple pages on one page. So what I'm saying is next to the 'Page 1 2 3 > >>' links there should be a link that says 'view all' and that'd let you see all the posts on one page. I don't think this would be too hard to make, there's a chance it'd only take template editing.

Thanks for any help,
Ashraf Abed
Reply With Quote
  #2  
Old 01-29-2005, 08:39 PM
tgmorris tgmorris is offline
 
Join Date: Nov 2003
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The number of posts displayed is based on configuration settings (Maximum Displayed Posts Before Page Split and User-Settable Maximum Displayed Posts) in the ACP -> Thread Display Options.

In theory you could allow the user to select a ridiculously high number like 1000 or some such simply by adding it to the list in User-Settable Maximum Displayed Posts. It's very easy to change and give it a try. However this could have a significant performance impact if you have busy forum and a lot of large threads.

If you do change it to try it out you then need to go into your User CP -> Edit Profile and select the number in Number of Posts to Show Per Page.
Reply With Quote
  #3  
Old 01-29-2005, 10:02 PM
AshAbed AshAbed is offline
 
Join Date: Nov 2003
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know I could let users select how many posts viewable per page, but if they select a high amount then every thread would show every post on one page - I'm looking for them to see the page with lets say 20 posts per thread and have a link that says view all for only that thread. There may be some threads users would like to see all on one page and others they would like divided up.
Thanks for the suggestion though.
Reply With Quote
  #4  
Old 01-29-2005, 10:19 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 01-29-2005, 10:30 PM
AshAbed AshAbed is offline
 
Join Date: Nov 2003
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much, I'll try it out when I get to my desktop.
Thanks again.

Incase anyone else wants to use this this is the code you put in the showthread template:
PHP Code:
<if condition="$show['pagenav']"><a href="showthread.php?$session[sessionurl]t=$threadid&amp;&showall=1">View All</a></if> 
Put that where you want the link to show up.
Reply With Quote
  #6  
Old 07-07-2005, 11:02 AM
kash2k kash2k is offline
 
Join Date: Jun 2005
Location: The Toon
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did this work???
Reply With Quote
  #7  
Old 08-15-2005, 05:11 PM
alyster4k alyster4k is offline
 
Join Date: Apr 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump. Did it?

Any way to limit the amount in case they try to open like a 50 page thread?
Reply With Quote
  #8  
Old 09-01-2005, 07:29 PM
alyster4k alyster4k is offline
 
Join Date: Apr 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump.
Reply With Quote
Reply


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 06:16 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.04129 seconds
  • Memory Usage 2,234KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete