Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Groups Wizard |Cancel button?


  • angrywarrior
    Participant

    @angrywarrior

    Welp pretty much as it says;
    Is there a way to add a “cancel” button to the group creation wizard. If a end-user regrets his/her decision to create group then the group has been created anyway. So a potential bloat of the system which loads of unfinished grops can be prevented if there only was a “cancel” button in each step of the wizard.

    Thanks a lot in advance! 😉

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

  • leog371
    Participant

    @leog371

    This might get you started in the right direction.

    <form action="blahblahblah" method="post or get">
    <input type="submit" name="submitted" value="cancel">
    <input type="submit" name="submitted" value="don't cancel">
    </form>
    if ($_GET['submitted'] == "cancel")
    {
        send_header("Location: page.php");
    }
    ...

    leog371
    Participant

    @leog371

    Or maybe something like this

    <form name="form" method="post" action="process or whatever here.php">
    <input type="submit" name="submit" value="submit" />
    <input type="button" name="cancel" value="cancel" onClick="window.location='http://yoursite.com/index.php';" />
    </form>

    angrywarrior
    Participant

    @angrywarrior

    Thanks guys, so where/which file would you apply this code?
    In the create.php file?


    leog371
    Participant

    @leog371

    On the template file that displays the create form on the front end


    angrywarrior
    Participant

    @angrywarrior

    Right, thank you @leog371! 🙂


    pysmple
    Participant

    @pysmple

    Hey,
    I’m new to web design and even newer to coding; can anyone provide step by step to add this cancel button? Thanks.
    Also, after step one, the group is added to the DB; will the cancel button remove it as well?


    angrywarrior
    Participant

    @angrywarrior

    @imath reporting in this person or bot(?)

    @lucydevid = Spammer

    See the post above..

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar