Forum Replies Created
-
In reply to: bbPress Moderation -> deactivate topic subscriptions
It’s really strange. After the post is submitted (and as long as status is pending), the topic is included in the users subscriptions: (var_dump on wp_footer)
bbp_get_user_subscribed_topic_ids( $reply_author_id );
bbPress Moderation uses the hook “pending_to_publish” to send an Info to all subscribed users that this new reply is published:
function pending_to_publish( $post ) { ... bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id ); }
If I add this:
bbp_get_user_subscribed_topic_ids( $reply_author_id );
into this function before or below “bbp_notify_topic_subscribers” and write a var_dump to a separate file, the topic-id is still inside the topic-id-array during the publish process ( {old}_to_{new} ).
But if I var_dump this array directly afterwards (frontpage: page reload –> wp_footer ), the id isn’t still in there (email fails if I post with another user).
It seems that anything erase this specific topic-id for this specific reply-author between publish and the next page load. All other topic-ids are still in this array..?
To add it manually to the hook ‘publish_reply’ with this bbp-function doesn’t work:
bbp_add_user_topic_subscription( $reply_author_id, $topic_id );
Has anybody an idea why this can happen?
As long as the reply isn’t publish, everything works right with the subscription. It’s also possible to manually add this user to this specific topic after the reply is published. But if this user send a new post for this topic, the topic-id is erased inside the subscription array after publishing..
No caching is active…
In reply to: bbPress Moderation -> deactivate topic subscriptionsYes, after pending post is published, a user can subscribe again and it will work as long as this user is sending a new reply to moderate.
In reply to: bbPress Moderation -> deactivate topic subscriptionsYes, it works pretty well without the moderation extension. It works also pretty well, after a user sent a message, as long as it is waiting for moderation.
But if we publish the pending message, the subscription of this user is deactivated.
In reply to: bbPress Moderation -> deactivate topic subscriptionsbbPress Moderation uses this function:
bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id );On this transition-hook:
add_action( ‘pending_to_publish’, array( $this, ‘pending_to_publish’ ), 10, 1 );But it seems that it will not work properly..
In reply to: Reply to topics on WordPress backendFor the possibility to answer an topic/reply there is a ticket created. As long as this feature isn´t added, it is a little bit unhandy to manage replies with backend.
But perhaps anybody know a solution to show a link from topics in it´s replies?
We use the plugin to moderate the replies and topics, but it´s not very handy to work with it. Cause first you have to publish this reply/topic. Then we have to go to “show answer” and from there we have to click on the “post number” (moderator editor menu on the right: #4245) to reach the topic to write an answer.
It would be awesome to change it in this way -> publish the reply/topic and just click to a link to this topic.
Does anybody know a working solution for this?
Thank you
In reply to: Reply to topics on WordPress backendThis feature would be really awesome .. : )