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.
Version: 1.0.4
Last Updated: 2008-10-6
Requires bbPress Version: 0.80 or higher
Compatible up to: 1.0 alpha build 1773





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.
i didnt get what this plugin do please explain more for me thx
Warning: Division by zero in /home/mciarlo/public_html/forum/my-plugins/page-links.php on line 75
Help?
same here.. and no answer for eight months >.<
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');
}This plugins functionality is being rolled into bbPress 1.0 - without the errors : )
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
Ok, it's quite obviously a problem with the TopicsPerPage Plugin ( http://bbpress.org/plugins/topic/page-links-for-bbpress/ ).
This one of course: http://bbpress.org/plugins/topic/front-page-topics/page/2/
version 0.0.2 of topics-per-page should fix the problem with bbPress 1.0a2 and this page-links plugin
I installed the plugin and activated it and can't see the cute little page links. (0.9.0.4)
http://bedbugger.com/forum/
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.
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.
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)
Thnx for the plugin!
You must log in to post.