Skip to:
Content
Pages
Categories
Search
Top
Bottom

Front page topic not show problem!

Published on August 31st, 2014 by Shohag

1st problem:
I add bbpress in my wordpress site. Then I post a welcome topic in forum. But it not show in forum root page, but is show in “recent topic” widget!
What’s the problem here?

forum link: http://blog.imaginativeworld.org/forums/

custom role is not working

Published on August 31st, 2014 by gusrb84

I just wanted to give general users capabilities to delete their own topics/replies, so I added custom role for bbpress forums.

I followed: https://codex.bbpress.org/custom-capabilities/, to add ‘PPH General User’ and I see the forum role in Edit User page. I also changed Auto role in Forums Settings so that the website can automatically give registered visitor ‘PPH General User’ role.

In ‘usermeta’ database, I see that it assigned ‘a:1:{s:16:”pph_general_user”;b:1;}’ to capabilities key. It is good so far.

However, when I open the forum with PPH General User account, all bbpress capabilities for ‘PPH General User’ are disabled.

Even reading a forum shows nothing with body class = “error404 logged-in”
If I change the user account to Participant, all bbpress functions work as expected.
(with body class = “forum bbpress single single-forum postid-42 logged-in”)

With PPH General Account,


$cur_user_id = get_current_user_id();
$roles=get_userdata( $cur_user_id );
echo 'User Role:'; print_r($roles->roles); echo '<br />';
$role_caps = bbp_get_caps_for_role($roles->roles[0]);
echo 'User Cap:'; print_r($role_caps); echo '<br />';
if (current_user_can( 'spectate')){echo 'You can spectate';}
	else{echo 'You cannot spectate';};

prints out:
User Role:Array ( [0] => pph_general_user )
User Cap:Array ( [spectate] => 1 [participate] => 1 [read_private_forums] => 1 [publish_topics] => 1 [edit_topics] => 1 [delete_topics] => 1 [read_private_topics] => 1 [publish_replies] => 1 [edit_replies] => 1 [delete_replies] => 1 [read_private_replies] => 1 [manage_topic_tags] => 1 [edit_topic_tags] => 1 [delete_topic_tags] => 1 [assign_topic_tags] => 1 )
You cannot spectate

If the account is changed to ‘Participant’ then it prints out:
User Role:Array ( [0] => bbp_participant )
User Cap:Array ( [spectate] => 1 [participate] => 1 [read_private_forums] => 1 [publish_topics] => 1 [edit_topics] => 1 [publish_replies] => 1 [edit_replies] => 1 [assign_topic_tags] => 1 )
You can spectate

Someone please help me. I spent so many hours debugging this..

Forums list not displaying at /wordpress/forums/

Published on August 31st, 2014 by David_PR

I’m running WP 3.9.2 and bbPress 2.5.4.
I have created several forums and populated some with Topics and Replies.
I wish to display the list of forums at wordpress/forums.

I followed the instructions in ‘Step by step guide to setting up a bbPress forum – Part 1.
I tried Method 1 (created a page titled ‘forums’ and added it to the main menu), and Method 2 (shortcode in page)…neither worked for me. When I use the menu to go to wordpress/forums I don’t see the forums but, instead, a list of old posts.
I am using the plugin ‘bbPress Topics for Posts’ and it works…I have forums displaying as expected at the bottom of pages.

I’m stumped. Any suggestions would be appreciated.

David

Forums not showing on new custom theme

Published on August 31st, 2014 by kwoodall

The original site http://playfullearningecademy.com/forums/ shows the forums just fine. However on our dev site http://workspacefile.com/playfullearning/forums/ the forums won’t show.

I’ve tried many things recommended here but the templates appear to be properly configured so I’m at a loss.

Any ideas?

Thanks!!

Kermit Woodall

create forum with php

Published on August 31st, 2014 by

Hi! I need automatically create a lot of foruns (I have database wkth 1000s movies and want to create forum, for each) Yow can I do it with php? what api function I have to use?
Thanks

Theme Problems

Published on August 31st, 2014 by obatron

Versions: WordPress 3.9.2, bbpress 2.5.4, bbpress WP Tweaks 1.3.1
Site: http://www.obatron.com/forums
Theme: TwentyEleven

I have a child theme: twentyeleven-child with a style.css file in it, no customizations to it. I added a folder under it called css and copied the bbpress.css from the plugins tree to it to change the colors only (still working on colors so pardon if there are issues). I copied the sidebar-page.php file to bbpress into this folder.

My Forum page is blank, just titled Forums with a Permalink named http://www.obatron.com/forums/ and a template set as Default.

The problem: Forum index works fine, but when you go to a forum, the sidebar and the forum display overlap. I’ve tried various combinations of removing/moving the bbpress.php file to no avail. I also tried without the tweaks plugin, without the child template, and so on…

I tried going with just a full page and just use pages with the proper tags for login, etc, but then the forum index looks odd because it continues to use the sidebar template no matter what.

If I change the theme options to put the sidebar on the right, the forum index continues to work, but the forum page sidebar now appears below the forum…

Now, I’ve searched for this and see others occasionally complaining about similar, but have not seen an answer that works…

pagination in custom query

Published on August 31st, 2014 by divyesh25

Hi Everyone,

i am make one function in function.php file in which i wrote my own query. now i want set pagination(bbpress pagination). i dont know about and any idea. please help me . below my function.

function best_conversationstarters(){
	global $wpdb, $paged, $max_num_pages;

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $post_per_page = (intval(get_query_var('posts_per_page'))>0) ? intval(get_query_var('posts_per_page')) : 5;
    $offset =  ($paged - 1)*$post_per_page;
	
	$best_conversation_starter =  "SELECT COUNT(*) topic, post_author FROM {$wpdb->posts} WHERE {$wpdb->posts}.post_type LIKE '%topic%' GROUP BY post_author ORDER BY topic DESC LIMIT ".$offset.", ".$post_per_page;
	$sql_result = $wpdb->get_results( $best_conversation_starter, OBJECT);
	
	/* Determine the total of results found to calculate the max_num_pages
     for next_posts_link navigation */
    $sql_posts_total = $wpdb->get_var( "SELECT FOUND_ROWS();" );
    $max_num_pages = ceil($sql_posts_total / $post_per_page);

    return $sql_result;
}

thanks.

Breadcrumb Problem

Published on August 31st, 2014 by gmichel

I have the latest WP installed with OptimizePress 2, Buddy Press and BBpress (latest versions) installed. I am building the forums in the private section of a membership site.

I am having issues with the Breadcrumb links.

I used method 2, a page for the forums index with short code. The forums display properly.
>> http://www.imstudy.club/forums-welcome/

Then when I click on each forum it goes to the correct page, I have set-up “Content Aware Sidebars” to show widgets in the sidebar and the forums in the content area. It works.

Now when I am on one of these forums the breadcrumb shows:
IM Study Club’s Public Home › Forums › Site Feedback

The link “Forums”, is the Forum root and it goes here:
http://www.imstudy.club/forums/

That’s a Blog Archives page with a link “continue reading” going nowhere.

How can I have this “Forums” link in the breadcrumb go to my custom page “forums-welcome” instead.

I have tried to change the name of the root forum to match the page, but it doesn’t works, always get the blog archives page… I also tried to redirect, but got a loop.

Any idea?

Thank you very much for your help.

Michel

How to create a link redirecting to forum profile user ?

Published on August 31st, 2014 by vegas778

Hi All,

I would like to create a link in a wordpress widget that redirects the logged in user to his user forum profile page but I cannot manage… I dont know what code should I use.

Example : it should redirects to the page : http://www.example.org/forums/user/admin/

Thanks in advance

Regards,

Shortcode for user profile

Published on August 30th, 2014 by Anonymous User 9493778

Hi,

is there a short code to display the users profile?

After reading the documentation and working with bbpress the only way a user can see their profile is if they have already created a topic or replied to a topic.

Some users only want to favorite a few topics. However they can not see their favorites unless they can see their user profile.

Included is a screen shot of what is wanted.
https://www.dropbox.com/s/qtwtvfwckswjfk9/profile_shortcode.jpg?dl=0

Thanks,
Kevin

Skip to toolbar