Forum Replies Created
-
@antipole thanks for posting the solution and link to the code 🙂
In reply to: Styling bbPress forumadd this to your theme’s custom css area or the custom css area tab of my style pack plugin
.has-sidebar:not(.error404) #primary { width: 100% !important; }
In reply to: API keythis is a paid product
https://usestrict.net/product/bbpress-notify-no-spam-private-groups-bridge/
suggest you contact their support
In reply to: Best template for bbPress?try
In reply to: Blank page after regular user loginIt could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
In reply to: Forum freshness not displaying after 7 daysthat’s computers for you 🙂
In reply to: Can’t register a useryou will need to clear your browser cache and wordpress cookies.
How to do that varies from browser to browser, but if you google it, you should be able to find out how to do that
In reply to: Plugin: Admin add Userthis was a plugin for the old version 1 bbpress.
version 2 just uses wordpress users so no longer required
In reply to: How to insert ads?I suggest you refer to the ads plugin author
In reply to: Remove noreply email from notification emailsgreat – glad you are fixed
in your original code, try
$reply_id = bbp_get_topic_id( $post->ID ); $topic_id = $_POST['parent_id'] ; $forum_id = bbp_get_topic_forum_id( $topic_id ); $reply_author_id = bbp_get_reply_author_id($reply_id);
I think that $_POST[‘parent_id’] should be available at the point the transition_post_status runs
you might also find that $post->parent_id is there as well
no idea why wordpress requires the number of arguments, just the way it works 🙂
you need to specify the number of arguments in the call so..
function test_reply_call($reply_id, $topic_id, $forum_id, $reply_to){ error_log("Trace rest reply: $reply_id: ". strval($reply_id) . "; $topic_id: " . strval($topic_id) . "; $forum_id: " . strval($forum_id) . "; $reply_to: " . strval($reply_to)); } add_action('bbp_reply_attributes_metabox_save', 'test_reply_call', 10 , 4);
the ’10’ is the priority – 10 is the standard, the higher the number the higher the priority so the order in which any other links to this hook are run, and the ‘4’ the numbers of arguments you are calling through
In reply to: Feature to Move Topic to different, related Forumthis can already be done in
dashboard>topics>edit topic>topic attributes>forum
In reply to: Can’t register a userare you still stuck ?
In reply to: Get count of the all topics with no repliesI think this does it
$count = rew_count_no_replies () ; function rew_count_no_replies () { global $wpdb; $type = bbp_get_topic_post_type() ; $count = (int) $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts, $wpdb->postmeta WHERE $wpdb->posts.post_type = '$type' AND ( $wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'private' ) AND $wpdb->posts.ID = $wpdb->postmeta.post_id AND $wpdb->postmeta.meta_key = '_bbp_reply_count' AND $wpdb->postmeta.meta_value = 0 "); return $count ; }
there is also
do_action( 'bbp_topic_attributes_metabox_save', $topic_id, $forum_id );
for topics
In reply to: more than 50 topics on the front pageno problem
In reply to: Need ID of parent forum pagewith widget logic you can call ‘is_bbpress’ that will determine if you are in a forum page
you could hook your code to this action
do_action( 'bbp_reply_attributes_metabox_save', $reply_id, $topic_id, $forum_id, $reply_to );
which fires when a reply post is saved in admin and that gives you all the items you want
In reply to: Give Admin/Keymaster ONLY a forum signature?a common signature, or a different one per keymaster ?
In reply to: more than 50 topics on the front page// filter to show more than 50 sub forums on a forum function bbp_increase_subforums_per_page( $args = array() ) { $args['posts_per_page'] = 100 ; return $args; } add_filter( 'bbp_before_forum_get_subforums_parse_args', 'bbp_increase_subforums_per_page' );
In reply to: more than 50 topics on the front pagehmm – can’t really suggest what is going wrong, works on my test site
In reply to: more than 50 topics on the front pagewhere are you putting this function ?