Forum Replies Created
-
In reply to: Freshness not updating
great !
In reply to: Pagination after deleting postsyes, the function seems to look up the reply position and if it exists, does not change it
Put this in your child theme’s function file – or use
add_filter ('bbp_get_reply_position' , 'rew_redo_reply_position', 10 , 3 ) ; function rew_redo_reply_position ($reply_position, $reply_id, $topic_id) { // Get required data $reply_id = bbp_get_reply_id( $reply_id ); // Get topic ID $topic_id = ! empty( $topic_id ) ? bbp_get_topic_id( $topic_id ) : bbp_get_reply_topic_id( $reply_id ); // Post is not the topic if ( $reply_id !== $topic_id ) { $reply_position = bbp_get_reply_position_raw( $reply_id, $topic_id ); // Update the reply position in the posts table so we'll never have // to hit the DB again. if ( ! empty( $reply_position ) ) { bbp_update_reply_position( $reply_id, $reply_position ); } // Topic's position is always 0 } else { $reply_position = 0; } // Bump the position by one if the topic is included in the reply loop if ( ! bbp_show_lead_topic() ) { $reply_position++; } // Filter & return return (int) apply_filters( 'rew_redo_reply_position', $reply_position, $reply_id, $topic_id ); }and come back with whether that fixes, it may not retro fix, so you may need to delete another reply to get it to work.
In reply to: Pagination after deleting postsok, just a thought
so is it JUST the recent replies widget that has this issue ?
In reply to: Tag htmlsome themes will have a bbpress FOLDER, which is where you would put amended bbpress template files.
filters generally go in the child theme functions file
In reply to: Tag htmlno not that file, the functions file in your child theme. If you don’t have a child theme, or don’t know what that means, use the code snippets plugin.
In reply to: Pagination after deleting postsinteresting, and thanks fro doing a lot of digging
try
dashboard>tools>forums>repair forums and run
Recalculate position of each reply in each topic
In reply to: Tag htmlPut this in your child theme’s function file – or use
and change “bbp-topic-tags” to whatever you want
add_filter ('bbp_before_get_topic_tag_list_parse_args' , 'rew_change_class' ) ; function rew_change_class ($args) { $args['before'] = '<div class="bbp-topic-tags"><p>' . esc_html__( 'Tagged:', 'bbpress' ) . ' ' ; return $args ; }great
add_shortcode (‘kiki-greet’ , ‘kiki_greet’ ) ; function kiki_greet() { $user = wp_get_current_user() ; echo '<div="kiki-greet">'.$user->display_name.'</div>' ; }try again
wrap it in some
<div>‘sadd_shortcode (‘kiki-greet’ , ‘kiki_greet’ ) ; function kiki_greet() { $user = wp_get_current_user() ; echo '<div="kiki-greet">.$user->display_name.'</div> ; }then style the div name (which can be anything unique – I just called it kiki-greet)
In reply to: [bbp-single-forum id] for parent not workingwe’ve all been there – you do lots of bits and suddenly it breaks! 🙂 Then you desperately try and remember what you did !. that teaches all of us to make a note in future.
come back if you need further help
In reply to: Is there a way to display users with highest topicsgreat – I’ve just released a new version 2.7 which has an additional class tc-user which wraps each user
so if you add css to float tc-user left and add some padding you should be fixed
In reply to: Topic headings to show onlyinstall
once activated go to
dashboard>settings>bbp style pack>Forum Display and add item 6
then
dashboard>settings>bbp style pack>custom css and add
.bbp-forum-info .bbp-forum-content { display: none !important; }In reply to: [bbp-single-forum id] for parent not working‘has stopped working…’ so was working for a long time? is bbress at the same version? What has changed – have you updated theme, plugins?
contact me via
In reply to: Is there a way to display users with highest topicsso can you give us the code so far please
In reply to: Is there a way to display users with highest topicscome back when you get stuck, but please try a lot first !
In reply to: Is there a way to display users with highest topicsIn reply to: Is there a way to display users with highest topicsyou need to learn how to look at classes in ‘developer’ in your browser, and then you can do all this yourself.
an example of the relevant image code is
<div class="tc-avatar" style="float:left;border-radius: 25px;"><a class="tc-profile-link" href="http://gos.rewweb.co.uk/users/admin/"><img alt="" src="https://secure.gravatar.com/avatar/dd803ad797ee5ca256d4be78c98fb305?s=96&d=mm&r=g" srcset="https://secure.gravatar.com/avatar/dd803ad797ee5ca256d4be78c98fb305?s=192&d=mm&r=g 2x" class="avatar avatar-96 photo" width="96" height="96"></a></div>and the text
<div class="tc-content" style="padding-left:50px ; top: 50%;transform: translateY(-50%);position: relative;"><a class="tc-profile-link" href="http://xxx.com/users/admin/">admin</a>303</div>In reply to: Is there a way to display users with highest topicsupdated this – latest version does not error
In reply to: wrong author on main forum pagegreat – glad you are fixed
In reply to: wrong author on main forum pagetry
dashboard>tools>forums>repair forums and run one at a time
In reply to: Is there a way to display users with highest topicsIn reply to: Testing user privileges🙂
In reply to: Testing user privilegesbbpress uses
edit_topicsandedit_repliesso doesn’t use the capabilities abovebut suspect your code needs an if statement, so I’d do
// check frontend user privileges if ( is_user_logged_in() && ( (current_user_can('edit_posts') || current_user_can('edit_pages') ) ) $canEdit = true ;