Forum Replies Created
-
About the second issue, here is the scenario I used as I remember it:
1. create a topic in forum A
2. edit the topic (WordPress editor, not “modify button”) and change the forum for this topic to forum B
3. from the WordPress dashboard, go to Topics/All Topics
4. move the topic to Trash
5. go to Trash, recover the topic
Expected result: the topic is recovered
Actual result: a new page popped up asking me if I really wanted to do that with a retry link. Hitting retry didn’t actually recover the post. The post never got recoveredBtw found another issue today:
prerequisites:
– BuddyPress must be installed and a menu must be available to show the site-wide activity
– forum A is public, forum B is hidden
– user 1 has access to forum A only
– user Admin has access to forum A and B1. with user 1, create a topic into forum A which is a public forum
2. with user Admin, click Modify button on the topic, and change the forum of the topic to forum B which is a hidden forum
3. go to the BuddyPress Activity page of the site and observeExpected result: activity of user 1 posting a topic into forum A is not present
Actual result: activity of user 1 posting a topic into forum A is present. This is a security issue as users can see publicly a post that has been moved into a hidden forum.I have tried various repair options for this one but that didn’t fix the problem and the topic still shows up into the Activity page.
As a workaround I had to delete the post and create a new one by copying content of the older post (and assigning former user to that post).
Also I had another issue: after putting the post to the trash, I clicked on recover then I had a new page asking me if I really wanted to do that with a retry link. Hitting retry didn’t actually recover the post. This looks like a but too. Later I deleted permanently the former post from the trash (after having created the new one), it worked, but I had no confirmation message. This one might not be a bug, but would probably be nice to have a confirmation when permanently deleting.
In reply to: Display unread posts distinctivelyRobin, Stephen, thanks for your messages. If have added a comment to https://bbpress.trac.wordpress.org/ticket/1937 with suggestions regarding performance issues and plugin compatibility.
In reply to: Display unread posts distinctively@robin-w – thanks for pointing out bbPress Mark as read plugin. I have checked it but for the reason mentioned above (not using the same db keys), it is not compatible with bbPress Unread posts plugin. So what I’ll do it make a custom version of bbPress Unread posts plugin whose code is simple and easily fixable and get along with this. Again, the read/unread state of posts really needs to be standardised by bbPress to prevent these incompatibilites between plugins.
In reply to: Display unread posts distinctivelyI have been looking at the implementation of two plugins so far to track the read/unread state of posts. They are both using a specific key into the post meta, meaning the posts marked as read by one plugin are not marked as read by another plugin. This is to avoid this kind of mess I would suggest bbPress contributors to add at least a standard field to mark a post as read by a given user.
In reply to: Display unread posts distinctively@robin-w – right, but for every feature there is into bbPress, the same question probably arises : “is this a feature to put into bbPress or implement as a plugin?”. The status of unread posts is quite a common feature and the question is legitimate for this in my opinion.
In reply to: is_bbpress() defined on the BuddyPress profile pageSomething strange: I am on a BuddyPress group associated forum (user created group and user created an associated forum for that group). The monitor says bbp_is_single_forum() is true, but when I query bbp_is_single_forum() in this context from within page.php, I get false! Please note this is only the case for group associated forums, using regular forums bbp_is_single_forum() returns true when viewing them. A bug?
Update: after some debugging, bbp_is_single_forum() returns false in page.php when being on a group associated forum because the condition “if ( is_singular( bbp_get_forum_post_type() ) || bbp_is_query_name( ‘bbp_single_forum’ ) )” returns false. If particular, “is_singular( bbp_get_forum_post_type()” returns false even though bbp_get_forum_post_type() returns “forum”, exactly the same as when a regular forum is being used. Any idea?
In reply to: is_bbpress() defined on the BuddyPress profile pageAwesome! I didn’t know of these plugins, they will greatly help me! For the case in question I’ll probably use is_buddypress() and/or bp_is_my_profile().
In reply to: Same design a bbpress support forumI finally managed to get to something displaying the top level forums. Guys it took me hours to do something so simple. Really should be part of the documentation somewhere. Pasting the code here in case if helps someone:
if (bbp_is_forum_archive()) { $forums = bbp_get_forums_for_current_user(); echo '<ul>'; foreach ( $forums as $forum ) { if ($forum->post_parent == 0) { echo '<li><a href="' . bbp_get_forum_permalink($forum->ID) . '">'; echo $forum->post_title; echo '</a></li>'; } } echo '</ul>'; }
In reply to: Same design a bbpress support forumI got bbp_list_forums to work, but this function does seem to only list subforums! What if I want to display top level forums?
In reply to: Same design a bbpress support forumI am trying to use bbp_list_forums in sidebar.php in a child theme, but that doesn’t work, do I need to make some includes to get to bbpress functions?
In reply to: Same design a bbpress support forumIs there a shortcode to display same thing as the widget used on the support forum, listing all the available forums with post count for each? I am using the forum index widget but this one is only listing the forum names.
I guess I can write some code using bbp_list_forums, then looping over the results and usnig bbp_get_forum_post_count for each one. If there is some sample code out there to do this I’d rather use it too 🙂 Thanks.
In reply to: Same design a bbpress support forumThanks Stephen. So I managed to get about same design for the forum’s home page, that is forums in a widget on the leftside bar, and recent topics in the page space (using the shortcode). I used a page template in a child theme for this. Now when I open a forum, I want to have forum content as the page (will use bbp-single-forum shortcode), and forum info as the widget in sidebar. But how can I set up thing so a specific sidebar appears when a forum content is being displayed?