[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4758: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4760: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4761: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3893)
phplist forums • View topic - subscribe page not checking if user already exists
Page 1 of 1

subscribe page not checking if user already exists

PostPosted: 2:25am, Tue 21 Apr, 2009
by jsp254
on my subscribe page it's not checking if the user already exists. instead, if i enter the info again, it updates the user.

what gives.

if i subscribe with this info:
name(at)domain.com - john - 90210 (required fields in my case)
then check the email and complete the subscription, in the users list i see this:
name(at)domain.com - john - 90210


now if i log out from the admin section and go to the subscribe page again and enter this info:
name(at)domain.com - roger - 51515
i should get a message saying the user already exists and see this if i check the users:
name(at)domain.com - john - 90210
but i'm not.

trying to resubscribe while the users already exists simply updates the existing users info. that's a potential liability waiting to happen.

if i went to the subscribe page and entered:
name(at)domain.com - imagoofyfoker - 69696
it would change the user to the above info.

that's is a good way to start problems!!!!



anyone else seen this yet

Re: subscribe page not checking if user already exists

PostPosted: 10:17am, Tue 21 Apr, 2009
by Diar
Read something about it yesterday, can't be bothered to find the forum post now.

Basically the response that person was is something along the lines of:

Phplist does this so users are able to update their preferences, if you don't want the email field there, edit the phpList code so it attaches a UID to the preferences link and takes away the email entry field.

Like I said, I can't be bothered to find the forum post, but it was something like that, posted by one of the more experienced users. (If I remember correctly, it was H2B2 posting it ^^)

Re: subscribe page not checking if user already exists

PostPosted: 2:36pm, Tue 21 Apr, 2009
by jsp254
no. your missing my point. i'm not talking about the update page. i mean on the "register here for the newsletter" page.
the initial subscribe page: .../?p=subscribe&id=1

say a dad has registered with their family email address. he forgot to tell mom and she doesnt know. 4 days later, mom tries to register!!!

when she tries, it is supposed to pop up a message saying that email already exists, or already in database, or a similar message.

it's not doing that.

so when mom completes the form, it changes all of the information in the database to what ever she put in.

so next week when dad gets his newsletter, i'm refering to him as nancy or judy!!!! see the problem?

Re: subscribe page not checking if user already exists

PostPosted: 2:45pm, Tue 21 Apr, 2009
by Diar
I didn't miss your point =]

I just wrote my explanation poorly.
In the other post they were actually talking about the subscription page aswell.

[Edit:] For some reason I remembered it wrong, too much info the past few weeks probably, constantly reading the forums is a bad thing :roll:

Anyways, here's the post I saw it on:
viewtopic.php?p=37424

[Edit2:] Might aswell include another link to a post, might be somewhat related to your problem aswell. :mrgreen:
viewtopic.php?p=39299

Re: subscribe page not checking if user already exists

PostPosted: 4:09pm, Tue 21 Apr, 2009
by CS2

Re: subscribe page not checking if user already exists

PostPosted: 8:46pm, Tue 21 Apr, 2009
by jsp254
OUTSTANDING!!!! that is what i needed. i looked at that section of the code over and over. the portion about the password threw me for a flip. i figured that was an area i need not mess with.

btw.... what is the area for the password below where i inserted this code? is this another option for users that i can assign, an area for future development, or something old and just not removed, or referenced from the admin section?

Re: subscribe page not checking if user already exists

PostPosted: 8:55pm, Tue 21 Apr, 2009
by CS2
There's a setting in the config.php where you can require users to enter a password and login in order to change their preferences or unsubscribe. If that setting is enabled and they enter an email in the subscribe page that's already in the database, it will require them to login.

Re: subscribe page not checking if user already exists

PostPosted: 3:47pm, Fri 08 May, 2009
by amk

Re: subscribe page not checking if user already exists

PostPosted: 9:30pm, Sun 05 Jul, 2009
by AppleJack
Thanks CS2. I'm using this mod and think it will work pretty well in most cases, however it may cause some confusion to a small fraction of users. A situation could occur when a user who does not know he is on the blacklist tries to resubscribe, because he will incorrectly receive the message that says his email address already exists and that he must use his preferences page to make changes. A better message would say he is on the Blacklist.

Ideally, I think a user on the Blacklist should get a message that says "that email address is on the Blacklist," and a user not on the Blacklist should get the message that says "that email address already exists, please use your preferences panel if you want to make changes."

--Hope this is helpful.

Re: subscribe page not checking if user already exists

PostPosted: 9:48am, Sun 20 Sep, 2009
by endjo
Great solution CS2, Thanks a lot. Could You please tell me if there is some way to make the text A user with that email already exists. in RED color?

Re: subscribe page not checking if user already exists

PostPosted: 2:05am, Tue 02 Nov, 2010
by H2B2