Frontendusers logout feature

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Frontendusers logout feature

Post 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...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontendusers logout feature

Post 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.
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Frontendusers logout feature

Post by jmcgin51 »

sorry, Calguy - I completely missed that part of the Help...  thanks!!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Frontendusers logout feature

Post 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 ;-)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Frontendusers logout feature

Post 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.
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.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Frontendusers logout feature

Post by jmcgin51 »

worked perfectly!  the isolated "module_custom" directory is a great idea/feature...

thanks for your help!
Amancham

Re: Frontendusers logout feature

Post 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.
Post Reply

Return to “CMSMS Core”