bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Plugin: Page links for bbPress

(15 posts)
  • Started 1 year ago by SamBauers
  • Latest reply from Phayze
  • This topic is not resolved

Tags:

  1. Here's one a few people have asked for. This plugin adds links to pages within each topic in all topic lists.

    Download latest version here

    Posted 1 year ago #
  2. The is also a trac ticket for this

    Posted 1 year ago #
  3. So that's the other place I saw it. I've updated that ticket.

    Posted 1 year ago #
  4. It's not working for me...

    On topics with a single page, I get this error:

    Bad arguments. in blah blah blah/bbpress/
    my-plugins/page-links.php on line 68

    When I click on a page link, I get this error:

    Fatal error: Call to undefined function: is_tags() in
    /blah blah blah/bbpress/
    my-plugins/page-links.php on line 33

    Any idea what's wrong?

    Also, I would recommend that you add an option for the links to be text-only instead of the CSS/image based ones. Thanks for putting this plugin out for all of us.

    Posted 1 year ago #
  5. What version of bbPress are you using. I have to admit that I haven't tested against 0.8.1, only against the latest 1.0 alpha

    I think I know what went wrong though. Download and try again, I've updated the version to 1.0.1

    The links are text-only. If you don't want the images/styles just remove them from the CSS file.

    Posted 1 year ago #
  6. Cheers Sam, worked beautifully. I put your CSS in my style.css and played around with it until eventually getting rid of all extra styling :P But it works great. That was a major annoyance. Thanks. :D

    Posted 1 year ago #
  7. Sam, I am on .8.1, but it is working fine now.

    This plugin doesn't play nicely with the Front Page Topics plugin. I had it set to show 25 posts per page on topics pages, so I would only have 2 or 3 pages, whereas your plugin would count 5 or 6. When I would click on a link to a page that was beyond the actual pagination, I would get a "This topic is closed" message. I went ahead and just deleted the Front Page Topics plugin and it is working fine now.

    Would there be a way to change the number of posts per page in your plugin from the default 10, or better yet to look for the front page topics and count based on the options in that plugin? Just curious.

    Thanks.

    Posted 1 year ago #
  8. Hmm take out the images and put the page numbers between (..), makes your plugin easier to install (no difficult stuff with images, extra uploading etc)... just my 2 cents

    Posted 1 year ago #
  9. @fel64 - You don't have to copy the styles into another style sheet, just edit the styles in the file page-links.css

    @wittmania - I've updated the plugin to be compatible with "Front Page Topics", it's more a design problem with that plugin, but I've worked around it.

    @Null - All that has to be done is copying the three files, one php, one css, one image into the my-plugins folder. If you want to change the styles then just edit them in the CSS file. I couldn't have made it any easier given I wanted it to be easily styled for different layouts without having to modify templates.

    Posted 1 year ago #
  10. I mis the page 1

    I know clicking the title you go to page 1, but we are all known with the vbulletin way...

    So if it has one page, dont show the page tags
    If it has two, show the page 1 and page 2 tags
    etc etc

    Posted 1 year ago #
  11. Comment out this line in the plugin to get page 1 showing.

    unset($links[0]);

    That's line 82 in version 1.0.2

    Posted 1 year ago #
  12. I also added a snippet of code to append a link to the last post.

    Find the end of the function page_links_add_links and replace this

    return $title;
    }

    with this

    $felgtlpl = get_topic_last_post_link($topic->topic_id);
    $title = $title . ' <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;</a>';
    
    return $title;
    }
    Posted 1 year ago #
  13. Now available in bbPress plugin browser:

    http://bbpress.org/plugins/topic/43

    Posted 1 year ago #
  14. Thanks for this Sam, looking at it I also made a plugin using the Simple Onlinelist which will highlight any new posts made since the last time someone logged in. :) Waiting to have it approved as a plugin so I can upload.

    Posted 1 year ago #
  15. _ck_'s "bbpress topic limit" plugin seems to screw with the count for this plugin - I get 9 pages for topics which only have 3, and other weird calculation errors - anyone know of a fix?

    Posted 9 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.