Page 1 of 1

Name

PostPosted: Mon Mar 12, 2007 1:46 pm
by Geoserv
How can I get it so I can add a field for the subscribers name? Right now I only know the email address, I need to be able to see the name.

I tried adding the field to the form on the website and it works, but I only receive people email address.

Geoserv

PostPosted: Mon Mar 12, 2007 2:15 pm
by Admin-BS
You can do this with Subscriber Pro. It is built in on that script. The basic version only handles email addresses.

PostPosted: Tue Mar 13, 2007 5:38 am
by Geoserv
I installed the Pro version, but I don't see where to activate this function, how do I do it?

Geoserv.

PostPosted: Tue Mar 13, 2007 11:38 am
by Admin-BS
It is built in and doesn't require any sort of activation. All you need to do is make sure your subscription form has the "name" field in it as shown here: http://npscripts.com/subscriber-pro/man ... mtags.html

PostPosted: Fri Mar 23, 2007 10:48 am
by Geoserv
ok, I have my form setup, I did a test and it worked, got the activate code etc...

Today I tried to test it again, not sure why, and I discover it isn't working. I get a blank screen and the test info I put in doesn't get saved.

So I downloaded the form_generator installed the plugin but when I fill out all the info asked for, I get a blank screen and no code.

Anyone able to help?

Geoserv

PostPosted: Fri Mar 23, 2007 11:55 am
by Admin-BS
First off, make sure you are using the form generator plugin within the subscriber.cgi script, not the admin.cgi script.

I'm going to assume your form is correct since you said it worked before (make sure that if you're using a hidden field for naming the list that the name of the field is "lists" and not just "list": <input type="hidden" name="lists" value="my_list">). If you're getting a blank screen, try uncommenting the "use CGI::Carp" line near the top of subscriber.cgi and see if that doesn't give you a more useful error message.

PostPosted: Tue Mar 27, 2007 5:05 am
by Geoserv
Heres the error:

Code: Select all
Can't locate /vars.txt in @INC (@INC contains: /usr/local/nf/lib/perl5/5.8.3/i386-freebsd /usr/local/nf/lib/perl5/5.8.3 /usr/local/nf/lib/perl5/site_perl/5.8.3/i386-freebsd /usr/local/nf/lib/perl5/site_perl/5.8.3 /usr/local/nf/lib/perl5/site_perl .) at subscriber.cgi line 84.



Heres the form code I am using:

Code: Select all
<form action="http://www.apnaonline.ca/cgi-bin/sub/subscriber.cgi" method="post"
        class="newslab">
          <p><input type="hidden" name="lists" value="my_list" /></p>
          <table summary="Use this form to subscribe/unsubscribe to our master list.">
            <tr>
              <th id="header20"><label for="name">Name:</label></th>
              <td headers="header20"><input type="text" size="25" name="name" id="name"
              tabindex="1" value="" /></td>
            </tr>
            <tr>
              <th id="header21"><label for="address">Email:</label></th>
              <td headers="header21"><input type="text" size="25" name="address"
              id="address" tabindex="2" value="" /></td>
            </tr>
            <tr>
              <th id="header22"><label for="subscribe">Subscribe</label></th>
              <td headers="header22"><input type="radio" name="action"
              value="Subscribe checked" id="subscribe" /></td>
            </tr>
            <tr>
              <th id="header23"><label for="unsubscribe">Unsubscribe</label></th>
              <td headers="header23"><input type="radio" name="action"
              value="Unsubscribe" id="unsubscribe" /></td>
            </tr>
            <tr>
              <td><input type="submit" value="Submit" class="newslabbut" /></td>
            </tr>
          </table>
        </form>


Geoserv

PostPosted: Tue Mar 27, 2007 3:49 pm
by Admin-BS
Try changing your subscribe action radio button to:
Code: Select all
<input type="radio" name="action" value="subscribe" id="subscribe" />

...and the unsubscribe radio button to:
Code: Select all
<input type="radio" name="action" value="unsubscribe2" id="unsubscribe" />