Search Results for 'bbpress'
-
Search Results
-
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.
Topic: Conditionals
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
Topic: Permalink for Subforums?
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?
Topic: breadcrumbs missing
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?Topic: Browser Tab – Page Title
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/
I all, is possible to have a function to bypass bbp_get_caps_for_role with one custom?
I want to get false this two option for participant:
// Forum caps
‘read_private_forums’ => true,// Topic tag caps
‘assign_topic_tags’ => true,In this moment i have update file capabilities.php but when bbpress have upgrade to new version i sure lost this modify…
P.s. Why this options aren’t present in administration forum panel?
How to do? Thanks….
Hi
I have faced an issue that maybe some people have encountered and for which I did not find much info on the net.Basically the problem was that the bbpress default template that I embedded in my WP template was rendered with supplementary line breaks (<br> and <p> tags). Just as if the wpautop function was reapplied on the forum content included in the template.
I noticed that the problem was existing on Linux if the template files had an Unix EOL : LF
And also existing on Windows (using WAMP) if those same files had a Windows EOL : CR+LF
I found a workaround by making the template files have a Mac End Of Line with : CRBut I am not sure this is a clean solution
Maybe there is something far more simple that I do not knowThanks
I am using the latest 2.4 bbpress version
Topic: bbPress Single Forum
I want to build a page that is a single forum using bbPress. When a topic is created it will stay in that Main Forum. A drop down displaying other Forums is available for that topic to be also in. The other forums are on the same site. The forums will be on the menu bar so the user can choose which forum to visit.
When a member is viewing a specific forum, a new topic can be created which will automatically be both in that forum and the Main forum.
How do I create this?
