Author Topic: add to another list rules issue  (Read 2000 times)

richardwing

  • Posts: 39
    • View Profile
add to another list rules issue
« on: January 21, 2008, 05:42:10 am »
Can you tell me how I can modify the script so that when a user joins a list and I have the rule to add them to other lists it will not add them until they have confirmed to the first list?

Thanks,
Richard Wing
Richard Wing

"Give a man a fish, feed him for a day. Teach a man to fish and you can sell him all kinds of fishing equiptment!" ;)

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
add to another list rules issue
« Reply #1 on: January 22, 2008, 08:25:28 am »
Hi Richard,

I can only think of one way to do this and that is with the included xtra/signup-xtra.php script.  Copy this file to your main ListMail folder and add some code such as:
Code: [Select]
if($list=='1'){
 $url = "http://example.com/mail/signup.php?list=2&email=" .urlencode($email)."&fname=" .urlencode($fname)."&lname=" .urlencode($lname);
   $lmp = fopen($url,'r');
   fclose($lmp);
}


Reference: A simpler PHP insertion script

When the user signs up for the first list it will automatically add them to the second list upon confirmation.  Signup-xtra.php commands are always optional when adding users manually.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting