We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4466
    • 14 Posts
    hi all first time poster long time modx supporter.
    i have a web site i’m playing with that i want to set up a login in on only some pages (total 2 pages).
    both pages can have the same login.

    so i have been trying to my wits end to try and get webloginpe working. i have it showing the bottons and showing up on the page but i can get it to go any where when one hits login or regester.

    is there any easy one liner code to put it that will only show the page when the code is entered??

    and is there any how to other than that in the Doc folder?

    as for eForms it will mot send :/

    <form action="[~[*id*]~]" enctype="multipart/form-data" method="post">
    <input name="formid" type="hidden" value="ApplicationForm" />
    <fieldset>
    <legend>Application Form</legend>
    <p>
    <label>Email Address</label>
    <input class="field" maxlength="40" name="email" size="40" type="text" />
    </p>
    <p>
    <label>Full Name</label>
    <input class="field" maxlength="40" name="fullname" type="text" />
    </p>
    <p>
    <label>Full address</label>
    <input class="field" maxlength="40" name="address" type="text" />
    </p>
    <p>
    <label>Day Time Phone number</label>
    <input class="field" maxlength="40" name="dayphone" type="text" />
    </p>
    <p>
    <label>Evening Phone Number</label>
    <input class="field" maxlength="40" name="eveningphone" type="text" />
    </p>
    <p>
    <label>Mobile Phone Number</label>
    <input class="field" maxlength="40" name="mobilephonenumber" type="text" />
    </p>
    <p>
    <label>Date Of Birth</label>
    <input class="field" maxlength="40" name="DateOfBirth" type="text" />
    </p>
    <p class="explain">
    <input name="submit" type="submit" value="Submit" />
    </p>
    </fieldset>
      • 12379
      • 460 Posts
      In your webloginPE snippet call you specify the landing page after login with the parameter and page ID: &liHomeId=`24`

      As for eForm - don’t bother. Use WebLoginPE’s guide to setting up a form registration template in the snippet call using the instructions here:

      http://svn.modxcms.com/crucible/browse/~raw,r=37/modx-components/webloginpe/trunk/assets/snippets/webloginpe/docs/index.html

        Mostly harmless.
        • 4466
        • 14 Posts
        thanks smiley

        well the good use is i have eForms working (almost) it will send me emails now tongue

        Weblogin is working as well smiley

        i ended up installing the defult modx install smiley

        ok so i still have some issues.

        modx install is "modx-1.0.3"

        i have here the 2 chunks for eForms.

        ContactForm

        <p class="error">[+validationmessage+]</p>

        <form method="post" action="[~[*id*]~]" id="EmailForm" name="EmailForm">

        <fieldset>
        <h3> Contact Form</h3>

        <input name="formid" type="hidden" value="ContactForm" />

        <label for="cfName">Your Date of Birth:
        <input name="name" id="cfName" class="text" type="text" eform="YDOB::1:" /> </label>

        <label for="cfName">Your name:
        <input name="name" id="cfName" class="text" type="text" eform="Name::2:" /> </label>

        <label for="cfName">Your Address:
        <input name="name" id="cfName" class="text" type="text" eform="Address::3:" /> </label>

        <label for="cfName">Day Time Phone:
        <input name="name" id="cfName" class="text" type="text" eform="DTPhone::4:" /> </label>

        <label for="cfName">Evening Phone:
        <input name="name" id="cfName" class="text" type="text" eform="EPhone::4:" /> </label>

        <label for="cfName">Fax Number:
        <input name="name" id="cfName" class="text" type="text" eform="FNumber::5:" /> </label>

        <label for="cfEmail">Your Email Address:
        <input name="email" id="cfEmail" class="text" type="text" eform="EAddress:email:6" /> </label>

        <label for="cfMessage">Any Other Infomation:
        <textarea name="message" id="cfMessage" rows="4" cols="20" eform="AOInfomation:textarea:7"></textarea>
        </label>


        <label>&nbsp;</label><input type="submit" name="contact" id="cfContact" class="button" value="Send This Message" />
        On Completion of this form you will be emailed a non disclosure agreement and on return of this you will be given a personalise code to access the section of our web site that outlines our offer of the opportunity to establish your very own business as a Licensed Distributor / Applicator of our product.
        </fieldset>

        </form>


        Contact Form Report

        <p>This is a response sent by <b>[+name+]</b> using the Application form on the website. The details of the message follow below:</p>


        <p>Date of Birth: [+YDOB+]</p>
        <p>Name [+ Name:+]</p>
        <p>Address: [+Address+]</p>
        <p>Day Time Phone: [+DTPhone:+]</p>
        <p>Evening Phone: [+EPhone:+]</p>
        <p>Fax Number: [+FNumber:+]</p>
        <p>Email Address: [+EAddress:+]</p>
        <p>Any Other Infomation: [+AOInfomation:+]</p>


        <p>You can use this link to reply: <a href="mailto:[+email+]?subject=RE: [+subject+]">[+email+]</a></p>


        it’s a contact form for a school club smiley




          • 12379
          • 460 Posts
          What exactly is the issue then?
            Mostly harmless.
            • 4466
            • 14 Posts
            sorry i was flat out thinking about the why.... not the what you need tongue sorry embarrassed

            email reply

            This is a response sent by smith using the Application form on the website. The details of the message follow below:

            Date of Birth:

            Name

            Address:

            Day Time Phone:

            Evening Phone:

            Fax Number:

            Email Address:

            Any Other Infomation:




            note none of the data is getting to the email.....
              • 12379
              • 460 Posts
              The input name needs to match the placeholder name, ie:

                    <input name="YDOB" id="cfName" class="text" type="text" eform="YDOB::1:" /> </label>


              Also, the first parameter in the eform tag is a label for validation purpose, so it should be eform="Date of birth::1:"

              Not sure where WebLoginPE came into all this in the end!?
                Mostly harmless.
                • 4466
                • 14 Posts
                they were not the same thing. i wanted to setup 2 pages that had a login and setup one form useing eForm.