bbPress Plugin Browser »

Page links for bbPress (1.0.4)

Download

Version: 1.0.4

Other Versions

Last Updated: 2008-10-6

Requires bbPress Version: 0.80 or higher

Compatible up to: 1.0 alpha build 1773

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(2)

Your Rating

Author: Sam Bauers

This plugin adds cute little page links next to the topic title in topic lists.

The functionality of this plugin is built-in to bbPress 1.0 - do not use this plugin with bbPress 1.0, use the topic page links function instead.


  1. i didnt get what this plugin do please explain more for me thx

    Posted: 4 years ago #
  2. Warning: Division by zero in /home/mciarlo/public_html/forum/my-plugins/page-links.php on line 75

    Help?

    Posted: 4 years ago #
  3. monstr

    Member

    same here.. and no answer for eight months >.<

    Posted: 4 years ago #
  4. The division by zero error must happen because the front_page_topics plugin must have been installed at some point and removed. Therefore line 65 is passing as true for some reason and line 66 makes $perPage set as null/zero.

    So to solve the division by zero, make a new line 67 after

    if ($perPage = bb_get_option('front_page_topics')) {
    		$perPage = $perPage['topic-page'];

    and make it say
    if (!$perPage) {$perPage = bb_get_option('page_topics');}

    so the whole new block looks like this:

    if ($perPage = bb_get_option('front_page_topics')) {
    		$perPage = $perPage['topic-page'];
                    if (!$perPage) {$perPage = bb_get_option('page_topics');}
    	} else {
    		$perPage = bb_get_option('page_topics');
    	}
    Posted: 4 years ago #
  5. This plugins functionality is being rolled into bbPress 1.0 - without the errors : )

    Posted: 3 years ago #
  6. Nekita

    Member

    First off, thanks for integrating "Page links for bbPress" into the new Alpha2, I think it's a very good feature.

    However, there seem to be some issues still.
    It seems to randomly assign page numbers to topics (see example). The marked thread has in fact five pages, but the correct number is only shown in the topic page (screenshot No.3):

    1. Front Page View:
    http://i259.photobucket.com/albums/hh308/Nekita79/bug1.jpg

    2. Forum View:
    http://i259.photobucket.com/albums/hh308/Nekita79/bug2.jpg

    3. Topic View:
    http://i259.photobucket.com/albums/hh308/Nekita79/bug3.jpg

    Posted: 3 years ago #
  7. Nekita

    Member

    Ok, it's quite obviously a problem with the TopicsPerPage Plugin ( http://bbpress.org/plugins/topic/page-links-for-bbpress/ ).

    Posted: 3 years ago #
  8. Nekita

    Member

    This one of course: http://bbpress.org/plugins/topic/front-page-topics/page/2/

    Posted: 3 years ago #
  9. version 0.0.2 of topics-per-page should fix the problem with bbPress 1.0a2 and this page-links plugin

    Posted: 3 years ago #
  10. bedbugger

    Member

    I installed the plugin and activated it and can't see the cute little page links. (0.9.0.4)
    http://bedbugger.com/forum/

    Posted: 3 years ago #
  11. There's a minor bug in that plugin, line 92 should be

    $title .= ' - ' . $links .'</a>';

    instead of

    $title .= '</a> -' . $links;

    Because it produces invalid code leaving an open anchor tag.

    Posted: 3 years ago #
  12. I've got an improvement suggestion: for topics that span many pages, all the pages should not be displayed. Instead just show a link to the first and last 4-5 pages. Just like the default topic pagination.

    Posted: 3 years ago #
  13. Here is a version I super modified for maximum performance and compatibility.

    http://pastebin.com/embed_iframe.php?i=N4bxcqpZ

    It avoids the extra queries the original version does (when it looks for page-topics plugin/option) and caches a few expensive variables.

    It uses pure css with an inline stylesheet so there are no externals to load or check timestamps.

    (basically in plain english it puts as little impact as possible on the page)

    If someone REALLY wanted the page image it could be easily modified to support that again.

    This version only shows the ending page, or if over 5 pages the last two pages, which I think is plenty. (clicking the topic title is always page one anyway)

    Posted: 1 year ago #
  14. Thnx for the plugin!

    Posted: 1 year ago #

RSS feed for this topic

Add a Comment

You must log in to post.