Forum Replies Created
-
In reply to: bbpress topics for posts
@bodybyloud the old version might work for you if you are not using blocks if you add this
add_filter( 'bbppt_eligible_post_types', 'rew_add_types' ) ; function rew_add_types () { $types = array( 'post', 'page', listings' ) ; return $types ; }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
great – glad you are fixed
and is that for a new reply – the code sets this for new replies
sorry – I’m trying to help, but I don’t use yoast on any of my sites, so I’m guessing a bit.
Where are you getting that bit from – database, something in the dashboard or where?
so is that what it was before?
This should do it if I have the right yoast meta name
add_action ('bbp_new_reply', 'add_yoast_title' , 10 , 7) ; function add_yoast_title ( $reply_id, $topic_id, $forum_id, $anonymous_data, $reply_author, $false, $reply_to ) { $topic_title = get_the_title ($topic_id) ; $title = 'Reply to:'.$topic_title ; update_post_meta ($reply_id , '_yoast_wpseo_title' , $title ) ; }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Is this a bbpress issue or something else?Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
add_filter (‘bbp_subscription_mail_headers’ , ‘rew_headers’ ) ;
function rew_headers ($headers) { $headers = str_replace ('hello' ,'\'', $headers) ; return $headers ; }
but instead of hello put
& # 0 3 9 ;
but without the spaces – sorry wordpress keeps interpreting the code so best way I can get it in hereIn reply to: Hide/Edit Forum from Breadcrumbgreat – glad you are fixed, and thanks for posting back the result
In reply to: Is this a bbpress issue or something else?you are showing a screenshot of what is an incoming email – yes ?
But it is showing bcc info, which incoming emails do not, so is that info in the bcc field or elsewhere in the email?
In reply to: Change of date for freshnessI could dig into it, but as it is working I won’t 🙂 But thanks for posting the answer, if others find the same issue, I’ll look to update.
Glad you are fixed !!
In reply to: Is this a bbpress issue or something else?so no receiving email would list BCC’s, so there are presumably included elsewhere in the email?
In reply to: Is this a bbpress issue or something else?hmm.. that screenshot – where is it from – is it a screenshot on an email being received? and if so in what mailer ?
I suspect it is related to your bcc issue, as this screenshot also shows it.
I’d suggest something is just sending out the email as a stream.
The troubleshooting in the other thread might help identify
In reply to: BCC notifications include visible emailssorry, there are 300,000 users of bbpress and you have found a couple of instances where users found an issue.
In one advice was to troubleshoot the problem, and the user never came back, in the other one user found that it was a wp mail plugin.
I appreciate that you ae frustrated, but ‘this same exact issue 5 and a half years ago? Is this issue still not fixed?’ is not going to endear you to the free support offered for this free product.
As a first instance, please do the troubleshooting :
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, 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.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
In reply to: bbpress topics for posts@bodybyloud I’m most of the way through getting this going – can you test when I am ready?
and do you know the actual post type names you want to add – ie what they are called in the database ?
In reply to: How do I disable the download option in the gallery?sorry, nothing to do with bbpress plugin which is where you posted this
In reply to: Forum theme only works “backwards”sorry, bbpress works on themes that comply with the some old wordpress conventions, and nowadays 90% don’t so most don’t.
No-ones fault, wordpress themes have moved on faster than worpdress 🙂
In reply to: Forum theme only works “backwards”In reply to: bbpress topics for poststhanks everyone
so yes, the plugin won’t work with Gutenberg, as it doesn’t use the same way to interact with metaboxes. I can write some code to do that, and I’ll take a look at what’s involved.
For those of you that aren’t using Gutenberg eg disabling or installing classic editor plugins, then as far as I can see it still works ok – does anyone have any issues with it ?
@bodybyloud – not sure if you are looking for an additional feature – ie automatically create a topic on post publishing, or if the existing functionality isn’t working for you – ca you come back with some further detail please.In reply to: Delayed first post for newbiesso you would set the default role in
dashboard>settings>forums to be ‘spectator’ and then wordpress login hook to wp-login or init
add_action('wp_login', 'xxx', 10, 2); which passes '$user_login, $user' add_action('init', 'xxx');
your function then would check date current user registered, and if over a month, change the role to ‘participant’ using
bbp_set_user_role( $user_id, bbp_get_participant_role() );
great – glad you are fixed
In reply to: How do I identify empty topic tags?this will display any topics which have no topic tags I think
add_shortcode ('empty-tags' , 'rew_empty_tags' ) ; function rew_empty_tags () { $args = array( 'post_type' => 'topic', 'posts_per_page' => -1 ); $loop = new WP_Query( $args ); $output = '' ; while ( $loop->have_posts() ) : $loop->the_post(); $current_id = get_the_ID(); $topic_tags = bbp_get_topic_tag_names( $current_id ); if (empty ($topic_tags)) $output.= '<br>'.$current_id ; endwhile; return $output ; }
create a private page and put the shortcode
[empty-tags]
in itIn reply to: Hide/Edit Forum from Breadcrumbthe original function is in
bbpress/includes/common/template.php and starts on line 2227
line 2419 creates the breadcrumb and to hide you would hide class bbp-breadcrumb-forum
line 2478 is the best place to change what you want, you would use that filter and cycle though the breadcrumb array and amend or take out the forum one.
Sorry beyond my time availability to code this for you.
In reply to: bbpress topics for posts@bodybyloud – so are listings a custom post type? (if you know what I am talking about !!)
In reply to: Hide/Edit Forum from Breadcrumbthis plugin lets you do that (if I understand your question)
once activated go to
dashboard>settings>bbp style pack>Breadcrumbs
if you want to do it programmatically your self look at the plugins functions file
includes/functions.php
around line 607 onwards
In reply to: Deleting user accountsince there are decisions to be made on user deletion, these are best left to the admin after an email request.
eg what do you want to do with content – this will depend on why deletion is being requested – gdpr, or user just wants account locked but content left etc.