Oops, the "remove_action" line in the above code is no longer needed since I set a flag instead (less messy).
bbPress plugin browser »
Topics Per Page (0.0.4)
Download
Version: 0.0.4
Last Updated: 2008-11-4
Requires bbPress Version: 0.9 or higher
Compatible up to: trunk
Average Rating





Your Rating
Authors _ck_, mdawaffe
-
Posted: 4 months ago #
-
Can anyone make this a proper plugin please or give some more detail on how _CK_s code has to be used/implemented? It makes no sense at all!
Thanks!
Posted: 3 months ago # -
Shrikee, just save and use it this way until I have time to make it a real plugin:
http://pastebin.com/pastebin.php?dl=m7fe46ba1
just edit the
$limit=numbers at the top to set the counts as desired.Posted: 3 months ago # -
ha! sweet! thanks!
I'll make a plugin out of it... A small admin panel for some values and your code. Stay tuned.
Posted: 3 months ago # -
No, please do not re-publish my plugins.
I'll make it a full plugin when I have the time with some additional features.
Keep in mind every plugin that has to load it's option from the database and carry the additional code for an admin panel slows down bbpress. My code above is the bare necessity to make bbPress allow custom topic limits with as little overhead as possible.
Essentially this is a setup-once and forget plugin.
You should almost never fiddle with it again.Posted: 3 months ago # -
what's your idea then? Create some values in the config.php?
By the way, if you're curious, i have already made a small, simple, plugin out of it... I can mail you the code if you want...
Posted: 3 months ago # -
I am assuming you just made a hybrid of the front-page-topics.php plugin and my plugin. You're welcome to put it on pastebin and post the link here but please don't submit it to the plugin browser.
Posted: 3 months ago # -
Not really a hybrid... I took your pastebinned code and wrote an admin panel for it.
I don't think it takes much speed (if any at all) from the overall performance.
Have fun...
Posted: 3 months ago # -
I've now replaced Front-Page-Topics with my Topics-Per-Page, per mdawaffe's request.
Note you'll now have to edit the plugin at the top as an admin menu would be overkill for this set-once-and-forget plugin.
Since the plugins have different names, make sure you delete front-page-topics from your server before activating topics-per-page.
Posted: 3 months ago # -
With Alpha 2, this Plugin will break the now integrated "Page links for bbPress" ( http://bbpress.org/plugins/topic/page-links-for-bbpress/ ) because it's variables are differently named.
Posted: 1 month ago # -
This plugin is working fine for me on 1.0a2, what are you experiencing?
Posted: 1 month ago # -
Try 0.0.2 as a workaround for bbPress 1.0a2
and topic_page_linksI have not been able to test it thoroughly but my fix seems to work.
Posted: 1 month ago # -
That did the trick, works perfectly now for me.
Thank you _ck_ !Posted: 1 month ago # -
Actually, try downloading 0.0.2 again, I found a bug with my new method and had to try another way.
Posted: 1 month ago # -
Hi _ck_,
I just d/l the second 0.0.2 release as you suggested but that one keeps screwing with the page count again (a thread with 5 pages shows up with 10 pages).
The first 0.0.2 release you uploaded didn't have this issue.Posted: 1 month ago # -
Strange. I'm having a hard time making it work in both 0.9 and 1.0
Posted: 1 month ago # -
oh wait, I see how to fix this now - was in front of me the whole time and I missed it - getting out of practice!
update: try 0.0.2 now, which should really work
Posted: 1 month ago # -
That's more like it, good job!
Posted: 1 month ago # -
Hi _ck_
I really like this plugin (thank you), but is it possible to have it show the pagination on the front page under the Topics List (Latest Discussions) that shows above the Forums List? It works flawlessly on the Forum pages where all topics for a particular forum are shown, and on the Topics page, where all posts for a given topic are shown, but I would really like to show the page numbers on the front page as well.
Many thanks for such a great plugin.
Posted: 4 weeks ago # -
Hi Trisha, that's actually a very good idea and something I had made a mental note of quite awhile ago but forgot to do.
So here's how to make that happen (pagination on the front page with the latest discussions).
1. Upgrade to 0.0.4 of this plugin
2. add to your
front-page.phptemplate
<div class="nav"><?php front_page_pages(); ?></div>
before
<?php endforeach; endif; // $topics ?> </table>
3. If you use rewrite slugs you MUST add the following rule to your.htaccessfile
RewriteRule ^page/([0-9]+)/?$ /forums/?page=$1 [L,QSA]anywhere before
</IfModule>
where/forums/is the path to your bbpress install.Posted: 4 weeks ago #
Add a Comment »
You must log in to post.