Hi softinfo. What you’re trying to achieve can be very challenging cause bbPress developers haven’t included such feature in the software. On index.php topics are obtained with get_latest_topics
, forums with bb_get_forums
.
The current page (for topics) is collected from a $_GET variable called page
which have its own rule in the .htaccess which in turn is parsed by bb_get_uri_page
(functions.bb-core.php) called from BB_Query::fill_query_vars
(yargh).
Now you must do the same thing with forums but in order to do this you must change too many core files and we don’t want our soul damned for eternity.
I don’t have much time at the moment but I can give you some hints.
You need a new page
variable that should be different from the default (which is used for posts’ page) together with its own .htaccess rule: RewriteRule ^forum-page/([0-9]+)/?$ /forum/index.php?forum-page=$1 [L,QSA]
You should create a new fake paginate function bb_latest_topics_pages
for forums bb_latest_forums_pages
, a fake get_page_number_links
with /forum-page/%#%
instead of /page/%#%
and other things here and there.
And last but not least you need a custom query (with a LIMIT
) on the $bbdb
forum query.
As I said it can be very challenging and there’s room for a very interesting plugin but I don’t write plugins anymore because of the current fragile status of bbPress standalone.
If you will try to write a plugin I will be happy to debug and/or code (a portion of) it.
zaerl you didn’t say anything for my sad mood..?
OK, your solution is really difficult for me… Can you make it more easy? I cannot write a plugin, that’s why I’m here to looking for your kind help… can you do it for me? I’ll really appreciate.
I’m also frustrated from bbPress as Plugin like other senior bbPress developers. But I hope there will always remain a good space for bbpress standalone lovers. Matt cannot ignore it. I hope
— OK, let me ask above question with another angle…
Is it possible to make pagination just for forums on a custom page? if it is difficult to show on front page? something like
http://www.blog.com/forums/view-all-forums.php ? – just an idea?
—
And I just thought that I’ll also need pagination for forums in admin setting and for zearl visiblity setting near future when I’ll have thousands of forums. (user/forum)
Please see the following screenshots, to understand what I’m taking about..
— For Forums Pagination in Admin Setting — Screenshot
— For Forum Pagination in Zaerl Visibility setting — Screenshot
—
I know its a little big job for you. But can you do it for me? It’s really important, I’ll really appreciate your kindness if you will make a plugin or easy script for this solution.
— and I also know your time is really precious, And time is money… can you give me your personal contact email? So that we can discuss about it further?
I hope I’ll try to mange your time. Thanks Again.
Hi zaerl, are you still on board?
I’m waiting to hear something from you, thanks.
Contact me za-AT-zaerl-DOT-com
Email Sent..!!
Subject: Pagination for Forums
Hi zaerl, did you get my email?
No response yet…??