Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

Invalid token on Logout - Using Yougrids Template

04-21-2011, 04:50 PM
# 1 (permalink)
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'); ?>

04-22-2011, 06:25 AM
# 2 (permalink)
new files are up reinstall or add

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

<div class="logout-button">

in templates/yougrids/html/mod_login/default.php
04-22-2011, 08:17 AM
# 3 (permalink)
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.
Thread Tools
Display Modes

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

Members Login