Forum Replies Created
-
In reply to: bbp style pack: massive ram ussage with unread icon
I just rescued the ‘unread’ part of someone else’s plugin into style pack when it became too old in the main plugins. I only looked at the code in enough detail to get it working in style pack.
If pencil unread does what you want, then use it.
Also, the plugin bbpress pencil unread had a very useful option that marked all post shared before the date of register as read. Which makes sense by the way.
And, why there isn’t an option where we can choose where to have the unread icon?
Like many plugin authors, I’m just a guy who writes free code for the challenge and enjoyment. It would take a day of my life to code those changes, so whilst I agree that they might be useful, I have to find enough fun to do this. At the moment it’s not a change I am planning, sorry 🙁
In reply to: Custom Loginok, bbpress just uses wordpress login. It’s quite doable but beyond free help
In reply to: Moderator can only open topicgreat – glad you are fixed
In reply to: BBPress login redirectionit 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.