ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => General Help & How-To => Topic started by: ihsreal on February 05, 2007, 12:36:33 pm

Title: Installing with existing registration page
Post by: ihsreal on February 05, 2007, 12:36:33 pm
Is it possible to have the signup script page run using an existing registration page? I'm updating tables in 2 other database when user's register now and would like to have the signup.php script run to update the listmail database at registration as well.
Title: Installing with existing registration page
Post by: ihsreal on February 05, 2007, 01:28:20 pm
Nevermind, I found this:

http://listmailpro.com/forum/index.php?topic=172.0
Title: Installing with existing registration page
Post by: DW on February 05, 2007, 10:24:21 pm
I recommend using this one, instead, it's far easier and also supports the welcome message and list "Additional options".

Regards
Title: Installing with existing registration page
Post by: ihsreal on February 06, 2007, 06:39:44 am
Sorry I don't see a link...
Title: Installing with existing registration page
Post by: DW on February 06, 2007, 07:42:51 am
Try this one :roll: http://listmailpro.com/forum/index.php?topic=1160.0
Title: Installing with existing registration page
Post by: ihsreal on February 06, 2007, 09:46:23 am
Great, that works perfectly!

Is there a field I can add to the URL string to capture the page URL? I thought maybe ?ref= but that didn't seem to work.

Also, if you could speak to me a little bit about the effect of overwrites with your program. I'm not quite sure of the implications between using allowing dups, overwrites, etc.
Title: Installing with existing registration page
Post by: DW on February 07, 2007, 02:25:16 am
Quote
Is there a field I can add to the URL string to capture the page URL? I thought maybe ?ref= but that didn't seem to work.

This is currently not possible but would be with a very simple modification to signup.php.
Look for
Code: [Select]
$refurl = $_SERVER["HTTP_REFERER"]; near line 55 and change it to this:
Code: [Select]
if(!$refurl) $refurl = $_SERVER["HTTP_REFERER"];
Then you can use ?refurl=...

I recommend documenting this custom change as it will be overwritten by updates.
Quote
Also, if you could speak to me a little bit about the effect of overwrites with your program. I'm not quite sure of the implications between using allowing dups, overwrites, etc.

Allow dupes will allow duplicate email addresses on your list and is not really recommended.  The dupe checking when adding users on the User Database page, for example, is not set up to handle this, really.

Overwrite dupes deletes the old record and creates a new one instead of giving an error message on signup.  This would be good if you need the most recent date the user purchased a product, for example.

Ignore dupes is currently not a feature of signup.php but is useful if, for example, you are delivering a web page just for entering ones email address.

All of the signup form options are somewhat prone to abuse so I am thinking to create a feature where you can set up form options right in ListMail.  Each set of options (list #, overwrite/ignore, custom seq #, etc. etc) would be saved with a hard-to-guess ID you would use in your HTML.

Something for the future, anyway. :)  Let me know if I can clarify further...

Regards
Title: Installing with existing registration page
Post by: ihsreal on February 09, 2007, 02:46:00 pm
The listmail database seems to be recording my server ip rather than the users IP. Is that what I want?

If not, can I add that to that string..?ip='$ip'  I have some custom code for determining the users IP.
Title: Installing with existing registration page
Post by: DW on February 09, 2007, 07:21:48 pm
You will have to pass the IP yourself from your script.  Look for this around line 52 of signup.php:
Code: [Select]
$ipaddr = getip();
Change it to this:
Code: [Select]
if($ip) $ipaddr = $ip; else $ipaddr = getip();
You can then use ?ip=

These changes will not be included in the next update because it is somewhat of a security risk.  You might want to "randomize" your variables, ie: ?mycustomip123= instead of ?ip= if you are concerned.

Regards
Title: Installing with existing registration page
Post by: ihsreal on February 11, 2007, 10:30:06 am
One more thing... :D . Using this code, how would I register a user to 2 or more lists?
Title: Installing with existing registration page
Post by: DW on February 11, 2007, 02:42:16 pm
Simply call the code (http://listmailpro.com/forum/index.php?topic=1160.0) twice, changing the "list" variable in the URL the second time around.

Please let me know if I can be of further assistance!

Regards