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> |
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 |
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 04:02 PM. |
Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.