Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 876 through 900 (of 14,333 total)
  • @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/

    @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

    In reply to: forum issues

    @robin-w

    Moderator

    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

    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

    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.

    In reply to: Forum styling

    @robin-w

    Moderator

    there are thousands of themes, and putting divi into the search of this site has not produced any threads I can find which detail your issue, so not sure what to recommend other than asking elsewhere if there is a setting, Divi says it is bbpress friendly.

    In reply to: Forum styling

    @robin-w

    Moderator

    you are using the divi theme

    1. I’d suggest you add

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>theme support and you’ll see some useful info on serach and profiles

    2. it looks like the sub pages are using a different divi template.

    this link might help
    https://divi.help/threads/bbpress.11376/ or post on that support group or raise with Divi?

Viewing 25 replies - 876 through 900 (of 14,333 total)