Announcement

Collapse
No announcement yet.

Re-registration page - hack or template?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Re-registration page - hack or template?

    Hi vB experts!

    I need to duplicate my board's 'signupadult' page to be used for existing members to re-register. Why? The rules have changed since many first registered.

    So, I need existing members to read a duplicate 'signupadult' page that, when they click on 'Agree' it goes to their 'edit profile' page (instead of sign up).

    In addition, I'll need to create a link or button called 're-register' that links to the re-register 'signupadult' page (the duplicate). This same link and page will be used annually when members re-register.

    I've copied the 'signupadult' template and added a custom template called 're-registeradult'. Now I need to know how to point members to it and, once they click agree, how to point it to their user 'edit profile' page.

    Thanks for your advice. I've been searching the forums for about 3 hours to no avail. Maybe I just don't know what I'm looking for?

    Thanks again!
    Thanks,

    DJA

  • #2
    Try just duplicating the template and modifying the form submit code.

    Then, just upload a php file that reads the results of the form submit and redirects.

    Maybe you'll get better results asking this at vbulletin.org?
    :)

    Comment


    • #3
      Right. That's what I needed to determine. Thanks.

      I barely know anything about HTML, let alone PHP, etc. I'm trying, but there's a lot to learn. For instance, I did duplicate the template, but haven't figured out how to or what to write for the submit code.

      And I wouldn't know where to begin to write or upload a PHP file.

      The top of the template reads:
      Code:
      <br>
      <form action="register.php" method="post">
      <input type="hidden" name="s" value="$session[sessionhash]">
      <input type="hidden" name="action" value="editpost">
      <input type="hidden" name="who" value="adult">
      and the bottom reads:
      Code:
      <p align="center"><normalfont>
      	<input type="hidden" name="url" value="$url">
      	<input type="submit" class="bginput" value="Agree">
      	</normalfont></p>
      	</form>
      
      	<form action="index.php" method="get">
      	<input type="hidden" name="s" value="$session[sessionhash]">
      	<p align="center"><normalfont>
      	<input type="submit" class="bginput" value="Cancel">
      	</normalfont></p>
      	</form>
      So, I'm not sure what to replace, BUT I'm willing to learn.

      I tried replacing 'register.php' with 'member.php', and action with 'updateprofile', but I really don't know what I'm doing.

      Do I need a hack instead of a custom template? Or both? And will I need to get the hack at vB.org instead of here?

      Thanks so much. I can't wait to learn how to do all of this stuff.
      BTW - where's a good place to start to learn about PHP, etc.? I'd like to get good at this.
      Thanks,

      DJA

      Comment


      • #4
        Well, you just need to replace action="register.php" with something like action="reregister.php". Then, just create a file called "reregister.php" and put something like this into it:
        PHP Code:
        <? header("Location: http://www.yoursite.com/forum/usercp.php");
        exit;
        ?>
        That's very basic code, and only offers redirection, and nothing else, but that's probably a little start for you.

        The best way to learn PHP is to buy a reference book and a "teach yourself" book, and write a little scripts off the bat, learning as you go.
        :)

        Comment


        • #5
          Thanks so much, ieSecure!

          I'll give it a try.

          At first, I thought I'd be using "member.php" and re-writing something within its code.

          Wish me luck.
          Thanks,

          DJA

          Comment


          • #6
            I'm eiSecure.


            Anyways, all the best of luck in writing your scripts!
            :)

            Comment


            • #7
              OOPS!
              Sorry, ei!

              ei, ei, OH!



              I do appreciate the help!
              Thanks,

              DJA

              Comment

              Loading...
              Working...
              X