Frontend User Management Module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
sublime5o
New Member
New Member
Posts: 8
Joined: Tue Mar 30, 2010 3:18 am

Frontend User Management Module

Post by sublime5o »

I have the Frontend User Management Module installed and all configured.  The problem I am having is that i do not want the user to have to put in an username.  I want the page to be protected by just a password.  Is there any way to do this?  If this doesnt work, is there any other way to put the username in the input box for the login so the user doesnt have to enter it?

I am using CMSMS 1.7 and Frontend User Mangement 1.8.5

Thanks.
sublime5o
New Member
New Member
Posts: 8
Joined: Tue Mar 30, 2010 3:18 am

Re: Frontend User Management Module

Post by sublime5o »

This is the code it is using for the Login Template for the username field..

{$prompt_username}: {$input_username}
kendo451

Re: Frontend User Management Module

Post by kendo451 »

You are using the wrong application to solve your problem.

If you only want a password to display a page, but no username, then do not use FrontEndUsers.

A few ways to achieve what you want:

1. Use .htaccess to create a password protection on a directory or page.  Search the web.

2. Use a password protect script as a User Defined Tag in CMSMS.  See this post:
http://forum.cmsmadesimple.org/index.ph ... 651.0;wap2

3. Use Formbuilder module.  Ask the password in the Form page, and then if the password is correct, display the page as the result template.
sublime5o
New Member
New Member
Posts: 8
Joined: Tue Mar 30, 2010 3:18 am

Re: Frontend User Management Module

Post by sublime5o »

Thanks for your response, but I would really like to stick with Front End User Module because we are hoping to convert them over, and there may be many users/passes to come.  For now I just need to figure out how to have no username or how to insert the username so they do not have to enter it.  Any other suggestions?
kendo451

Re: Frontend User Management Module

Post by kendo451 »

Obviously, the program cannot determine who the user is before they have logged in.

However, if you are emailing them a link, you can pass the username in the URL.

For example, if you send an email to your list of people who are already registered this would work:
http://yoursite.com/index.php?page=login&un=foo
With pretty URL it would be:
http://yoursite.com/login.htm?un=foo

Then on your login page the SMARTY parameter $smarty.get.un will contain the username, which you could insert into the username field using Javascript.

Another way is to use a persistent cookie to store the username after they register or login for the first time.
kendo451

Use email as username

Post by kendo451 »

Maybe the easiest solution for you would be to use the user's email as the username (this is an option in FEU).  They won't forget their own email address.

But you definitely cannot get rid of the username with FEU.  It simply won't work without it.
sublime5o
New Member
New Member
Posts: 8
Joined: Tue Mar 30, 2010 3:18 am

Re: Frontend User Management Module

Post by sublime5o »

Thanks again for all your great ideas.

I am not trying to not have a username to put in. There will only be one username and password for everyone now.  I just need to find out how to put the username in the input box for the username field so they do not have to enter it.  Does this make sense?
kendo451

Re: Frontend User Management Module

Post by kendo451 »

Use jQuery to set the value of Username field and make it read only (disabled).
sublime5o
New Member
New Member
Posts: 8
Joined: Tue Mar 30, 2010 3:18 am

Re: Frontend User Management Module

Post by sublime5o »

Since there is only going to be one username, I will not need to use jquery at all.  I am just not sure how to get the username in the input box, see below.

{$prompt_username}: {$input_username}

I would like the smarty tag {$input_username} to be just an input box with the username static within it..  Thanks
kendo451

Re: Frontend User Management Module

Post by kendo451 »

Three ways you could do that:

1. Hack the code for the FrontEndUsers module - not recommended.  When you update it will break your hack.

2. Use JQuery to insert the value into the field as the page loads.

3. Figure out what the username input id is, delete it from the FEU template, and then insert a field of type=hidden with the same id name and make value="username".  This will include the field in the form, but the user won't see it.
Post Reply

Return to “Modules/Add-Ons”