Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 1,426 through 1,450 (of 14,219 total)
  • @robin-w

    Moderator

    great – glad you are fixed !!

    @robin-w

    Moderator

    sorry, try this

    add_filter ('bbp_reply_admin_links', 'rew_remove_edit') ;
    add_filter ('bbp_topic_admin_links', 'rew_remove_edit') ;
    
    function rew_remove_edit ($links) {
    $user_id = bbp_get_current_user_id() ;
    $user_role = bbp_get_user_role( $user_id );
    if ($user_role == bbp_get_keymaster_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_moderator_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_participant_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_spectator_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_blocked_role()) unset ($links['edit']) ;
    return $links ;	
    }

    @robin-w

    Moderator

    ok what about 3. above?

    @robin-w

    Moderator

    that’s an interesting point.

    On email addresses, users do not know each others email addresses from the website, and emails addresses are not shown (unless you are using them as usernames). It is possible that registered user George with email abc@def.com wants to post an anonymous comment alongside his real one. He can post with a username of say Fred, but must enter an email address in the form, so does he use his real one (abc@def.com) or must he enter a made up one? And if you don’t permit a real one from a registered user being used, then as an anonymous poster if I try an email address and it rejects, I know that the user with that email address is already on the site. That user might not want it know that he uses the site, but by testing and telling people that email address exists you are publicizing who is using the site. It’s almost certainly doable, but might have undesired consequences.

    On usernames, it is equally possible for one anonymous user to pose as another anonymous user, so it is not just registered users who can get spoofed. Now you could add a test for registered users, and reject these, and that might be sensible, but it is beyond free help, as it would be a chunk of work to do.

    If interested in email or username checking, contact me via

    http://www.rewweb.co.uk/contact-me/ with a link bacjk to this thread.

    @robin-w

    Moderator

    try

    dashboard>settings?permalinks and just click save – this resets the premalinks and sometimes fixed issues such as this.

    Then come back

    @robin-w

    Moderator

    however breakdance does it, it is essentailly using the wrong template to display the forum page – one to query with then.

    If you get a fix, please do post back here to help someone else who might get this problem in future

    @robin-w

    Moderator
    add_filter ('bbp_reply_admin_links', 'rew_remove_edit') ;
    add_filter ('bbp_topic_admin_links', 'rew_remove_edit') ;
    
    function rew_remove_edit ($links) {
    $user_role = bbp_get_user_role( $user_id );
    if ($user_role == bbp_get_keymaster_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_moderator_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_participant_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_spectator_role()) unset ($links['edit']) ;
    if ($user_role == bbp_get_blocked_role()) unset ($links['edit']) ;
    return $links ;	
    }

    and amend as needed

    spectator and blocked not really needed as neither can post, but included for completeness !!

    @robin-w

    Moderator

    thanks for the update.

    1. Can you confirm that you have run the repair tools in dashboard>tools>forums>repair forums
    2. can you confirm that making a wordpress post (ie a post or page) is quick
    3. can you try editing a bbpress topic on the front end and let me know if that is erqualy slow on saving

    @robin-w

    Moderator

    are these wordpress roles, bbpress roles, (say membership) plugin roles, or some customs roles you have written?

    @robin-w

    Moderator

    great – glad you are fixed 🙂

    @robin-w

    Moderator

    Thanks.

    I’d suggest as as a test switch to a default theme such as twentytwenty or twentytwentyone (don’t use 2022 or 2023), and see if this fixes.

    If so, then you’ll need to raise it with the theme breakdance as it is a paid product

    @robin-w

    Moderator

    what theme are you using?

    @robin-w

    Moderator

    I just had a quick look at the yoast code, and this is deliberate.

    a comment in the yoast code says :

    If breadcrumbs are active (which they supposedly are if the users has enabled this settings),
    		 * there's no reason to have bbPress breadcrumbs as well.

    @robin-w

    Moderator

    You are using the w3 caching plugin.

    At a guess, I’d say you need to clear the cache, so the correct version can load.

    @robin-w

    Moderator

    did a search and found this as a possible solution

    turn off Yoast’s breadcrumbs at:
    /wp-admin/admin.php?page=wpseo_titles#top#breadcrumbs

    If it works, then please come back and confirm

    In reply to: How to add search bar?

    @robin-w

    Moderator
    function bbptoolkit_show_search_form(){
    	if ( bbp_allow_search()) {
    			?>
    			<div class="bbp-search-form">
    				<?php bbp_get_template_part( 'form', 'search' ); ?>
    			</div>
    			<?php
    		}
    	}
    	
    add_action( 'bbp_template_before_single_forum', 'bbptoolkit_show_search_form' );
    add_action( 'bbp_template_before_single_topic', 'bbptoolkit_show_search_form' );

    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

    Code Snippets

    @robin-w

    Moderator

    Not that I know of, sorry.

    @robin-w

    Moderator

    ok, it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @robin-w

    Moderator

    @robin-w

    Moderator

    did they used to and have stopped or has this never worked?

    In reply to: Template

    @robin-w

    Moderator

    ok these are instructions from 12 years ago, and are not applicable for the current version of bbpress.

    If you just enable the ‘anyone can register’, then users can register from either the topic/reply forms, or you can use a register page – ie create a page – call it whatever you want and put the shortcode [bbp-register] in it. Then add this page to your menu.

    In reply to: Template

    @robin-w

    Moderator

    I am not sure where you are seeing

    “Before adding the page, it is important to select the bbPress template page for User Register. This can be done by clicking on the drop-down Template menu on the right hand section of the screen and selecting bbPress – User Register.”

    Can you say when/wher this appears eg

    dashboard>settings>xx>yy

    @robin-w

    Moderator

    I suspect your issue is related to whatever membership plugin you are using.

    In any case legislation in many countries requires you to allow users to ‘unsubscribe’ so they do not receive emails, so a subscription system needs to exist to allow for this.

    Not sure I can help further.

    In reply to: users autoconfirming?

    @robin-w

    Moderator

    bbpress just uses the WordPress (or whatever custom plugin you are using) registration/login, and your problem is almost certainly site specific, so beyond generic help from here.

    @robin-w

    Moderator

    fixed in latest release

Viewing 25 replies - 1,426 through 1,450 (of 14,219 total)