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
You must log in to post.