Home Forums Newsletter Plugin Support Custom lists

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30557
    Anonymous
    Inactive

    Hello, i´m trying to add a second list – but i don´t get it done. When i subscribe, only the “list_1” get´s activated. I added the following code to “form 1”

    <script type="text/javascript">
    //<![CDATA[
    if (typeof newsletter_check !== "function") {
    window.newsletter_check = function (f) {
        var re = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/;
        if (!re.test(f.elements["ne"].value)) {
            alert("The email is not correct");
            return false;
        }
        for (var i=1; i<20; i++) {
        if (f.elements["np" + i] && f.elements["np" + i].required && f.elements["np" + i].value == "") {
            alert("");
            return false;
        }
        }
        if (f.elements["ny"] && !f.elements["ny"].checked) {
            alert("You must accept the privacy statement");
            return false;
        }
        return true;
    }
    }
    //]]>
    </script>
    
    <div class="tnp tnp-subscription">
    <form method="post" action="http://www.example.de/?na=s" onsubmit="return newsletter_check(this)">
    
    <table cellspacing="0" cellpadding="3" border="0">
    
    <!-- email -->
    <tr>
    	<th>Email</th>
    	<td align="left"><input class="tnp-email" type="email" name="ne" size="30" required></td>
    </tr>
    
    <tr>
    	<td colspan="2" class="tnp-td-submit">
    		<input class="tnp-submit" type="submit" value="Subscribe"/>
    	</td>
    </tr>
    
    </table>
    <input type="hidden" name="nl[]" value="3">
    </form>
    </div>
    #30560
    Stefano
    Keymaster

    Is the list 3 set as public? If not it will be skipped otherwise anyone would be able to add himself on every possible list.

    Stefano.

    #30633
    Anonymous
    Inactive

    No, i want to have 2 different lists – one for the “fans” and one list only for “djs” – is it possible?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.