Page 1 of 1
Front end User and Self registration (admin approval required mod)
Posted: Fri Nov 10, 2006 9:07 am
by Strongbox
It would be nice if the admin could have a toggle to either allow automatic approval of registered users or require that they be manually approved by the admin on a per group basis. i.e. if I have two groups, group Apple and group Pear and on group apple I set it so that they are automatically approved, but on group Pear I require that they are manually approved by the admin.
This should be a fairly simple piece of code to write for someone... not me, because I can't code anything!

Re: Front end User and Self registration (admin approval required mod)
Posted: Tue Nov 14, 2006 3:55 pm
by calguy1000
you can do this now. Just have two {cms_module module=SelfRegistration} tags in your content somewhere, and change the group for each one. i.e: {cms_module module=SelfRegistration group=auto} and {cms_module module=SelfRegistration group=Pending}
then when people register using the second tag, they'll be placed in the 'pending' group (the group must already exist). and the administrator can just go in and change the group from 'Pending' to 'Member' for all of the members that they want to approve.
Re: Front end User and Self registration (admin approval required mod)
Posted: Tue Nov 14, 2006 9:42 pm
by Strongbox
OK, maybe I am missing something here.
Under frontend management I have created two different groups, however there is not an option to make the group pending or otherwise restrict the signup.
If I register under either group via the selfregistration module they are automatically approved and activated.
What am I missing?
Does there need to be an option in the tag?
{cms_module module=SelfRegistration Group=group1 someoption=?}
Re: Front end User and Self registration (admin approval required mod)
Posted: Tue Nov 14, 2006 10:01 pm
by calguy1000
No the {cms_module module=SelfRegistration group=somegroup} means that the user, once authenticated will be placed as a member of that group. Now, if you have two groups of users, and you want them to see different content, and you want unauthenticated users to see a third content then you can do something like this with the custom content module:
Code: Select all
<h2>Canadian Users Register Here</h2>
{cms_module module=SelfRegistration group=canada}<br/>
<h2>American Users Register Here</h2>
{cms_module module=SelfRegistration group=usa}<br/>
<h2>Login Here</h2>
{cms_module module=FrontEndUsers}<br/>
{cms_module module=CustomContent}
{if customcontent_memberof_canada == 1}
Welcome Canuck
{else}
{if customcontent_memberof_usa == 1}
Welcome American
{else}
You are not authorized to see this content
{/if}
{/if}
Now, if you want say, in this example for the canadian members to not be automatically approved, then use something like:
Code: Select all
<h2>Canadian Users Register Here</h2>
{cms_module module=SelfRegistration group=canada_pending}<br/>
<h2>American Users Register Here</h2>
{cms_module module=SelfRegistration group=usa}<br/>
<h2>Login Here</h2>
{cms_module module=FrontEndUsers}<br/>
{cms_module module=CustomContent}
{if customcontent_memberof_canada == 1}
Welcome Canuck
{else}
{if customcontent_memberof_usa == 1}
Welcome American
{else}
You are not authorized to see this content
{/if}
{/if}
When a user creates an account by filling in the first form (for the canada registration), they will automatically be placed in a group called canada_pending. The administrator could then go and manually change the group memberships of everybody in that group.
Re: Front end User and Self registration (admin approval required mod)
Posted: Tue Nov 14, 2006 10:17 pm
by Strongbox
OK, I see. I hadn't started working with the customcontent module as of yet, but now I see the use it can be put to. BTW, excellent mods! So simple on the front end for us non-programming techies!
This will work very well for what I am doing, now I just need to figure out a way to make a custom module to pull client data into a Client Management System (Lead management system) with assignable queues for different front end users to manage.
i.e.
10 clients sign up on the site {group=client}
I have approved 3 'managers' {group=manager}
The manager logs in and is then shown {group=client} data for filtered clients (i.e. filtered by zip code or state or both) and is able to send emails, change status of client (new lead, sold, closed, etc). Basically make up a whole lead management system that ties together with frontendusers, selfregistration, cmsmailer etc. I don't think that this would be too hard to do and will post a request in the proper forum to HIRE a person to do this.