Hi,
I’m in the process of migrating a phpBB forum to WordPress with bbPress. I don’t know if the bbPress style is better but my users are used to the phpBB style for displaying Forums on the main page. So I tried to reproduce that layout in bbPress using categories. With the default theme, I was not happy with the way it looked. After a quick search in these forums, I saw some interesting topics from @lynq (here and there) but it didn’t work as intended in the last bbpress release and ticket #1958 has been moved to 2.6.
So after a few hours of searching codex, and a lot of tries, I managed to do what I wanted. As there is still some demand in Lynq’s topic, I thought I should share my little work.
I’m not a developper, so my code may be a little messy, but it works as intended. I’ve tried using the bbpress functions, and commented my code. If any PHP expert would like to review it and make it better, any feedback is welcome.
The only file to change is loop-forums.php with this code.
You just need to create it and paste the code. Then upload it to /wp-content/your-theme/bbpress/. Use a child-theme if you don’t want to loose it on next theme update.
The forums are not yet online, so here are some screenshots with descriptions. (In French, because, as you may have noticed, English is not my native language 🙂 )
I’ve tested many situations (even a category inside a forum, which bbpress doesn’t consider anymore as a category, probably normal behavior) and I think everything works as intended. Feel free to report any bug.
Hi there
Does anyone know if BBPress has conditionals like BuddyPress does such as in the following link: buddypress conditionals?
I am trying to find a condition for if you are on the forum index and the users forum list when on a profile. I can’t seem to find anything that works so if anyone knows that would be great.
Thanks
Hello!
I can’t seem to find any answers via Google, so maybe you fine folks could help me. I just started delving into bbpress themeing. I’m basically skeletonizing the default bbpress theme so I can start working in depth with it.
The way I have my forums structured is in three category forums, with variable amounts of subforums. The default theme uses bbp_list_forums to return an unordered list of all subforums of a category. I’ve been messing with the arguments and made each list item separated in its own div. My problem with that is only the text inside the div links to the forum, whereas I would like the entire div to be the link.
My arguments look like so:
<?php bbp_list_forums( array(
'before' => '<ul class="bbp-forums-list">',
'after' => '</ul>',
'link_before' => '<li class="bbp-forum"><a href="<?php the_permalink(); ?>"><div class="forum-list-item">',
'link_after' => '</div></a></li>',
'count_before' => '<div class="forum-list-item-count"><span class="forum-list-item-topics">Topics: </span>',
'count_after' => '',
'count_sep' => '<br><span class="forum-list-item-replies">Replies: </span>',
'separator' => '<br>',
'forum_id' => '',
'show_topic_count' => true,
'show_reply_count' => true,
)); ?>
Any way I can get the permalinks to the individual subforums?
Hello can anyone tell how do I get the forum related to the topic in the recent topics widget.
I’m trying to show the recent topics with the forum and parent where they com from and also show a limited amount of words.
Thank you in advance.
It seems to me that “Popular” Topics are simply counting the number of replies and listing the conversations with the most replies. If I understand correctly, it’s not taking into account the age of a topic, or the speed of the current activity, so a topic with more replies than any other topic would stay at top of the list forever unless there is suddenly one with more. Am I correct?
I’d like to present the most recent active topics. Are there any plugins, or queries that do this?
Hello,
I’m looking to add the forums where the topics come from in the Recent Topics Widget.
Can anyone point me in the right direction?
I feel like I am missing something very basic here… why are breadcrumbs not showing at all? I used a custom template for the main bbpress page. I’ve added in <?php bbp_breadcrumb(); ?> into that custom template – nothing changed and no breadcrumbs appearing. Help? What am I missing here?
Hi
I have used topic index shortcode on forum page and the pagination is all messed with line breaking. I have tried to search a lot but cant fix it. Hoping any one solve this. thanks
pagination issues when using topics shortcode on front page.
http://www2.dekritischebelegger.nl/forum/
When bbPress is deactivated the Page Titles in my chrome browser tabs show fine. When bbPress is activated the page titles disappear (for the entire site, not just forum pages).
I have tried re-saving my permalinks, but no change.
you can see here — http://employment.ssiparked.com/wp/job-seekers/