FE login 1.3.2.1
You almost scared meJensensen wrote:sorry, guess at this point you are right.
backend would be for publishers who aren't admins.
Glad you have the same understanding as me/us
regarding the frontend login mechanism.
Otherwise, there would be no need for this.
Exactly !Jensensen wrote:I'd try to grant access only to/as FE user and once they are logged in, the hidden structre level/pages should appear.
this is the way I understand the login panel...
And this is what I am striving for now...
I guess only Oliver will be able to shread some light on this...
Cheers,
Yves
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
To correct login check against "frontend" marked user in backend user administration do this small change:
Open front.func.inc.php and change line 2981 to:
Other points!!!
FE Login URL is NOT the redirect link AFTER login. This is where users trying to open secured structures are redirected too - so this normally is the page contais login form.
As I told this is just a very simple solution - not the final FE solution. Put your links to LOGIN_IS section of fe_login template.
Oliver
Open front.func.inc.php and change line 2981 to:
Code: Select all
$sql .= "usr_aktiv=1 AND usr_fe IN (0,2) LIMIT 1";
Other points!!!
FE Login URL is NOT the redirect link AFTER login. This is where users trying to open secured structures are redirected too - so this normally is the page contais login form.
As I told this is just a very simple solution - not the final FE solution. Put your links to LOGIN_IS section of fe_login template.
Oliver
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Hi all
the FE login works - thanks everybody for clarifying.
What I don't find out yet is how to redirect a user to a specific page after the login was successful - e.g. to "{SITE}index.php?aid=287"
Where and how in the template code would I have to put it?
Thanks a lot
macangelo
the FE login works - thanks everybody for clarifying.
What I don't find out yet is how to redirect a user to a specific page after the login was successful - e.g. to "{SITE}index.php?aid=287"
Where and how in the template code would I have to put it?
Code: Select all
<!--LOGIN_IS_START//-->
<div class="feLoggedIn">
<h3>Nice to see you again.</h3>
<p>You are logged in under {LOGIN}</p>
<form action="{FORM_TARGET}" method="post" name="feLoginForm" id="feLoginForm">
<p class="button">
<input type="submit" value="Logout" name="feLogout" id="feLogout" />
</p>
</form>
</div>
<!--LOGIN_IS_END//-->
macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
http://eyelikeit.com/index.php?de_beispiele-webdesign
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
This is not recommend at the moment!!!! And there is a simple reason for it!
As I always told - this is just step one of "frontend" permissions. For me redirecting after login makes no sense. I recommend to put links to such access restricted content inside template section "LOGIN_IS". Then there you can also set some javascript based redirection if necessary.
As I always told - this is just step one of "frontend" permissions. For me redirecting after login makes no sense. I recommend to put links to such access restricted content inside template section "LOGIN_IS". Then there you can also set some javascript based redirection if necessary.
Code: Select all
<!--LOGIN_IS_START//-->
<div class="feLoggedIn">
<h3>Nice to see you again.</h3>
<p>You are logged in under {LOGIN}</p>
<p>Access restricted section now: <a href="index.php?restricted">Members only</a></p>
<script language="javascript" type="text/javascript">
<!--
// OPTIONAL IF YOU STILL WANT TO HAVE
// AUTO-REDIRECT AFTER LOGIN
window.location.href='index.php?restricted';
//-->
</script>
<form action="{FORM_TARGET}" method="post" name="feLoginForm" id="feLoginForm">
<p class="button">
<input type="submit" value="Logout" name="feLogout" id="feLogout" />
</p>
</form>
</div>
<!--LOGIN_IS_END//-->
FE Registration
Is there a registration form for FE?
- Oliver Georgi
- Site Admin
- Posts: 9903
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Hello everybody,
I read this thread and I must say it's not quit clear to me.
So I don't understand the difference between the following to user databases;
(you can select these in the Content Part frontend login)
validate login against:
• user profile database
• backend user database
And where can you define them?
Further when you are logged in how can I show the restricted sections?
I really gave my best to understand this in this thread, but without succes.
And how do you define a (article?, content part?) as restricted?
I see I'm not the only one struggling with this so maybe there is someone
who want to give his/her best shot to explain this to me (us).
Many thanks in advance… ; )
Robert [TI&OSM]
I read this thread and I must say it's not quit clear to me.
So I don't understand the difference between the following to user databases;
(you can select these in the Content Part frontend login)
validate login against:
• user profile database
• backend user database
And where can you define them?
Further when you are logged in how can I show the restricted sections?
I really gave my best to understand this in this thread, but without succes.
And how do you define a (article?, content part?) as restricted?
I see I'm not the only one struggling with this so maybe there is someone
who want to give his/her best shot to explain this to me (us).
Many thanks in advance… ; )
Robert [TI&OSM]
Pls I try to setup the fe login but I don't know how to do it, I have add the content part for FE I have try to register but is not leting me ...and the register form is strange and to long and I don't understand what is there anyway, how can I change the register form ...or better is somebody that can guide me how to set the FE.
Thanks
Thanks
Packging design,labels, catalogs,postcards,