Forum Replies Created
-
In reply to: BBPress login redirection
it would be good to say how you solved it, it would help others searching
In reply to: Moderator can only open topicthe keymaster function was wrong, revised code is above.
In reply to: Moderator can only open topicon holiday at the moment, so untested solution !!
But try
add_filter( 'bbp_topic_admin_links' , 'rew_no_close', 10 , 1) ; function rew_no_close ($r) { if (!bbp_is_user_keymaster() && bbp_is_topic_open()) { unset ($r['close']) ; } return $r ; }
This should ensure that only keymasters can close topics (assumes moderators have no backend access)
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: Custom LoginIn reply to: How many levels of sub categories are supported?you can create as many levels as you wish.
In reply to: [phpBB Debug] PHP Warningno problem 🙂
In reply to: display activitys posts randomlyok, beyond free help, so this might help, otherwise sorry
https://www.wpbeginner.com/wp-tutorials/how-to-display-random-posts-in-wordpress/#aioseo-method-1-d
In reply to: [phpBB Debug] PHP WarningIn reply to: display activitys posts randomlyseems to be quite a lot of them
https://en-gb.wordpress.org/plugins/search/display+random+posts/
untried but this seems to support custom post types
In reply to: display activitys posts randomlycan you clarify what ‘on the wall’ means?
In reply to: display activitys posts randomlycan you clarify what ‘on the wall’ means?
and what do you want to display? title, whole topic, replies, content etc.
ok
link to your page please
In reply to: ACF shortcode in topic post frontendjust got 10 minutes to look at this.
try this
add_action ('bbp_theme_after_reply_content' , 'rew_display_acf') ; function rew_display_acf () { $id = bbp_get_reply_id() ; //if it is the topic... if (bbp_is_topic( $id ) { echo '<br>Lake Marker 2: ' .get_field( 'lake_marker_point_2' ) ; } }
or
add_action ('bbp_theme_after_reply_content' , 'rew_display_acf') ; function rew_display_acf () { $id = bbp_get_reply_id() ; //if it is the topic... if (bbp_is_topic( $id ) { echo '<br>Lake Marker 2: ' .get_field( 'lake_marker_point_2', $id ) ; } }
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: ACF shortcode in topic post frontendthanks, I’ll take a look tomorrow
In reply to: ACF shortcode in topic post frontendI want it to show up underneath the bottom of the topic field.
ok, no idea what you mean by that, as asked can you provide a link and say precisely where you would like it
In reply to: skipping a line generates html charactersok, so this should take them out
add_filter( 'bbp_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); add_filter( 'bbp_forum_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); function rew_strip_nbsp ($message) { $message = str_replace (' ' , '', $message ) ; return ($message) ; }
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: Notification emails content issueok, so this should take them out
add_filter( 'bbp_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); add_filter( 'bbp_forum_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); function rew_strip_nbsp ($message) { $message = str_replace (' ' , '', $message ) ; return ($message) ; }
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: Space characters appear in subscription mailgreat – glad we got there !!
In reply to: Space characters appear in subscription mailok, try this
add_filter( 'bbp_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); add_filter( 'bbp_forum_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); function rew_strip_nbsp ($message) { //$message = str_replace (' ' , '', $message ) ; $message = 'hello'.$message ; return ($message) ; }
This should simply add the word ‘hello’ before the message, which will prove that the filter is firing.
In reply to: Space characters appear in subscription mailok, just tried that in my test site and the code above seems to work.
1. can you give me a exactly what you have put into your functions file, with a few lines above and below
2. are you using any other bbpress related plugins?
3. are you using any mail related plugins?
In reply to: ACF shortcode in topic post frontendso is this the front end of any topic post, or a specific topic post ?
and exactly where do you want it?A link to a live example on your site, together with ‘under/over/beside xx’ would be useful.
In reply to: Space characters appear in subscription mailok, presuming the characters are exactly this
sorry nothing further I can do.
if different put that in the appropriate line
In reply to: Space characters appear in subscription mailok, so this should take them out
add_filter( 'bbp_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); add_filter( 'bbp_forum_subscription_mail_message' , 'rew_strip_nbsp', 40 , 1 ); function rew_strip_nbsp ($message) { $message = str_replace (' ' , '', $message ) ; return ($message) ; }
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: Space characters appear in subscription mailand the problem may well be with intervening parts of email system – emails have become very complicated in how they are delivered, and you may find that emails to you have this, but other email users don’t get the problem