Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 3,601 through 3,625 (of 14,219 total)
  • @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.

    @robin-w

    Moderator

    ok so are you seeing these topics in

    dashboard>topics ?

    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

    can you explain

    Forum > Announcements > Test Topic Creation

    the form is usually at the bottom of the forum listing, what are you selecting in ‘test topic creation’ ?

    @robin-w

    Moderator

    ok, so apart from bbpress, what other bbpress related plugins are you running ?

    @robin-w

    Moderator

    presume just you as admin? or are your forum subscribers also receiving more than 1?

    @robin-w

    Moderator

    unanswered can be done by

    bbp style pack

    once activated

    create a wordpress page and use the [bsp-display-topic-index …..] shortcode

    see

    dashboard>settings>bbp style pack>Shortcodes for how to use it – but create one with noreply

    then you just create a link to that page

    @robin-w

    Moderator

    great – glad you are fixed, and thanks for the MPV – made me smile πŸ™‚

    @robin-w

    Moderator

    ok, so I looked and yes adding elementor as a 3rd option causes the issue.

    So this is a combination of plugin actions, not a single one.

    I should say here that I am just a bbpress user who helps out here, I’m not one of the authors.

    I could spend many hours looking at all three plugins to track why the issue happens, but the easiest solution is just to add back the bbpress capabilities after plugins have loaded

    so this plugin which is just 4 lines long does that.

    BbPress Add Capabilities

    just download and then add to your site and if I have understood it, you should be back and working again.

    Let me know if/that it works.

    @robin-w

    Moderator

    ok – that shows what happens with elementor active, but if you deactivate that what happens?

    @robin-w

    Moderator

    no problem, it is already night here in the UK πŸ™‚

    @robin-w

    Moderator

    dashboard>settings>discussion is a default wordpress option, so if you don’t have this, then something is wrong outside of bbpress !!

    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

    so maybe have a function that says

    add_action( 'bbp_theme_after_reply_form_content', 'rew_add_checkbox' );
    
    function rew_add_checkbox () {
    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>' ;
    
    }

    This will put the checkbox after the content

    @robin-w

    Moderator

    without knowing what you are trying to achieve hard to say.

    Typically you’d use JS for stuff you want to change on the fly without reloading the screen.

    For an input form you would more normally use html and php

    But I do fully appreciate that we all play to our strengths and I would tend to use PHP where JS would be better as I know it well, and I suspect you are the reverse πŸ™‚

    So you would add a checkbox, you can do this by amending the reply template, or better using one of the do_action hooks in the template. You can also do this using JS

    In essence you are adding this to the form, you can use whatever names you want

    <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>

    This will create a box which when submitted will set
    $_POST[β€˜my_parameter’] to “whatever_value_you_want” if ticked or be blank if not

    you can use the code above to set your meta data

    @robin-w

    Moderator

    ok, can you check your moderation settings

    dashboard>settings>discussion and look at the moderation part – most commonly it is because the post breaks the no. links rule

    @robin-w

    Moderator

    ok, so as a test can you deactivate elementor to see if that resolves – trying to work out what combination causes the issue

    @robin-w

    Moderator

    elementor theme plugin or both ?

Viewing 25 replies - 3,601 through 3,625 (of 14,219 total)