Forum Replies Created

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

    (@sn07)

    Unfortunately I cannot as the site is local..is there any more info I can supply that would help?

    Thread Starter sn07

    (@sn07)

    Thanks very much. It helped put me in the right direction. I had to make a few changes as it did not find the function at first. However I found that I need to use the id everywhere and not the name. So the final code is

    form-topic.php

    <div class="bbp-submit-wrapper">
    <form id="frm" name="frm">
    <input type="checkbox" id="chk" name="chk" onClick="apply_submit()">Tick to accept
    <button type="submit" disabled="disabled" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
    </form>

    functions.php

    <script type="text/javascript">
    function apply_submit()
    {
     if(document.getElementById("chk").checked==true)
      {
        document.getElementById("bbp_topic_submit").removeAttribute("disabled");
      }
     if(document.getElementById("chk").checked==false)
      {
       document.getElementById("bbp_topic_submit").setAttribute("disabled", "disabled");
      }
    }
     </script>
    Thread Starter sn07

    (@sn07)

    Thanks yes. If I want to move from localhost to use the actual domain name of the server do I need to create a sub-directory within www and move the files into there?

    In ‘If You Want Your Old Blog To Still Work’, it implies that you just need to change the WordPress and Site URL. However when moving from localhost to the domain name url on the same server I had to manually update links as well. Therefore will this also have to be done if moving to a different server?

    Thanks

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