sn07 (@sn07)

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • @sn07

    Participant

    Thanks, I don’t know java so am trying to do this with php/html (new to those as well though). I have made some progress as have edited form-topic.php and created a checkbox with some text to the left of the Submit button. I have also disabled the submit button initially. I know I don’t have the right value in EnableSubmit at the moment.

    What I need to do now is allow the Submit button to be enabled when the checkbox is ticked and disable it again if the checkbox is unticked. Do you know what I need EnableSubmit to call or if I need an if statement around it?

    php do_action( ‘bbp_theme_before_topic_form_submit_button’ ); ?>

    input type=”checkbox” name=”DISCLAIMER” value=”Accept” onClick=”EnableSubmit(button submit)”>Tick to accept this Disclaimer before pressing the Submit button.

    button type=”submit” onclick=”this.disabled=true” tabindex=”” id=”bbp_topic_submit” name=”bbp_topic_submit” class=”button submit”>

    ?php do_action( ‘bbp_theme_after_topic_form_submit_button’ ); ?>

    • This reply was modified 12 years, 4 months ago by sn07.
    • This reply was modified 12 years, 4 months ago by sn07.

    @sn07

    Participant

    Thanks netweb for creating the ticket.

    Lynq – thanks for the code for the latest posts. Did you create a new php file with this code or put it in an existing file?

    @sn07

    Participant

    Thanks for explaining this. Being able to customise this in future versions sounds good, but in the meantime I am able to give my editors enough permissions to edit/delete posts directly on the site so that will work just fine.

Viewing 3 replies - 1 through 3 (of 3 total)