bbPress Plugin Browser »

Topics Per Page (0.0.7)

Download

Version: 0.0.7

Other Versions

Last Updated: 2009-8-15

Requires bbPress Version: 0.9 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

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

Your Rating

Authors _ck_, mdawaffe


  1. Oops, the "remove_action" line in the above code is no longer needed since I set a flag instead (less messy).

    Posted: 3 years ago #
  2. 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 years ago #
  3. 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 years ago #
  4. 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 years ago #
  5. 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 years ago #
  6. 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 years ago #
  7. 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 years ago #
  8. 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.

    http://pastebin.com/f6b134b17

    Have fun...

    Posted: 3 years ago #
  9. 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 years ago #
  10. Nekita

    Member

    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: 3 years ago #
  11. This plugin is working fine for me on 1.0a2, what are you experiencing?

    Posted: 3 years ago #
  12. Try 0.0.2 as a workaround for bbPress 1.0a2
    and topic_page_links

    I have not been able to test it thoroughly but my fix seems to work.

    Posted: 3 years ago #
  13. Nekita

    Member

    That did the trick, works perfectly now for me.
    Thank you _ck_ !

    Posted: 3 years ago #
  14. Actually, try downloading 0.0.2 again, I found a bug with my new method and had to try another way.

    Posted: 3 years ago #
  15. Nekita

    Member

    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: 3 years ago #
  16. Strange. I'm having a hard time making it work in both 0.9 and 1.0

    Posted: 3 years ago #
  17. 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: 3 years ago #
  18. Nekita

    Member

    That's more like it, good job!

    Posted: 3 years ago #
  19. TrishaM

    Member

    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: 3 years ago #
  20. 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.php template
    <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 .htaccess file

    RewriteRule ^page/([0-9]+)/?$ /forums/?page=$1 [L,QSA]

    anywhere before </IfModule>
    where /forums/ is the path to your bbpress install.

    Posted: 3 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.