Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 76 through 100 (of 13,539 total)

  • Robin W
    Moderator

    @robin-w

    I have lately been notified several times that obviously fake emails have evidently โ€œsubscribedโ€ to my Forum.

    sorry, could you say how that works -who or what notified you?


    Robin W
    Moderator

    @robin-w

    just had a quick look (i’m working on soemthing else at the moment, but found 5 minutes)

    maybe

    if ( bbp_get_spam_status_id() == get_post_status($reply_id) && !empty (get_post_meta( $reply_id, '_bbp_akismet_user_result', true ))) {


    Robin W
    Moderator

    @robin-w

    in case you are working on this, basically if we hook to

    bbp_new_reply_pre_extras

    we can then do a check if it has been spammed by askimet and the if so, just do a reply walker update

    so something like (totally untested)

    add_action ('bbp_new_reply_pre_extras' , 'rew_askimet_check', 100 , 1 ) ; //might need to be run at a high priority to make sure it is last - not tested
    
    function rew_askimet_check ($reply_id) {
    	//only execute is this is akismet spam
    	if ( bbp_get_spam_status_id() == get_post_status($reply_id) && [some check that this has been marked by akismet])) {
    		//just run the reply update walker as this will do a full refresh of all ancestors to the topic if just the reply ID is sent
    			bbp_update_reply_walker($reply_id) ;
    	
    	}
    }

    The akismet check would be something like

    if (get_post_meta( $reply_id, 'some akismet metadata', true )


    Robin W
    Moderator

    @robin-w

    I’m in the code, and can work out where we might link to a hook, it is really if there is a metadata field I can use to do a check – the name would be useful


    Robin W
    Moderator

    @robin-w

    Just playing with options. I don’t know how technical you are, but for an ‘askimet’ spammed reply, are there anything additional fields set in the reply metadata to say that askimet found it? If you don’t know, not a problem, but if there is or you know nothing is set, then that would be useful


    Robin W
    Moderator

    @robin-w

    thanks, yes this happens in this forum too, but I have limited access to the backend here, as I just help out.

    I was asking so I can find a hook to try and fix. your post was helpful, so let me see if I can do some code later today


    Robin W
    Moderator

    @robin-w

    just a quick question to save me time, if askismet sees it as spam, is the topic/reply still created, but marked as spam ie you can still see it in dashboard>topics/replies but as a spam?


    Robin W
    Moderator

    @robin-w

    I’ll take a look

    In reply to: Issue with links

    Robin W
    Moderator

    @robin-w

    ok, so if you are talking about links

    dashboard>settings>discussion>comment moderation>Hold a comment in the queue if it contains xx links and change the number of links

    In reply to: Forum reply timestamps

    Robin W
    Moderator

    @robin-w

    ok, not much i can do without seeing it, but 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

    In reply to: Forum reply timestamps

    Robin W
    Moderator

    @robin-w

    link to a live example please


    Robin W
    Moderator

    @robin-w

    no problem, hopefully someone will help ๐Ÿ™‚


    Robin W
    Moderator

    @robin-w

    sorry, I’m not an individual site design service ๐Ÿ™‚


    Robin W
    Moderator

    @robin-w

    Try

    li.bbp-header {
    display : none ;
    }
    
    div.bbp-topic-header div.bbp-meta {
    display : none ;
    }

    Robin W
    Moderator

    @robin-w

    ๐Ÿ™‚

    In reply to: No forum sidebar

    Robin W
    Moderator

    @robin-w

    so set a global sidebar and make this the default

    https://wpastra.com/docs/sidebar-free/

    and bbpress should use this.

    In reply to: No forum sidebar

    Robin W
    Moderator

    @robin-w

    what theme are you using?


    Robin W
    Moderator

    @robin-w

    ๐Ÿ™‚


    Robin W
    Moderator

    @robin-w

    I think this does what you want

    add_filter ('bbp_get_reply_author_avatar', 'rew_avatar', 10 , 3) ;
    add_filter ('bbp_get_topic_author_avatar', 'rew_avatar' , 10 , 3) ;
    
    function rew_avatar ( $author_avatar, $id, $size)  {
    	if ( bbp_is_reply( $id ) ) {
    		$author = bbp_get_reply_author_display_name( $id );
    		$text = 'alt="icon avatar for '.$author.'"' ; 
    	}
    	if ( bbp_is_topic( $id ) ) {
    		$author = bbp_get_topic_author_display_name( $id );
    		$text = 'alt="icon avatar for '.$author.'"' ; 
    	}
    	$author_avatar = str_replace('alt=\'\'',$text,$author_avatar);
    return $author_avatar ;
    }

    Robin W
    Moderator

    @robin-w

    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

    Thanks – those are deprecation errors from buddypress not bbpress.

    I’d suggest you add

    BP Classic

    and see if that fixes.

    If not, raise the issue in

    https://buddypress.org/support/


    Robin W
    Moderator

    @robin-w

    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

    In reply to: forum issues

    Robin W
    Moderator

    @robin-w

    Can you check if you are a ‘keymaster’

    dashboard>users>all Users and look at the forum role for you.

    If you are not, you will not see the forum option.

    In reply to: forum issues

    Robin W
    Moderator

    @robin-w

    I’ve spilt this off to a separate topic, as it is a specific site issue.

    so is this a new installation of bbpress, or a new issue on an existing one?

    In reply to: Forum styling

    Robin W
    Moderator

    @robin-w

    just a final thought. Your theme should have a default template – you might be able to change this in dashboard>appearance>customize to one that doe not have a sidebar.

Viewing 25 replies - 76 through 100 (of 13,539 total)