Search Results for 'code'
-
Search Results
-
Topic: Stop all emails from bbpress
I have a number of not so happy customers being inundated with emails from the forum, they are receiving numerous repeat emails for some reason.
I’m happy to try and figure it out, BUT for the URGENT NOW, I need a way to just shut off all the emails coming from bbpress. Is there a surefire way to do this?
happy with functions.php code snippets, anything
thanks for your help
Brett
I’m working an educational website that produces video content and uses a BBPress forum for discussion rather than the native WordPress comments. Here’s how it works:
I have a hook on
wp_insert_postthat creates a new BBPresstopicwhen a newvideopost is created and saves this newtopic_idto a_comment_topic_idmeta field.In my
single-video.phptemplate where the video is displayed, I’m using the BBPress[bbp-single-topic id=$topic_id]shortcode to display the topic thread and reply form for people to post comments.All of this works great! I’m just having one problem – the “subscribe” feature of BBPress isn’t working when people post replies via the Video Single page. The reply is posted just fine, but subscribed users don’t receive a notification. If you’re not familiar – when a user subscribes to a thread, they receive an email whenever someone replies to the thread. This is still working fine when someone posts a reply via the actual Thread single page – it’s only a problem on the thread embedded via the shortcode on the Video single page.
I’ve tried digging into the core and I got so far as to discover that the
bbp_new_replyaction isn’t firing – BBPress uses a function calledbbp_notify_topic_subscribershooked intobbp_new_replyto send the notifications and that function isn’t running at all when a reply is made via the Video single page.It seems that BBPress uses some hidden inputs to determine what actions to run after a reply has been submitted, but those seem to be included properly through the shortcode. These appear at the bottom of the Topic single form (that works properly);
<input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="422573"> <input type="hidden" name="bbp_reply_to" id="bbp_reply_to" value="0"> <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply"> <input type="hidden" id="_wpnonce" name="_wpnonce" value="83ea236cd1"> <input type="hidden" name="_wp_http_referer" value="/forums/topic/SLUG/">And these appear at the bottom of the Video single form (that doesn’t)
<input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="422573"> <input type="hidden" name="bbp_reply_to" id="bbp_reply_to" value="0"> <input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply"> <input type="hidden" id="_wpnonce" name="_wpnonce" value="83ea236cd1"> <input type="hidden" name="_wp_http_referer" value="/videos/SLUG/">I’m at a loss for how to debug this issue further and could really use some help. BBPress has all kinds of page type/post type checks in the core that I’ve been ducking and weaving around, but this one has got me stumped. I suspect the problem is that SOMEWHERE it’s checking the post type of the current post, seeing it’s a
videoinstead of atopicand bailing before the action runs, but I have no idea how or where to find that and how to patch around it.Thanks!
I am looking to make my “New Topic” button below follow the pagination, by that I mean if there is only one page and the pagination links don’t exist I want the “New Topic” button to appear all the way to the right. If there is pagination I want it to sit at it’s left most side like my example below. Right now I’m just placing it there in a static position which means on pages with no pagination it’s just floating in space.
Example position:

This is the static code I’m using for the button:
#bbpress-forums .new-topic { margin-top: -41px; margin-right: 80px; float: right; }Background: I have my forum Subscribe link on the right side of the header using
float:right, I am also running Pencil Unread plugin and have enabled the “Mark all as read” option and also usedfloat:rightto prevent it from blending in with the breadcrumbs however now “mark all as read” and “subscribe” are getting up close and personal like this:Mark all as readSubscribe
Ideally I would like to insert a pipe and a couple of spaces between them to follow suit with how the topics page is formatted like this:
Mark all as read | Subscribe
I have searched the forums high and low and haven’t really come up with an answer. I tried looking for the “bbp_template_before_topics_loop” code figuring I could add it to my child theme and modify it at will but turned up empty.
So what is the best way to accomplish this?
