Page 1 of 1
Frontendusers logout feature
Posted: Wed Aug 23, 2006 4:34 pm
by jmcgin51
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...
Re: Frontendusers logout feature
Posted: Wed Aug 23, 2006 4:51 pm
by calguy1000
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.
Re: Frontendusers logout feature
Posted: Wed Aug 23, 2006 5:36 pm
by jmcgin51
sorry, Calguy - I completely missed that part of the Help... thanks!!
Re: Frontendusers logout feature
Posted: Thu Aug 24, 2006 3:10 am
by jmcgin51
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

Re: Frontendusers logout feature
Posted: Thu Aug 24, 2006 2:40 pm
by calguy1000
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.
Re: Frontendusers logout feature
Posted: Thu Aug 24, 2006 3:26 pm
by jmcgin51
worked perfectly! the isolated "module_custom" directory is a great idea/feature...
thanks for your help!
Re: Frontendusers logout feature
Posted: Fri Dec 05, 2008 2:35 pm
by Amancham
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.