Forum Replies Created
-
In reply to: Replace topic subscription text
The way subscriptions works has changed
use this code now :
add_filter ('bbp_before_get_user_subscribe_link_parse_args' , 'change_subscribe') ; function change_subscribe ($args) { $post_id = $args['object_id'] ; if (bbp_is_topic( $post_id )) $text = 'topic' ; if (bbp_is_forum( $post_id )) $text = 'forum' ; $args['subscribe'] = 'Subscribe to this '.$text ; $args['unsubscribe'] = 'Unsubscribe' ; return $args ; }
In reply to: Change subscription textThe way subscriptions works has changed
use this code now :
add_filter ('bbp_before_get_user_subscribe_link_parse_args' , 'change_subscribe') ; function change_subscribe ($args) { $post_id = $args['object_id'] ; if (bbp_is_topic( $post_id )) $text = 'topic' ; if (bbp_is_forum( $post_id )) $text = 'forum' ; $args['subscribe'] = 'Subscribe to this '.$text ; $args['unsubscribe'] = 'Unsubscribe' ; return $args ; }
In reply to: User is unable to create topics from frontendok, try making a user an editor in wordpress and see if they can create a post. That might help define if it is bbpress or wordpress/site issue
In reply to: Prevent topic repliesso you want to auto-close a topic after it has been posted – yes?
In reply to: User configurable forum filter?so what is the code that does this?
In reply to: Modify Topic Reply sectionNo that’s fine, I now understand.
Nothing I know of that does this – sorry !
you can have a visual editor that looks better than the default.
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form
and look at item 9.
In reply to: Modify Topic Reply sectionok, that is just a picture, it is not clear what you want changed.
If it is the buttons, then sorry I know of nothing that does this at the moment.
In reply to: bbp style pack: massive ram ussage with unread iconI 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