Forum Replies Created
-
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 ?
fixed – was a theme issue
In reply to: more than 50 topics on the front pageok,try this- same code but different “‘” !!
// filter to show more than 50 topics on a forum function bbp_increase_topic_per_page( $args = array() ) { $args['posts_per_page'] = 100 ; return $args; } add_filter( 'bbp_before_has_topics_parse_args', 'bbp_increase_topic_per_page' );In reply to: more than 50 topics on the front pageI’ll take a further look tomorrow
In reply to: bbPress menus not showing up in Dashboard…It 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 but 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: Display order of forumsyou’re welcome !
In reply to: more than 50 topics on the front pagewithout testing, I suspect this will work
// filter to show more than 50 topics on a forum function bbp_increase_topic_per_page( $args = array() ) { $args[‘posts_per_page’] = 100 ; return $args; } add_filter( ‘bbp_before_has_topics_parse_args’, ‘bbp_increase_topic_per_page’ );In reply to: bbPress ModerationIn reply to: Forum freshness not displaying after 7 daysIt 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 but 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: How to change color of the text in bbpress forum?my plugin should be able to help
In reply to: bbPress Moderationsorry, I have 6 plugins of my own to support, I don’t plan answering other author’s support forums
In reply to: bbPress Moderationyour child theme function file, or if you don’t know what that means, install this plugin and put it there
In reply to: bbPress Moderationyou can always use this in your functions file or the snippets plugin
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } if ( $translated_text == 'more old text' ) { $translated_text = 'more new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );and just keep repeating the if statement
In reply to: bbPress Moderation1. I’m not sure that it is appropriate to describe someone who has taken considerable time to write a plugin that is entirely free to you as ‘extremely lazy’.
2. then complaining about this plugin on another plugins support site is also not appropriate.
I did have another word in place of ‘appropriate’ above, but changed this for politeness.
Please realise that you benefit from others free work, and that you should be ‘extremely’ grateful for this.