Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 10-18-2006 16:56:03

cnyservices
Member
From: Syracuse, NY
Registered: 12-21-2005
Posts: 47
Website

Mail list simplification

My customer wants to remove the required name fields from the email list signup, is there a way to do this??? Ideas are very much appreciated.
Dave


David M. Huntington
CNY Computer Services
wwwcnyservices.com

Offline

 

#2 10-18-2006 18:07:16

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Mail list simplification

That should be possible.  There are two seperate parts to the modification.

1. To remove the appearance of the fields or edit them to remove the 'required' notation, you'll need to go into the CCP admin, under Manage HTML Pages & Elements -> Manage HTML Pages (System).  Find the mailing list elements and change the HTML to your taste.

2. To make the system accept the form without the name fields, you'll need to edit cgi-bin/library/modules/ste_mail.pl.  If you're unsure about editing PERL files, do some forum searches for tips.  But the jist of it is to use a plain text editor and be sure to FTP PERL files in ASCII mode.  In that file, you'll find 3 occurances of:

if ($fd_tracking_firstname eq "" || $fd_tracking_lastname eq "" || $fd_tracking_email eq "") {

You'll need to change each of those occurances to remove the first and last name, like this:

if ($fd_tracking_email eq "") {

I believe that's all it will take to make it work without the first and last names.  But in the interest of full disclosure, I haven't tested this modification, so be sure to back up your original files before changing them, test things thoroughly to make sure it all works, and use at your own risk.

As an alternate approach, I believe you could leave the PERL script alone and just do the first step.  But instead of removing the name fields, turn them into hidden fields with some innocuous value, like:

<INPUT TYPE="HIDDEN" NAME="tracking_firstname" VALUE="Valued">
<INPUT TYPE="HIDDEN" NAME="tracking_lastname" VALUE="Customer">

That way, the script will be tricked into thinking it got a first and last name, so it will take the input (as long as the customer enters an email address of course).  The script should work fine with no modifications that way.  The only potential downside is that the Valued Customer will be stored in the user's cookie, so if they go to another page with name fields, like contact us or checkout, the fields will be pre-populated with the names you used in the hidden fields.  The customer can still change them of course - it just might look a little odd when the checkout comes up with the first name already completed as Valued and the last name already completed as Customer.  One or the other of these methods should work for you though, so you have a couple things to play with.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#3 10-25-2006 16:47:15

cnyservices
Member
From: Syracuse, NY
Registered: 12-21-2005
Posts: 47
Website

Re: Mail list simplification

Thanks Racheal, this is good stuff.
Dave


David M. Huntington
CNY Computer Services
wwwcnyservices.com

Offline

 

Board footer