Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 726 through 750 (of 14,193 total)
  • @robin-w

    Moderator

    I don’t have any forums on my live sites (anymore), so don’t use akismet, so I’m relying on your better knowledge πŸ™‚

    so to save having to repeat bbpress code, the logic might be

    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) && !empty (get_post_meta( $reply_id, '_bbp_akismet_user_result', true ))) {
    		//unspam the reply (which takes it back to pending, and within that function runs the update_reply_walker)
    		bbp_unspam_reply( $reply_id) ;
    		//and then re-spam it
    		bbp_spam_reply( $reply_id) ;
    	}
    }

    which is actually what I do manually (I click unspam and then click spam on the front end admin) on this site when akismet does this.

    @robin-w

    Moderator

    Dashboard- settings – forums and untick the prefix forum slug

    @robin-w

    Moderator

    Dashboard- forums and edit the forum on right hand side it will show visibility amend as required

    @robin-w

    Moderator

    you might want to make your forums ‘private’ several are public, I found some by using

    https://www.saanichsommeliers.ca/forums/

    @robin-w

    Moderator

    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

    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

    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

    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

    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

    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

    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

    I’ll take a look

    In reply to: Issue with links

    @robin-w

    Moderator

    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

    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

    link to a live example please

    @robin-w

    Moderator

    no problem, hopefully someone will help πŸ™‚

    @robin-w

    Moderator

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

    @robin-w

    Moderator

    Try

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

    @robin-w

    Moderator

    πŸ™‚

    In reply to: No forum sidebar

    @robin-w

    Moderator

    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

    what theme are you using?

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    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

    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

    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/

Viewing 25 replies - 726 through 750 (of 14,193 total)