vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - Widget: PHPlist subscribe to newsletter (https://vborg.vbsupport.ru/showthread.php?t=233657)

we_are_borg 01-19-2010 10:00 PM

Widget: PHPlist subscribe to newsletter
 
1 Attachment(s)
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>

08. Change the "http://www.XXXXXXXXXXX.XXX/maillist/?p=subscribe" line to what is the url and directory to your PHPList.
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.

we_are_borg 01-20-2010 05:54 PM

To Do:

1. Let people give a choice for HTML or Tekst
2. Spam prevention
3. Multiple newsletters support.

Dr.osamA 01-20-2010 06:20 PM

thanx man

BRB

AzzidReign 01-21-2010 05:47 AM

Interesting...I'm using vbgeeks' newsletter script but I'm going to look into phplist.

Charlie98902 01-21-2010 09:55 AM

So this sends out emails to what's new on the forum like posts and threads? Well to those that subscribe that is?

we_are_borg 01-21-2010 12:34 PM

Quote:

Originally Posted by Charlie98902 (Post 1962184)
So this sends out emails to what's new on the forum like posts and threads? Well to those that subscribe that is?

No its does not PHPList does not take topics or anything else from the forum, you need to create that all by your self. The one that AzzidReign said vBGeek that one does support what you say. But the build in and as far as i know the vBGeek one does npot support bounces and that is a must to prevent negative points in other mail systems.

mathias 09-05-2010 11:44 PM

so does this only adds new users or my whole member list?


All times are GMT. The time now is 03:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete