Loading

Multiple Subscribe Script

NAME Multiple Subscribe

Description

Multiple Subscribe allows a user to subscribe to multiple mailing lists, at once.

Obtaining The Extension

Multiple Subscribe is located in the, dada/extensions directory of the Dada Mail distribution, under the name: multiple_subscribe.cgi

Installation

This extension can be installed during a Dada Mail install/upgrade, using the included installer that comes with Dada Mail. Under, Plugins/Extensions, check, Multiple Subscribe.

Manual Installation

#1 Change the permissions of the, multiple_subscribe.cgi script to, "755"

Find the multiple_subscribe.cgi script in your dada/extensions directory. Change its permissions to, 755

#2 Configure your outside config file (.dada_config)

You'll most likely want to edit your outside config file (.dada_config) so that it shows Multiple Subscribe in the left-hand menu, under the, Extensions heading.

First, see if the following lines are present in your .dada_config file:

 # start cut for list control panel menu
 =cut

 =cut
 # end cut for list control panel menu

If they are, remove them.

Then, find these lines:

        #                                       {
        #                                       -Title      => 'Multiple Subscribe',
        #                                       -Title_URL  => $EXT_URL."/multiple_subscribe.cgi",
        #                                       -Function   => 'multiple_subscribe',
        #                                       -Activated  => 1,
        #                                       },

Uncomment the lines, by taking off the, "#"'s:

                                                {
                                                -Title      => 'Multiple Subscribe',
                                                -Title_URL  => $EXT_URL."/multiple_subscribe.cgi",
                                                -Function   => 'multiple_subscribe',
                                                -Activated  => 1,
                                                },

Save your .dada_config file.

You can now log into your List Control Panel and under the, Extensions heading you should now see a link entitled, "Multiple Subscribe". Clicking that link will take you to this extension.

Making an HTML form

This script takes three different arguments; list, s and email. You will have to make an HTML form that will supply this script with these three arguments:

        <form action="http://example.com/cgi-bin/dada/extensions/multiple_subscribe.cgi" method="post"> 
         <p>Lists:</p> 
          <input type="checkbox" name="list" value="first_list" /> My first list<br/>
          <input type="checkbox" name="list" value="second_list" /> My second list<br/>
          <input type="checkbox" name="list" value="third_list" /> My third list<br/>
         <p>Your email:<br /> 
          <input type="text" name="email" />
         </p>
         <p>
         <input type="checkbox" name="flavor" value="s"> Subscribe!<br /> 
         </p>
         <p>
         <input type="submit" value="Subscribe Me" /> 
         </p>
        </form> 

You can also view the source of the initial screen of multiple_subscribe.cgi and copy and paste the form it creates, then make any changes you would like to the HTML source.

This script also takes an optional argument, redirect_url that you may set to any URL where you'd like this script to redirect, once it's done:

        <input type='hidden' name='redirect_url' value='http://mysite.com/thanks.html'>

DEBUGGING

This script has one variable on top of the script, called $Debug. You may set this variable to '1' to gain a better insight on what exactly is happening behind the curtains.

COPYRIGHT

Copyright (c) 1999 - 2017 Justin Simoni All rights reserved.

To contact info, please see:

http://dadamailproject.com/contact/

All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


Dada Mail Project

Download

Installation

Support