Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,551 through 3,575 (of 14,186 total)
  • @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    ok, so as above.

    I’m thinking about your email

    @robin-w

    Moderator

    do come back if you think I can help further, I know how frustrating these events are !

    @robin-w

    Moderator

    Is this a new issue on new site, or new issue on old site, and how often is it happening to how many users ?

    ok, I don’t think this is bbpress, I can’t see anywhere in bbpress that it changes cookies, but as you’ll appreciate ‘random’ actions are always the hardest to debug, and I would not rule bbpress out, I’m just struggling to see where it might have the problem.

    so to directly answer your question, no idea how you might debug without finding a way to reliabily recreate this.

    @robin-w

    Moderator

    yes, this has been happening for a while (it happens on this site!) , and I’ve not got round to looking at why until you posted (I am a bbpress user who helps out here, not one of the bbpress authors).

    I’ve just dug into the code and created a trac fix ticket for it

    https://bbpress.trac.wordpress.org/ticket/3429#ticket

    in the meantime, this code fixes the problem

    add_filter ('bbp_bump_user_topic_count' , 'rew_new_topic_count', 10 , 4) ;
    
    function rew_new_topic_count ($user_topic_count, $user_id, $difference, $count) {
    	//check if count is 2 and should be 1 by seeing if user topic count is empty!!
    	if ($user_topic_count==2 && empty (bbp_get_user_topic_count( $user_id, true )) )$user_topic_count = 1 ;
    return $user_topic_count ;	
    }
    
    add_filter ('bbp_bump_user_reply_count' , 'rew_new_reply_count', 10 , 4) ;
    
    function rew_new_reply_count ($user_reply_count, $user_id, $difference, $count) {
    	//check if count is 2 and should be 1 by seeing if user topic count is empty!!
    	if ($user_reply_count==2 && empty (bbp_get_user_reply_count( $user_id, true )) )$user_reply_count = 1 ;
    return $user_reply_count ;	
    }

    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

    hmmm….

    by ‘renewal’ do you mean login ?

    @robin-w

    Moderator

    great – glad you are fixed 🙂

    @robin-w

    Moderator

    I would suspect this is a 404 error.

    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

    great – glad you are fixed !

    @robin-w

    Moderator

    unsubscribe vs cancel vs delete??

    unsubscribe simply unsubscibes for new topics/replies, it does nothing to existing

    @robin-w

    Moderator

    ok,I’d suggest you try your developer f you can – it is likely to be something they have done.

    If they refuse to help further, then come back

    @robin-w

    Moderator

    ok, this thread was for version 1 of the plugin.

    If you have an issue, 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

    do have access to

    dashboard>appearance>themes ?

    @robin-w

    Moderator

    This code is from version 1 of bbpress, so probably no longer works.

    @robin-w

    Moderator

    try this

    @robin-w

    Moderator

    @deborah86 – great – thanks for posting your findings – really appreciated !

    This will help others getting the same issue

    @robin-w

    Moderator

    I saw your one before the edit.

    I put this in my form-reply

    <input name="toggle-check" id="toggle-check" type="checkbox" value="value">hello

    and this in my theme’s functions file

    add_action( 'bbp_new_reply_post_extras', 'rew_reply_checkbox' );
    add_action( 'bbp_edit_reply_post_extras', 'rew_reply_checkbox' );
    
    function rew_reply_checkbox ($reply_id) {
    //and probably set the value to a $_POST parameter you set in the form
    if (! empty($_POST['toggle-check'] ) ) {
    $myvalue = $_POST['toggle-check'] ;
    }
    else $myvalue='empty' ;
    
    update_post_meta ($reply_id , 'toggle-check', $myvalue) ;

    and that works fine

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    ok, I’m very confused.

    if you are adding this code to a form, then it is already in a form, so you don’t need the <form…

    you’d just need to code I put above ie

    echo '<p class="whatever">
    <input name="my_parameter" id="my_parameter" type="checkbox" value="whatever_value_you_want" checked="checked">								<label for="whatever">Tick this box to do whatever</label>
    </p>' ;

    maybe you could post the entire form you are trying to change, and indeed say where/what it is?

    @robin-w

    Moderator

    my test site with just twentytwenty and bbpress works both with or without the prefix – I just make sure the landing page has the same permalink as the forum slug.

    Every site is unique, so if that is not working for you, I’m not sure what to suggest next – sorry 🙁

    @robin-w

    Moderator

    sorry this is free help offered by volunteers – I try to read the posts but have limited time, and sometimes miss elements 🙂

    so

    what are the settings in

    dashboard>settings>forums – forum root slug forum and forum single slugs – please list

    is the ‘Prefix all forum content with the Forum Root slug (Recommended)’ set ?

    In reply to: redirect 301

    @robin-w

    Moderator

    not sure how this is related to bbpress ?

    @robin-w

    Moderator

    @robin-w

    Moderator

    However 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

    sorry – too many things in your ‘we value your privacy’ for me to visit, I get enough junk at the moment.

Viewing 25 replies - 3,551 through 3,575 (of 14,186 total)