- Posts: 40
- Thank you received: 0
Re: Invalid Token on Logout
-
mikegro
Inactive member -
Topic Author
- Member
-
Less
More
13 years 8 months ago #10194
by mikegro
Replied by mikegro on topic Re: Invalid Token on Logout
also - the actual code in your file that the other guy wants changed is a little different...
you have:
<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; ?>" />
</div>
you have:
<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; ?>" />
</div>
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #10233
by ivan.milic
Replied by ivan.milic on topic Re: Invalid Token on Logout
Code:
<div>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="submit" name="Submit" value="<?php echo JText::_('JLOGOUT'); ?>" />
</div>
Please Log in to join the conversation.
-
mikegro
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 40
- Thank you received: 0
13 years 8 months ago #10245
by mikegro
Replied by mikegro on topic Re: Invalid Token on Logout
your code is the same exact code that was on that sheet...
your template has the following:
<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; ?>" />
</div>
do i REPLACE that entire block with:
<div>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="submit" name="Submit" value="<?php echo JText::_('JLOGOUT'); ?>" />
</div>
OR just the part that has the jlogout... and do I put it inside the DIV already there or outside?
your template has the following:
<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; ?>" />
</div>
do i REPLACE that entire block with:
<div>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="submit" name="Submit" value="<?php echo JText::_('JLOGOUT'); ?>" />
</div>
OR just the part that has the jlogout... and do I put it inside the DIV already there or outside?
Please Log in to join the conversation.
-
mikegro
Inactive member -
Topic Author
- Member
-
Less
More
- Posts: 40
- Thank you received: 0
13 years 8 months ago #10246
by mikegro
Replied by mikegro on topic Re: Invalid Token on Logout
FYI - I changed the code by taking out everything from <div> to </div> and replaced with your DIV block and now it wont logout but doesnt go to invalid token... if yuo could... show me the current code that is on the template when we buy it for that section of that page... and tell me where to place your code exactly... by the way - thanks for the quick responses...
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago - 2 years 11 months ago #10251
by ivan.milic
Replied by ivan.milic on topic Re: Invalid Token on Logout
Here is the filetemplates\hot_wellness\html\mod_login\default.php
Last edit: 2 years 11 months ago by milos.
Please Log in to join the conversation.
Time to create page: 0.084 seconds