Newsletter subscription and user registration Options
Scott the God
Posted: Tuesday, October 28, 2008 10:26:36 AM

Rank: Devotee

Joined: 10/16/2008
Posts: 64
Location: Spain
Hey guys and girls,

I've been wondering how to do a certain thing.

I have a user module where users can register them selves. However I also want to have a newsletter module where users can subscribe and unsubscribe themselves. Furthermore I would like to be able to ban users if in case I need to and of course be able to add custom properties.

Okay now, I have run into an issue here. I cannot create a user for the users and a user for the newsletter because it will come up and tell me that a user with that user name and/or email has already been registered. So now I have to forms which works independently but not together.

So what am I to do I have been asking myself now. I created a user control which first tries to get the user by email (had to let the user name go because I couldn't figure it out otherwise), anyways if it finds the user name using the email then it has to look for the banned group on the user - if so just quit - if not continue to add the user to the groups that I specified in my macro. If it does not find the user by email the simply create the user. I thought of it that way because I would need a way for the user to register both for newsletter and for a user area. The problem is that if the user tries to register more that once it will return with a confirmation that the user was created and not that the user already exists. I mean this turns my head quite frankly A LOT :D

I know not if this is the most optimal way to do it. Do you have any ideas.

I am passing the following to my user control:
BlockedGroup (string)
SelectedMemberType (string)
MemberGroups (string)
RedirectAfterRegistering (bool)
RedirectPage (contentTree)

(fair enough I could choose to say RedirectPageError and RedirectPageSuccess and then if none selected then just skip the redirecting)

So that just about it. If you need more info please just notify.

Thank you all in advance.

Scott
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.