Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 976 through 1,000 (of 13,914 total)
  • @robin-w

    Moderator

    ok, presuming the characters are exactly this

     

    sorry nothing further I can do.

    if different put that in the appropriate line

    @robin-w

    Moderator

    ok, 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

    Code Snippets

    @robin-w

    Moderator

    and the problem may well be with intervening parts of email system – emails have become very complicated in how they are delivered, and you may find that emails to you have this, but other email users don’t get the problem

    @robin-w

    Moderator

    no problem, we’ve all been there 🙂 🙂

    glad you are fixed !

    @robin-w

    Moderator

    ok, not sure how to help further, maybe try

    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

    ok, so switch to html text

    @robin-w

    Moderator

    try

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Subscription Emails

    where you can amend what is sent, or indeed switch to plain text

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    @enkoes – thanks, I’ve amended the version above 🙂

    @robin-w

    Moderator

    oh have you run

    1. dashboard>tools>repair tools
    2. Dashboard>settings>permalinks and just click save – this resets the permalinks

    I am very doubtful that this will cure, but it is a good 2 things to eliminate

    @robin-w

    Moderator

    If the tests above proved nothing, then I can only suggest you have some form of corruption on either database or more likely software.

    But can you confirm that this does not happen every time, and if so how often (eg 1 in 3 posts, 1 in 10, 1 in 100)?

    Are you able to clone your site?

    @robin-w

    Moderator

    ok, so put this before it

    <?php

    @robin-w

    Moderator

    ok, so can you paste the bit of your child theme’s function file that you pasted this into, including 3 lines before and after

    @robin-w

    Moderator

    ok, again untested but this

    add_filter ('bbp_topic_admin_links' , 'surpress_moderator_links', 10 , 2) ;
    add_filter ('bbp_reply_admin_links' , 'surpress_moderator_links', 10 , 2) ;
    
    function surpress_moderator_links ($links , $id) {
    	
    	if (bbp_is_topic( $id)) $forum = bbp_get_topic_forum_id( $id ) ;
    	if (bbp_is_reply( $id)) $forum = bbp_get_reply_forum_id( $id) ;
    	if (!in_array($forum, array ('12345','34567','78945'))) return $links ;
    	//if user is moderator but not a keymaster...
    	$user_id = wp_get_current_user()->ID ;
    	if (bbp_is_user_keymaster($user_id)) return $links ;
    	if (current_user_can( 'moderate')) {
    		//check if the topic/reply is posted by another moderator, and if so unset the links
    		if (bbp_is_topic( $id)) $author_id = bbp_get_topic_author_id( $id ) ;
    		if (bbp_is_reply( $id)) $author_id = bbp_get_reply_author_id( $id ) ;
    		if (bbp_get_user_role( $author_id)  == 'bbp_moderator') {
    			 unset ( $links ['approve'] );
    			 unset ( $links ['spam'] );
    			 unset ( $links ['trash'] );
    			 unset ( $links ['move'] );
    			 unset ( $links ['split'] );
    			 unset ( $links ['edit'] );
    			 unset ( $links ['move'] );
    			unset ( $links ['merge'] );
    			unset ( $links ['close'] );
    			unset ( $links ['stick'] );
    		
    		}
    	}
    return $links ;
    }

    just change ‘array (‘12345′,’34567′,’78945′))’ to have a list of the forum ID’s you want to check against

    @robin-w

    Moderator

    @ph59 – ah I see, then yes try the code above, if it doesn’t work, let me know and I’ll try and find time to fix it

    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

    maybe …not one the bbpress authors allowed for 🙂

    anyway, totally untested as I need to be doing other things, but this might do it
    revised code below

    of course if moderators are allowed into the backend, then this becomes pointless, but I would argue that only admins should be backend access 🙂

    @robin-w

    Moderator

    sorry I meant in which file are you seeing this

    ‘There is a css setting, if-no-js, that is setting display none before the button bar’

    @robin-w

    Moderator

    so in which file are you seeing this setting?

    @robin-w

    Moderator

    I suppose my first thought would be that if you can’t trust your moderators to be nice to each other, why would you trust them to be nice to the general forums users, so why would you have them as moderators in the first place?

    @robin-w

    Moderator

    probably – maybe set up a test moderator and try

    In reply to: Post-> Topics

    @robin-w

    Moderator

    ok, so no easy automatic way to do this., but this method is fairly simple.

    so use the ‘Post Comments as bbPress Topics’ plugin, and create a post using settings that create a topic. Publish the post and that will create the post and a forum topic.

    then you can immediately go back to edit that post, and in the ‘topics for posts’ part of the edit, unclick the ‘Use a bbPress forum topic for comments on this post.’ This will then show the normal comments box, but the forum topic will remain.

    In reply to: Problem with theme

    @robin-w

    Moderator

    I presume you are adding the adrotate with a shortcode – yes?

    In reply to: Post-> Topics

    @robin-w

    Moderator

    so for a post, do you want a topic to be created, but post comments to remain in the post?

    In reply to: Duplicate post message

    @robin-w

    Moderator

    so if you look in

    dashboard>replies can you see if his reply is getting posted?

    @robin-w

    Moderator

    hmmmm… not sure it would be that, as bbpress is loading 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

Viewing 25 replies - 976 through 1,000 (of 13,914 total)