- Thank you received: 0
Re: Invalid Token on Logout
-
mikegro
Inactive member - Topic Author
- Member
Less
More
12 years 7 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
- Thank you received: 1639
12 years 7 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
- Thank you received: 0
12 years 7 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
- Thank you received: 0
12 years 7 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
- Thank you received: 1639
12 years 7 months ago - 1 year 10 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: 1 year 10 months ago by milos.
Please Log in to join the conversation.
Time to create page: 0.295 seconds