Frontendusers logout feature
Frontendusers logout feature
How can I add a "Logout" button or link to my pages? I'm using FEU and CustomContent. The code works fine, but I want to add Logout functionality, with a redirect to a login page or the non-password-protected Homepage, etc...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Frontendusers logout feature
Look at the module help....
There's a param you can pass to the feusers module to display a logout button. and also look in the preferences for redirecting.
There's a param you can pass to the feusers module to display a logout button. and also look in the preferences for redirecting.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Frontendusers logout feature
sorry, Calguy - I completely missed that part of the Help... thanks!!
Re: Frontendusers logout feature
Calguy - another question.
How can I change the link text for {$link_changesettings} or {$link_logout}, or the {$prompt_loggedin} text? For example, if I want it to say "Hello, user" instead of "Welcome, user"... And if I want the links to say "Update Profile" or "Logoff the System"...
Thanks much. I did check the Help this time, and I don't think this is covered
How can I change the link text for {$link_changesettings} or {$link_logout}, or the {$prompt_loggedin} text? For example, if I want it to say "Hello, user" instead of "Welcome, user"... And if I want the links to say "Update Profile" or "Logoff the System"...
Thanks much. I did check the Help this time, and I don't think this is covered

-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Frontendusers logout feature
this is a bit more complex.
a) create an /module_custom/FrontEndUsers/lang/en_US.php file
b) search in the /modules/FrontEndUsers/lang/en_US.php file for the string you want to change
c) Copy the line(s) you found in step b to the file you created in step a
d) Change the strings to whatever you want.
This functionality was added in the 0.12 series to allow overriding any string in any module without having to worry about re-changing that file when you upgrade the module.
a) create an /module_custom/FrontEndUsers/lang/en_US.php file
b) search in the /modules/FrontEndUsers/lang/en_US.php file for the string you want to change
c) Copy the line(s) you found in step b to the file you created in step a
d) Change the strings to whatever you want.
This functionality was added in the 0.12 series to allow overriding any string in any module without having to worry about re-changing that file when you upgrade the module.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Frontendusers logout feature
worked perfectly! the isolated "module_custom" directory is a great idea/feature...
thanks for your help!
thanks for your help!
Re: Frontendusers logout feature
stupid question, I guess... but is it possible, to add a log out link to the menu instead of heaving the logout template displayed on a page?
so that people can just chose "log out" in the menu on the left (or top, doesn't matter) and the actually are logged out?
I tried playing around with linking inside CMS but can't get any parameters to work.... maybe I'm just too stupid... or it's not possible. *lol*
Help or hints would be appreciated.
so that people can just chose "log out" in the menu on the left (or top, doesn't matter) and the actually are logged out?
I tried playing around with linking inside CMS but can't get any parameters to work.... maybe I'm just too stupid... or it's not possible. *lol*
Help or hints would be appreciated.