• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF Multipage for XF 1.3 [Paid] [Deleted]

Rigel Kentaurus

Well-known member
#1
Rigel Kentaurus submitted a new resource:
XF Multipage - XF Multipage

This Add-On solves the issue of reading a first post that is really, really long, and wishing it could be organized into sections, yet, somehow, doing multiple posts does not seem like the correct solution.

This Add-On adds a new BBCode, named "multipage", that will work ONLY on the first post. You may add multipage to separate the pages:



The result, in the first post, will be a Table of Contents, that enables you to navigate the different pages in the post.



Whenever you edit the post, you can add more pages, remove, re-arrange or change anything, because it is just a BBCode. The TOC will be updated for the new data.



Please note
Cache BB Code Output must be disabled for this feature to work

 
Last edited:

Rob

Well-known member
#7
Thats nice, because you can link to each individual page.
Just a suggestion.... it would be very useful if you could highlight the page you are currently on in the table of contents ;).
 

Rigel Kentaurus

Well-known member
#8

Carla Birch

Well-known member
#9
@Rigel Kentaurus I'm getting the the following error.
When i view a thread with this addon turned on it shows a white page, in Admin CP it gives this error in the logs.

Code:
Server Error Log
Error Info
ErrorException: Fatal Error: Can't use function return value in write context - library/XfAddOns/MultiPage/Override/Model/Post.php:71
Generated By: C.Birch, A moment ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(83) "http://www.yourpshome.net/threads/new-this-week-from-lockwood-april-23rd-2014.9591/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 

Rigel Kentaurus

Well-known member
#10
@Rigel Kentaurus I'm getting the the following error.
When i view a thread with this addon turned on it shows a white page, in Admin CP it gives this error in the logs.

Code:
Server Error Log
Error Info
ErrorException: Fatal Error: Can't use function return value in write context - library/XfAddOns/MultiPage/Override/Model/Post.php:71
Generated By: C.Birch, A moment ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
  ["url"] => string(83) "http://www.yourpshome.net/threads/new-this-week-from-lockwood-april-23rd-2014.9591/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
This is probably a PHP incompatibility, must likely you are running in 5.2 or 5.3
I'll update the add-on so it works regardless of the PHP version
 

tajhay

Well-known member
#16
possible to extend this so that the first post collates all the multipages on the thread and displays it as a table of contents?
 

tajhay

Well-known member
#18
Multipage only applies to the first post, other posts cannot have multiple pages
Yes i understand that. Just wondering if it can be extended so that becomes possible to add multipages bbcodes on any post. Would be a fantastic way of creating a table of contents. As it is right now, the main and perhaps only reason why someone would want this is if they wanted to show a really long first post in smaller chunks. Really like the idea of table of contents and if it can parse through the rest of the thread and build that, it would be awesome.
 

Rigel Kentaurus

Well-known member
#19
Yes i understand that. Just wondering if it can be extended so that becomes possible to add multipages bbcodes on any post. Would be a fantastic way of creating a table of contents. As it is right now, the main and perhaps only reason why someone would want this is if they wanted to show a really long first post in smaller chunks. Really like the idea of table of contents and if it can parse through the rest of the thread and build that, it would be awesome.
It can definitely be extended, the logic is there, just needs to be moved to the other posts.
There is some complexity in it, though. If you click on the page 3 of the first post, and then you click on page 2 of the second post, should it "remember" or "reset" that you were navigating the first post. Depending on that it can basically complicate how it tracks the page that you are currently viewing.

Right now, I don't have the intention of adding that functionality. The main purpose is pagination of the first post, and it already does that fairly decent :)