We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Logout redirect extension

Development and Programming

artlab's avatar
artlab
37 posts
17 years ago
artlab's avatar artlab

Moderator’s note: Split from this thread.

Running1.63 andnot getting the actual logout. Instead I get the full script code {exp:logout_redirect url="http://www.yahoo.com" text="Get Me Out Now" styles="class='logout-link-class' title='Logout Link'"}

So it appears not to be engaging. Have plug-in installed and extension enabled, so not sure what could be up.

Have you run in to this not processing before?

       
Mark Bowen's avatar
Mark Bowen
12,637 posts
17 years ago
Mark Bowen's avatar Mark Bowen

Hiya,

Just tried this out (me trying out my own extensions!! 😉 ) on a stock install of 1.6.3 and with this code :

{if logged_in}
{if member_group == "1"}
{exp:logout_redirect url="http://www.yahoo.com" text="Get Me Out Of Here" styles="class='logout' title='Logout'"}
{/if}
{/if}

All worked fine. The above works if I am logged in to the system and I am a Super Admin as shown by the member_group == “1” part. You should just be able to do this though :

{exp:logout_redirect url="http://www.yahoo.com" text="Get Me Out Of Here" styles="class='logout' title='Logout'"}

and it will just provide you with a log-out link which will do just that, log you out and then re-direct you to the url.

Not sure why it wouldn’t work for you though. Did you make sure to enable the extension?

Best wishes,

Mark

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.