<< Start < Prev 1 2 Next > End >>
Re:"No Overwrite" for Subscriber Importing and Adding - 2008/05/21 21:43 Hello afatac,

What do you mean by "skipped the duplicate email address" ?

I ask that because if the user exists, nothing is done.
*** Please, read our official documentation before posting. Thank you ***

Best regards,
Jonathan
  | | To post on the forum you need to sign in.
Re:"No Overwrite" for Subscriber Importing and Adding - 2008/05/21 23:01 Hi Jonathan,

Sorry, I should be more specific.

The action should be skipped is assigning the imported duplicated user to the list.

For example, a user has already unsubscribed from list ABC. During import, this user, with the same email address, is assinged to the list ABC again. However, I did not know that his email address is already exist and he has already unsubscribed.

Hence, after import, the unsubsribed status is overwritten and this user is subscribed to list ABC again. This is the action that should be skipped.
  | | To post on the forum you need to sign in.
Re:"No Overwrite" for Subscriber Importing and Adding - 2008/05/21 23:18 I can give you the solution but we can't implement it because as I said if you import a users list from another website, you can't know which he was subscribed. Anyway!

You just have to move this code :
Code:

 } else {   echo '<br />'.acajoom::printM('red' 'Email already exists: ' $subscriber->email); }



To the end of these lines :
Code:

     if ($erro->ck) {       echo '<br />'.acajoom::printM('green' $values[0] . ': ' _ACA_IMPORT_SUCCESS );     } else {       echo '<br />'.acajoom::printM('blue' $values[0] . ': ' _ACA_PB_QUEUE);     }   } }




You should obtain this :
Code:

       if ($erro->ck) {     echo '<br />'.acajoom::printM('green' $values[0] . ': ' _ACA_IMPORT_SUCCESS );       } else {     echo '<br />'.acajoom::printM('blue' $values[0] . ': ' _ACA_PB_QUEUE);       }     }   } } else {   echo '<br />'.acajoom::printM('red' 'Email already exists: ' $subscriber->email); }





So, by changing this, you will subscribe only the new users.
I didn't tried but I think it works.
*** Please, read our official documentation before posting. Thank you ***

Best regards,
Jonathan
  | | To post on the forum you need to sign in.
Re:"No Overwrite" for Subscriber Importing and Adding - 2008/05/22 14:39 I think my explaination is not very clear, but...

the new code gives me exactly what I want. That is, only subscribe new user.

Thanks!
  | | To post on the forum you need to sign in.
<< Start < Prev 1 2 Next > End >>
Acajoom Acajoom
- - - - - - - - - - - - - - - - - -
Content Statistics
Google Adsense Search
News
Acajoom PRO
Acajoom PRO
€79.95
Add to Cart






Lost Password?
No account yet? Register

Last Posts

Breathtakers