Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 4,376 through 4,400 (of 14,335 total)
  • In reply to: create a un function

    @robin-w

    Moderator

    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

    add_filter( 'bbp_get_reply_content', 'rew_add_class' , 10 , 2) ;
    
    function rew_add_class ($content, $reply_id ) {
    	$content.='<div class="frenchlemans">I’m superman</div>' ;
    return $content;
    }
    In reply to: create a un function

    @robin-w

    Moderator

    ok, will I’m superman be the same everytime ?

    In reply to: create a un function

    @robin-w

    Moderator

    ok, let us try and get to what you want.

    so if the content of a reply was ‘hello how are you ?’

    then at the moment bbpress would show

    <div class="bbp-reply-content">
    hello how are you ?
    </div>

    what would you like it to show?

    In reply to: create a un function

    @robin-w

    Moderator

    the above was a question – what do you want it to look like? I was trying to help you, but you’ll find the function in

    includes/replies/templates it has a filter you can use.

    @robin-w

    Moderator

    that seems to be an error in your buddyboss theme which has amended the loop-single-reply template

    loop-single-reply.php in bbpress only has 55 lines.

    I would suggest you post this in the buddyboss support forums

    In reply to: Cant post

    @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: create a un function

    @robin-w

    Moderator

    so if you currently have

    <div class="bbp-reply-content">
    
    This is the content
    
    </div>

    what do you want it to look like ?

    @robin-w

    Moderator

    you can repeat the breadcrumb using

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Breadcrumbs

    @robin-w

    Moderator

    sorry either ‘Yes, it’s all replies in all forums (I only have one on the site) from all dates’ or ‘ but others have left replies without a problem.’ is true, both cannot be true

    Can you try again to write a problem definition.

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    so are you fixed ?

    @robin-w

    Moderator

    contact me on

    Contact me

    or Millan at

    https://www.dev4press.com/contact/

    @robin-w

    Moderator

    ok, so can you confirm

    users can posts topics and these all work.

    when a user posts a reply, you get an email because you are subscribed to the forum, but no reply appears in the forum, and nothing is seen in dashboard>replies.

    is the forum new ? has this always been the case? or just started happening?

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    the page title is a theme display, so you would need to hook to that.

    Your theme author might be able to offer either a hook, or tell you what template file is being used for the title.

    In reply to: How to troubleshoot

    @robin-w

    Moderator

    not one I’ve come accross.

    Next time it happens, try

    dashboard>settings>permalinks and just click save, this resets the permalinks.

    Might work, might not.

    @robin-w

    Moderator

    try

    bbp_theme_before_forum_title

    @robin-w

    Moderator

    that may be because they are empty, so bbpress doesn’t bother showing as option.

    so is this all replies, many replies, some replies, all forums some forums?

    @robin-w

    Moderator

    possibly

    bbp_theme_after_forum_title

    and

    bbp_template_before_replies_loop

    @robin-w

    Moderator

    ok, so you are saying that you are receiving an email to say there is a reply – that reply has a link – where does that go – is it to a 404 page ?

    and in

    dashboard>replies>all replies – there are filters for all, mine, published, drafts, pending and spam and there is nothing in those ?

    If a user posts a reply, and then decides to delete it before you see the email, then this could explain the problem.

    In reply to: Report a post

    @robin-w

    Moderator

    πŸ™‚

    @robin-w

    Moderator

    yes, if you’re ok with mysql, then yes.

    you’d need to look at usermeta where wp__bbp_topic_count and wp__bbp_reply_count forthat user are nil

    @robin-w

    Moderator

    what bbpress related plugins do you have (if any)

    @robin-w

    Moderator

    so something like

    $user_id = get_current_user_id()  ;
    $topic_count  = bbp_get_user_topic_count_raw( $user_id);
    $reply_count = bbp_get_user_reply_count_raw( $user_id);
    $post_count   = (int) $topic_count + $reply_count;		
    if ($post_count > 150) { 
    //show here
    }

    @robin-w

    Moderator

    In essence you are allowing anyone to register in

    dashboard>settings>general

    one of the scourges of the internet is the race to get a site listed on page 1 of google – the sites google ranking. One of the parameters google (and other search engines) use is how many times a site is found listed on other websites. There are loads of ‘companies’ that offer to raise your google ranking, and one of the ways they try and do this is to register and add the website to their profile on WordPress sites that allow registration. Sites that allow anyone to register get known, and yes robots are then used to register.

    yes, you can go in and delete the bogus users, but you’d need to be satisfied that they have not posted, as otherwise any forum posts by this user might cause the site to error.

    you might be better to set the ‘screen options’ in dashboard>users>edit users to 999, and bulk delete a thousand at a time, you can then attribute content or delete it.

    for future you might do better to add an approval to registration – there are several – I’ve not used any, as I have a manual registration process, but this one should do what you want

    WP Approve User

Viewing 25 replies - 4,376 through 4,400 (of 14,335 total)