Forum Replies Created
-
In reply to: Remove forum prefix before users
I thought if I changed it here:
Then I need to change it here too:
add_filter (‘bbp_get_user_slug’ , ‘rew_get_user_slug’ ) ;
function rew_get_user_slug ($slug) {
$default = ‘users‘ ;
// Filter & return
return apply_filters( ‘rew_get_user_slug’, get_option( ‘_bbp_user_slug’, $default ) );
}In reply to: Remove forum prefix before usersThank you for the answer.
It only works if User Base is users and the code you wrote includes users in it.
If I rewrite User Base to user and also to user in the code, it will no longer work with this custom user root.In reply to: Remove forum prefix before usersSorry, I’m getting a 404 error when I want to view a profile.
In reply to: Another user’s edit page jumps to the profile pageThank you very much again for your help! 😀 😉
In reply to: Another user’s edit page jumps to the profile pageThank you very much, it was very good. I added a bit because I want the user to access their own links, but not other users.
I did it well?
add_action( 'template_redirect', 'redirect_user_to_profile_from_subpages' ); function redirect_user_to_profile_from_subpages() { global $wp; $user_id = bbp_get_displayed_user_id(); // subpage - enagements if ($wp->query_vars["bbp_engagements"] == 1 and $user_id != get_current_user_id() ) { wp_safe_redirect( bbp_get_user_profile_url( $user_id ) ); exit; } // subpage - topics created if (bbp_is_topics_created() and $user_id != get_current_user_id() ) { wp_safe_redirect( bbp_get_user_profile_url( $user_id ) ); exit; } // subpage - replies created if (bbp_is_replies_created() and $user_id != get_current_user_id() ) { wp_safe_redirect( bbp_get_user_profile_url( $user_id ) ); exit; } // subpage - subscriptions if (bbp_is_subscriptions() and $user_id != get_current_user_id() ) { wp_safe_redirect( bbp_get_user_profile_url( $user_id ) ); exit; } }
In reply to: Another user’s edit page jumps to the profile pageGreat 🙂
In reply to: Another user’s edit page jumps to the profile pageHi @egyptimhotep!
That’s right
In reply to: bbp user online statusYes, what you wrote is absolutely understandable.
I’ll buy the plugin. What happens after that? How do I access this function that allows me to display whether a user is online or not, on their profile page and blog comments?
In reply to: bbp user online statusThese sound very good. 🙂
But I still have questions:
Is there a shortcode for the content of the Online users tracking widget?
Does this content refresh without reloading the page, for example every minute?In reply to: bbp user online statusHi,
Thank you for your reply. There are a lot of options in this plugin.
Does the online status appear only on topics and replies, or can it also appear on the profile page, possibly in blog comments? After all, the user is also there online, not just on the forum.Thank you!
RobertI did not do anything! 🙂
But I was able to solve it with css:
.bbp-search-results .bbp-topic-author span.topic-author, .bbp-search-results .topic-author span.topic-author { display: inline-block; } .bbp-search-results span.topic-author { display: none; }
I hide span.topic-authors from the search results page and left only within .bbp-topic-author and within .topic-author.
Hi @robin-w,
//This function adds the author to the reply function bbp_author_display () { if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) { echo '<span class="topic-author">' ; echo '<ul><li>' ; echo 'Topic Author' ; echo '</li></ul></span>' ; } else return ; } add_action ('bbp_theme_after_reply_author_details', 'bbp_author_display') ;
This is a very good code, however, when searching, it puts it on each result. 🙁
In reply to: Add placeholder to forum search inputSorry…
I found it.
It’s already night… -_-In reply to: Confirmation email overwriteWhat ended this? Because I’m lost. Are we waiting for something now?
In reply to: Confirmation email overwriteI have installed wordpress, bbpress and BNFW in a new directory and the error persists:
If I edit the email address on the bbPress profile page, WP will send a confirmation email.
If I edit the email address on the admin page, BNFW will send a confirmation email.Oh, I see you found the BNFW support page 🙂
In reply to: Confirmation email overwritebbp style pack
bbPress Mentions Email Notifications
bbPress Notify (No-Spam)
GD bbPress ToolsBut I have already tried to deactivate them all.
In reply to: Confirmation email overwriteThank you for your answer!
email_change_email
for the ‘User Email Changed – For User’ notification.new_user_email_content
for the ‘User Email Changed Confirmation – For User’ notification.I think I only need the last one because it sends the ‘User Email Changed – For User’ notification.
I tried the following code:
remove_action( 'bbp_user_edit_after', 'extra_user_profile_fields' );
But failed!I tried to put somewhere else:
add_action( 'bbp_user_edit_after_about', 'extra_user_profile_fields' );
So it has displayed in two places 🙂In reply to: The profile name is not visible inNo solution yet?
In reply to: The profile name is not visible inIn reply to: The profile name is not visible inDoes not work. If the template uses add_theme_support (‘title-tag’), the profile name will not appear in the title bar.
In reply to: Forum page will not be refreshedOh, thank you very much !!!
It seems to work! 🙂In reply to: Forum page will not be refreshedI do not use subforums. I have 2 forums, approx. 5-6 topics.
I’ll try what you sent, thank you!In reply to: The profile name is not visible inYes, I am designing my own theme. But basic WordPress templates work the same way.
There is no longer a<title></title>
tag in header.php. Instead, functions.php has anadd_theme_support ('title-tag');
.
If I remove this and write the title tag back to header.php, it will display the user’s name in the title bar.In reply to: Forum page will not be refreshedWhen a post is posted to a topic, the information under the last posts on the forum page is not updated.