Frontend Login: Register with fe_user frontend_render script

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Frontend Login: Register with fe_user frontend_render script

Post by swisscheese » Thu 22. Oct 2009, 16:48

Hi all

Would like to have parts that only registered users can see. I set up a registration form with the frontend render script fe_user.php. Basically, all goes well: A user can fill out the register form, a mail is sent to the user and to me with all the information and a hint: Userdata can be shown in the background.

However, in the background user administration, there is no new user. The new user is only generated in the table phpwcms_userdetail, but not in the phpwcms_user. Is there a possibility to edit and activate the users from phpwcms_userdetail in the background?

Thanks, Gerd

User avatar
juergen
Moderator
Posts: 4553
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Frontend Login: Register with fe_user frontend_render script

Post by juergen » Thu 22. Oct 2009, 17:06

Jupp. just Script insert into User DB, own risc, is as I beleive the reason why is not done.

We could do some thinsg together, me as well needs such a tool. Registered automatic, freed by hand to access....

User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Re: Frontend Login: Register with fe_user frontend_render script

Post by swisscheese » Thu 22. Oct 2009, 21:45

Hmm. Putting in the phpwcms_user table is not possible (not enough fields) and not necessary, as a FE-login against the phpwcms_userdetail is possible. But a management of the userdetail table in backend is a no-go without a core hack. So we would have to concentrate on a module. This module could allow administration in the backend or even in the frontend, if a FE-login as a admin user happened. Perhaps it is even possible to activate a registration request with a single click on a link in the mail...

What do you think would be best?

Gerd

User avatar
Jensensen
Posts: 2995
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Frontend Login: Register with fe_user frontend_render script

Post by Jensensen » Fri 23. Oct 2009, 00:59

poor GURM.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.

User avatar
Oliver Georgi
Site Admin
Posts: 9560
Joined: Fri 3. Oct 2003, 22:22
Location: Moscow, Russia
Contact:

Re: Frontend Login: Register with fe_user frontend_render script

Post by Oliver Georgi » Fri 23. Oct 2009, 08:29

Ich würde dringend davon abraten Benutzer auf diesem Weg Benutzer in die Backendbenutzerdatenbank zuzufügen.

Die Lösung ist natürlich sehr customized. Und phpwcms_userdetail ist aber wesentlich sicherer und universell.

Normalerweise nutze ich zum Verwalten ein Modul. Siehe zum Beispiel:
http://www.akcent.de/index.php?partner-cms

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон

User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Re: Frontend Login: Register with fe_user frontend_render script

Post by swisscheese » Fri 23. Oct 2009, 08:38

Thanx for clarification
Oliver Georgi wrote:Normalerweise nutze ich zum Verwalten ein Modul
This sounds interessting!
Gerd

User avatar
juergen
Moderator
Posts: 4553
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Frontend Login: Register with fe_user frontend_render script

Post by juergen » Fri 23. Oct 2009, 09:04

Hmmm,

so this userdetail table is not checked against the Frontend Login as far as I see ... Would be great to have an idea how login might be triggert against userdetail table ?

User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Re: Frontend Login: Register with fe_user frontend_render script

Post by swisscheese » Fri 23. Oct 2009, 09:12

Check the box "Login prüfen gegen Benutzerprofil-Datenbank" in the CP Frontend Login, and you're done. It's all working: online registration, online management, but the management of the userdetail table (e.g. activation of a user) is lacking.

User avatar
juergen
Moderator
Posts: 4553
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: Frontend Login: Register with fe_user frontend_render script

Post by juergen » Fri 23. Oct 2009, 09:31

*Koppklatsch* :lol:

User avatar
update
Moderator
Posts: 6394
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Frontend Login: Register with fe_user frontend_render script

Post by update » Fri 23. Oct 2009, 13:03

aha!
keep me on the running, please! :lol:
It's mostly all about webdesign, logo design, new and old pages refresh, print BUT slowly switching to be supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.

User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Re: Frontend Login: Register with fe_user frontend_render script

Post by StudioZ » Sat 24. Oct 2009, 05:37

Something I would very much like to see added is the "Forgot Password?" feature 8)

Cheers,

Yves
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!

hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: Frontend Login: Register with fe_user frontend_render script

Post by hausmeister » Wed 28. Oct 2009, 13:35

swisscheese wrote:Check the box "Login prüfen gegen Benutzerprofil-Datenbank" in the CP Frontend Login, and you're done. It's all working: online registration, online management, but the management of the userdetail table (e.g. activation of a user) is lacking.
i think a aktivation via phpmyadmin is possible, or am i wrong?
if so, which field i must set to "1" have tried "detail_aktiv" with no success.

cheers
der hausmeister

hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: Frontend Login: Register with fe_user frontend_render script

Post by hausmeister » Wed 28. Oct 2009, 13:42

change this line in fe_user.php:

Code: Select all

'recipient'		=> 'slackero+phpwcms-registration@gmail.com',
to your emailadress and you will get a message, when a new user has filled out the registrationform.

der hausmeister

User avatar
swisscheese
Posts: 138
Joined: Mon 19. Feb 2007, 16:37
Location: Solothurn, Schweiz

Re: Frontend Login: Register with fe_user frontend_render script

Post by swisscheese » Wed 28. Oct 2009, 16:31

Good news! Finally got this working.
Bad news: it is more complicated than I expected. It's impossible to put a bunch of final files here where you just can adjust a two or three parameters and all is done.

What's possible:
- User can register, a mail is sent to admin
- admin can activate (and edit) the userdata in backend (module needed)
- on activation, a mail is sent to user to inform him his account was activated
- user can login in frontend and manage his account (edit, set new password and so on)
- user can request a new password if he forgot it (yes, Yves 8) )

The two big works:
- You have to adjust the frontend render script "fe_user.php". This file handles the rendering and processing of registration form. The one you get with phpwcms is a very, very custom version, but basically working. As there is no template, you have to hard code in the file itself.
- There is no module to manage the users in the backend. I wrote one for my need, but it isn't handy for general use (too much custom fields and special wishes...)

Well, I'll give this an eye to code and solve this in a more general way, but not today :wink:

Gerd

hausmeister
Posts: 219
Joined: Thu 18. Dec 2008, 12:45

Re: Frontend Login: Register with fe_user frontend_render script

Post by hausmeister » Wed 28. Oct 2009, 16:57

i am very interested in this one :mrgreen:

der hausmeister

Post Reply