Youjoomla Support Forums (
-   YouGrids (
-   -   Invalid token on Logout - Using Yougrids Template (

chancy 04-21-2011 04:50 PM

Invalid token on Logout - Using Yougrids Template
Invalid token on Logout - Using Yougrids Template

Can log in fine
When logging out, I get Invalid Token
(I did notice that before trying to log out, I put my cursor over the logout button and it referenced [at the bottom] what page I was on. [Example - forum.html or resources.html])
don't know what that's about -


I've read what I could about this topic - but still not working
- I'm Going Crazy

I hope someone is kind enough to help - thanks

here is the code in my file: mytemplate/html/mod_login/default.php

<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post"

<?php if ($params->get('greeting')) : ?>
<div class="login-greeting">
<?php if($params->get('name') == 0) : {
echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('name'));
} else : {
echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('username'));
} endif; ?>
<?php endif; ?>
<div class="logout-button">
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="user.logout" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
<?php echo JHtml::_('form.token'); ?>


neo 04-22-2011 06:25 AM

new files are up reinstall or add

<?php echo JHtml::_('form.token'); ?>

<div class="logout-button">

in templates/yougrids/html/mod_login/default.php

chancy 04-22-2011 08:17 AM

Thank You neo!

That did the trick beautifully!
(I had been placing that bit of code in all the wrong places until you helped)
I REALLY appreciate your helping - and I also like the Yougrids template too.

All times are GMT -4. The time now is 12:12 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.