Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2009, 03:06 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make a post that FORCES a page break?

In the nature of my forums, there are some threads that have LOOOONG posts - far too much to display 10 of them on 1 page (and no, knocking the posts/page display down would screw other parts up).

Is there a way to FORCE an end-page? So that, say after 1 post, it automatically shows "Page 1 of X, 1, 2, 3" etc... at the bottom of that post ?
Reply With Quote
  #2  
Old 05-31-2009, 05:26 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing I can think to do is write a plugin that changes the posts display for certain threadids.
Reply With Quote
  #3  
Old 05-31-2009, 06:41 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
The only thing I can think to do is write a plugin that changes the posts display for certain threadids.
Hmm, it would have to be for various new threads. Some are just regular posts, which I'd still like to have 10 per page. Other contain copy/pasted info and attachments with thumbnails. These just *really* slow down load time as the pages are HUGE if they have 10 posts like that.

I posted another request for end the page based on # of attachments being displayed on the page. THat would work too (might be easier?) Count # of attachments in the posts on that page and end the page as soon as it hits say, 100. ( ??)
Reply With Quote
  #4  
Old 05-31-2009, 06:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not limit the amount of characters and attachments per post. Then, if needed, the user can make a couple of posts regarding whatever they are writing about.
Reply With Quote
  #5  
Old 06-01-2009, 03:38 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Why not limit the amount of characters and attachments per post. Then, if needed, the user can make a couple of posts regarding whatever they are writing about.
Not possible with my setup. It's basically to limit the # of attachment thumbnails displayed on each page.

Right now I have it set up to 10 posts per page - which is perfect for half the forums (chit chat and what not). The forums that contain lots of pictures, threads are taking forever to display. I *need* 100 pictures post limit (minimum).

Many threads will only have 5 or 10 pictures - works fine at 10 posts displayed per page.

But on the posts that have 100 pictures, I want to insert a "bottom of page" post so that it will just skip to the "Page 1 of X" part without displaying more.

I need to be able to FORCE that "Page 1 of X" part.

I could make a post with secret code as the post like.. "[[endpage]]" as the message body. When showthread comes across that text it doesn't display more posts on that page and shows the "Page 1 of X" part.
Reply With Quote
  #6  
Old 06-01-2009, 03:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe write a plugin that checks the number of attachments and if it is more than x then set the number of posts to display to y? I'm not really sure here.
Reply With Quote
  #7  
Old 06-01-2009, 08:06 PM
z0diac z0diac is offline
 
Join Date: Dec 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Maybe write a plugin that checks the number of attachments and if it is more than x then set the number of posts to display to y? I'm not really sure here.
THat would probably work.

Or, if the code that displays the posts of a thread is a loop, have it exit the loop as soon as # of displayed thumbnails >= the set limit.

Hopefully someone can figure it out...

if there's any people who know vB code reading this thread, I'd be willing to pay for a working code modification. (vB v3.6.8 although the showthread code probably hasn't changed much)
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 03:38 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03769 seconds
  • Memory Usage 2,217KB
  • Queries Executed 11 (?)
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_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_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