FE login 1.3.2.1

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

sorry, guess at this point you are right.
backend would be for publishers who aren't admins.

as far as I'm concerned with, 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...
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Jensensen wrote:sorry, guess at this point you are right.
backend would be for publishers who aren't admins.
You almost scared me :wink:
Glad you have the same understanding as me/us
regarding the frontend login mechanism.
Otherwise, there would be no need for this.
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...
Exactly ! :wink:
And this is what I am striving for now...

I guess only Oliver will be able to shread some light on this...

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

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:

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 | phpwcms Developer | GitHub | LinkedIn | Систрон
Nordlicht
Posts: 160
Joined: Wed 12. Apr 2006, 08:16
Location: Germany, near Hamburg
Contact:

Post by Nordlicht »

Is or will it be possible to give certain user access to special sites?

E.g. : User A and User B have access to site 0701
and User C to G have access to site 0702
and User H has access to site 0701, 0702 and 0703
ShyGuy
Posts: 158
Joined: Sat 11. Nov 2006, 15:27
Location: DE-Hannover
Contact:

Post by ShyGuy »

I think, what 'Nordlicht' wrote is what 90% of us were waiting for...



---
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

why do you not read carefully what I write! It's not possible at the moment! I have told this very often.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
macangelo
Posts: 756
Joined: Sat 29. Nov 2003, 14:19
Location: Düsseldorf
Contact:

Post by macangelo »

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?

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//-->
Thanks a lot
macangelo
Webdesign from Düsseldorf - made with phpwcms (most of it):
http://eyelikeit.com/index.php?de_beispiele-webdesign
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

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.

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//-->
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
wireless
Posts: 138
Joined: Sun 24. Oct 2004, 04:35
Location: Houston, Texas

FE Registration

Post by wireless »

Is there a registration form for FE?
User avatar
Oliver Georgi
Site Admin
Posts: 9900
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

No, not yet. Coming within next days (or weeks).

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

This FE login is really starting off very cool :D
claus
TI&OSM
Posts: 37
Joined: Tue 27. Feb 2007, 09:30
Location: The Hague, The Netherlands

Post by TI&OSM »

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]
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

Hi Robert,

to the second part of your question:
right now "member login" is rather easy.

First you [x]
Last edited by Jensensen on Sat 20. Sep 2008, 16:54, edited 2 times in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

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
ImagePackging design,labels, catalogs,postcards,
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

registration isn't finshed yet - as far as I know...
Post Reply