1. 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]

Discussion in 'Add-on Releases' started by Rigel Kentaurus, Apr 22, 2014.

  1. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    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: Jul 24, 2014
  2. Moshe1010

    Moshe1010 Well-Known Member

    Do you mean navigate different posts in different pages?
    Last edited: Apr 22, 2014
  3. Rob

    Rob Well-Known Member

    Is there a demo somewhere? I can see the screenshots but would like to see it in operation :)
  4. TsinJu

    TsinJu Well-Known Member

    Superb. I am looking for something to sort my Wiki.
    Thanks a lot
  5. Stuart Wright

    Stuart Wright Well-Known Member

    Have been looking for a way to have anchors in posts. This looks like an elegant solution.
  6. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    This will actually create virtual pages for the first post.
    This is completely separate from the forum pagination.


    Feel free to create a thread for testing it out.
  7. Rob

    Rob Well-Known Member

    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 ;).
  8. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Rigel Kentaurus updated XF Multipage with a new update entry:

    1.0.1 TOC highlight of selected page

    Read the rest of this update entry...
  9. Carla Birch

    Carla Birch Well-Known Member

    @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.

    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) {
  10. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    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
  11. Carla Birch

    Carla Birch Well-Known Member

    I'm running PHP 5.4.27 :)

    Screen Shot 2014-04-27 at 20.51.49.png
  12. 0ptima

    0ptima Well-Known Member

    Would this work in the Resource Manager?
  13. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

  14. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

  15. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    I just checked the changelog, PHP did a change to the empty() function starting off PHP 5.5
    I have removed the dependency to that function. The newest update should work for you in PHP 5.4
  16. tajhay

    tajhay Well-Known Member

    possible to extend this so that the first post collates all the multipages on the thread and displays it as a table of contents?
  17. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    Multipage only applies to the first post, other posts cannot have multiple pages
  18. tajhay

    tajhay Well-Known Member

    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.
  19. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    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 :)
    tajhay likes this.
  20. Talaysen

    Talaysen Member

Share This Page