Youjoomla Support Forums (http://www.youjoomla.com/joomla_support/index.php)
-   YouGrids (http://www.youjoomla.com/joomla_support/forumdisplay.php?f=171)
-   -   Invalid token on Logout - Using Yougrids Template (http://www.youjoomla.com/joomla_support/showthread.php?t=8168)

chancy 04-21-2011 05: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 -

BUT I CAN'T LOGOUT

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"

id="login-form">
<?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; ?>
</div>
<?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'); ?>

</div>
</form>

neo 04-22-2011 07:25 AM

new files are up reinstall or add

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

under
<div class="logout-button">

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

chancy 04-22-2011 09: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 08:53 AM.

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