Page 1 of 6
Login Contentpart
Posted: Sun 8. Jan 2006, 13:55
by markoehl
Contentpart to include a login form for Frontend and Backend User.
If specific User ist only marked as Frontend-User he will be redirected to a frontend site and will see all nonpublic, but visible contents (useful for a memberlogin). This user also can see only structureparts with specific permission. Helpful if you want to build more then one Frontend-Usergroup.
Backend-User will be redirected to phpwcms.php / Backend directly
Example:
http://www.alpine-davos.ch/phpwcms
Download Script:
http://www.alpine-davos.ch/phpwcms -> Login downloadsection (Last update 5.2.06)
Backend text in German only...
Check it out. Thanx for all Suggestions!!
Cheers
Markus Köhl, Zürich
Re: Login Contentpart
Posted: Sun 8. Jan 2006, 14:39
by Kosse
Hi Markus,
first congrats, your new content part
looks very nice
, and yes the FAQ MOD look very promising too, do you have a package?
I'm interested !!
Cheers,
MarCOs
Posted: Mon 9. Jan 2006, 08:34
by scraper
Hi Markus,
Thanks for the login contentpart. The faq mod? YES PLEASE.
Regards
Posted: Tue 10. Jan 2006, 15:42
by jscholtysik
Hi Markus,
you frontend login has some issues:
1. All logged-in frontend users stay logged in the backend, also when they have closed the browser, that means when a user open 5 times a browser window and logs in 5 times, you will see the user 5 times in the backend as logged-in user. So a logout-function would be senseful...
2. When a user knows the exact web-address of the hidden page, he/she can directly jump to this hidden page...
So what have I to adjust that this possibility never happens?
Joachim
Posted: Tue 10. Jan 2006, 16:08
by markoehl
jscholtysik wrote:
1. All logged-in frontend users stay logged in the backend, also when they have closed the browser, that means when a user open 5 times a browser window and logs in 5 times, you will see the user 5 times in the backend as logged-in user. So a logout-function would be senseful...
This is right. Just add a menu point "Logout", not visible (only logged in user can see this menu point)
Redirect to phpwcms.php?do=logout
2. When a user knows the exact web-address of the hidden page, he/she can directly jump to this hidden page...
So what have I to adjust that this possibility never happens?
Sorry, I wrote a wrong description. Set article content and struktur parts to notpublic and visible. This way only frontend user can see the content (And all backend user too)
Posted: Tue 10. Jan 2006, 17:17
by jscholtysik
Hi Markus,
I have the following constellation:
Structure level:
Test:
login:
Article:
Test part1:
Test part2:
CP Login:
Testseite part1:
Testseite part2:
CP Simple text:
Overview in article structure:
You can test it here:
http://www.scholtysik.net/cms_p/index.php?test
Log in with:
User: test
Password: test2
Then you will come to the test page.
But it is also possible to come directly to the test page without log in:
http://www.scholtysik.net/cms_p/index.p ... 63,0,0,1,0
and that must not be...
Or do I have some wrong settings in my backend pages?
Joachim
Posted: Wed 11. Jan 2006, 13:23
by jscholtysik
Hi all,
my test site of this new content part Frontend Login works very well here:
http://www.scholtysik.net/cms_p/index.php?flogin
Joachim
Posted: Wed 11. Jan 2006, 13:54
by Kosse
Hi joachim,
thanks for the time you took in setting up the demo!
Works very fine indeed, a new era for phpwcms?
Cheers
corrections
Posted: Mon 16. Jan 2006, 01:53
by phalancs
Thanx a lot for your efforts.
I found two minor things that should be corrected.
1. In the zip file: wrong directory-name:
Code: Select all
"inc_temp" should "be inc_tmpl"
May be its an version issue. I use 1.2.6
2. Instructions add on:
Code: Select all
"Finally copy the text from include\inc_lang\backend\de\lang.inc.txt into the existing lang.inc.php"
Ok, you might have got that point on your own, but as i like your contribution, i also think this could be mentioned.
Posted: Tue 17. Jan 2006, 14:57
by phalancs
Hi, i have worked a lot with that contribution now and have one more Question:
Is there a way to show the count of Backend-Messages for the user logged on in Frontend?
Thanx in advance!
Posted: Tue 17. Jan 2006, 15:17
by markoehl
phalancs wrote:
Is there a way to show the count of Backend-Messages for the user logged on in Frontend?
Sorry, not with this MOD. I wrote a little extention to give a user access to different levels of the backend tool (article, messages, modules with read/write permission) This way you can give each user specific permission to different parts of the backend.
:)
Posted: Tue 17. Jan 2006, 16:41
by phalancs
Hey markoehl!
I just managed to realize this!
Also working an some other enhacements on your great contribution!
Will share it if you are interested!
Your Step with this content part seems to be very promising to me!
So far i have done:
-Show login part only if you are not logged in
-Show Logout button and other infos when logged in:
-If you are logged in as frontend user:
- show personal messages count/ create new mail buton
- show Username
- show button to personal "Nachrichten zentrale"
-If logged in as admin:
- show current users online/ links to VTS (needs VTS Mod)
- show Backend Enter-button
- show Username
- show personal messages count/ create new mail buton
Re: :)
Posted: Wed 18. Jan 2006, 15:46
by gent
phalancs wrote:So far i have done:
-Show login part only if you are not logged in
-Show Logout button and other infos when logged in:
i need exactly this, can u please post how to do?
btw.. for me the following dont work:
if i am loged in as a front-user, i cant see a menulevel like the "logout" from the example.
my "Logout"-menu is set to hiden (only logged in user can see this menu point). but nobody can see it in my test-project.
any ideas?
Posted: Wed 18. Jan 2006, 16:32
by phalancs
I will publish the Code, just few more alterations.
Currently its still a lot hardcoded (but with many comments
). I want to have all labels/ texts/ settings to be changed via admin.
@gent:
In the meantime try the following, to have a structure to be only visible when logged in (for me it worked only like that):
Frontend Menüstatus:
0 versteckt 0 sichtbar nur für angemeldete Benutzer
Status:
1 sichtbar 0 öffentlich
0= not selected
1=selected
Sorry, i have to buy a new keyboard, mine has some major problems that makes writing very hard a t the moment
So far!
sorry for the double posting, cannot delete.
Frold, - I did the durty job!!
Pappnase its your turn
Login
Posted: Wed 18. Jan 2006, 18:14
by stemmen
I would like people register for an account on my site after which they have the opportunity to log in and post comments on articles or even write and upload their own articles.
How can the comments-thing be done?
Can users upload articles without having access to backend?
If no, what can I do so they won't mess with the admin area?