kornikopic
User
 Platinum Boarder
| Posts: 661 |   | Karma: 11
|
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. |