Widget: PHPlist subscribe to newsletter
There was some discussion about phplist intergration into vBulletin 4.x the first one was a full intergration of PHPList into vBulletin but it never made it.
This widget makes it posible to subscribe to the PHPList system without linking to it. At the moment you still transfer to the PHPList system after sign-up this is normal behavior of the system. To make the Widget do the following: 01. Create New Widget 02. Widget Type = Static HTML 03. Title = <your own choice> 04. Description = <your own choice> 05. Save 06. Configure the new widget 07. Copy and Paste code here below Code:
<script language="Javascript" type="text/javascript"> var fieldstocheck = new Array(); fieldnames = new Array(); function checkform() { for (i=0;i<fieldstocheck.length;i++) { if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") { alert("Please enter your "+fieldnames[i]); eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()"); return false; } } return true; } function addFieldToCheck(value,name) { fieldstocheck[fieldstocheck.length] = value; fieldnames[fieldnames.length] = name; } </script> <form method="post" action="http://www.XXXXXXXXXXX.XXX/maillist/?p=subscribe" name="subscribeform">Email:<br> <input type="text" name="email" value = "Email Address" size="50"><br> <script language="Javascript" type="text/javascript">addFieldToCheck("email","Email Address");</script> <input type="hidden" name="list[X]" value="signup" /> <center><input type="submit" name="subscribe" value="Subscribe" onClick="return checkform();"> </center> </form> 09. Change the "name="list[X]" line where X is is the number of the mailing list. 10. Login to your PHPList admin section 11. Go to configure 12. The following line "if there is only one visible list, should it be hidden in the page and automatically subscribe users who sign up (0/1)" must be TRUE 13. Go to subscribe pages 14. Edit "HTML Email choice" set it to Don't offer choice you can choose HTML or TEXT 15. Place the widget on the frontpage trough the Layout Manager 16. Done Limits of this widget: There are a few limits one big advantage is that you can only have one PHPList where you make contact to. The other is that you need to either make the choice of TEXT or HTML for the people atm they can't choose. The major drawback is that email is not verifyt by a second email adress to type in. Its only a widget but the code works everywhere that has HTML enabled. The normal workings of the PHPList like sending a email for control is still working with this system. Download No files for download. |