- Posts: 14
- Thank you received: 2
Problems with logout
- Ivan Kuznetsov
- Topic Author
- Offline
- Fresh Boarder
Less
More
11 years 9 months ago #1906
by Ivan Kuznetsov
Problems with logout was created by Ivan Kuznetsov
1) at the entrance to a page where the top was the inscription login appears (shown in picture)
2) when you press the button on the idea of carrying out the user has. But there is a transition on the link sitename/index.php and thus gives a 404 error.
site: rome-paris.com/
Sorry for the bad English
Help please!
Advance thanks
Attachment problem.jpg not found
2) when you press the button on the idea of carrying out the user has. But there is a transition on the link sitename/index.php and thus gives a 404 error.
site: rome-paris.com/
Sorry for the bad English
Help please!
Advance thanks
Attachments:
Please Log in or Create an account to join the conversation.
- Linh Robert
- Offline
- Banned
Less
More
- Posts: 908
- Thank you received: 568
11 years 9 months ago #1922
by Linh Robert
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Replied by Linh Robert on topic Re: Problems with logout
Hi,
Please edit /templates/ot_ante/html/mod_login/default.php and change this code:
To:
Thanks
Please edit /templates/ot_ante/html/mod_login/default.php and change this code:
Code:
<?php if($type == 'logout') : ?>
<form action="index.php" method="post" name="login" id="form-login">
<?php if ($params->get('greeting')) : ?>
<div class="login_greet">
<?php if ($params->get('name')) : {
echo JText::sprintf( 'HINAME', $user->get('name') );
} else : {
echo JText::sprintf( 'HINAME', $user->get('username') );
} endif; ?>
</div>
<?php endif; ?>
<div class="logout_btn" align="center">
<input type="submit" name="Submit" class="button" value="<?php echo JText::_( 'BUTTON_LOGOUT'); ?>" />
</div>
<input type="hidden" name="option" value="com_user" />
<input type="hidden" name="task" value="logout" />
<input type="hidden" name="return" value="<?php echo $return; ?>" />
</form>
To:
Code:
<?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', htmlspecialchars($user->get('name')));
} else : {
echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($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>
Thanks
If you need to send us FTP access / host access, administrator access or any private information:
services(at)omegatheme(dot)com or drop a ticket Notice: Undefined variable: target in /home/omegatheme/public_html/components/com_kunena/template/aurelia/layouts/bbcode/url/default.php on line 32
> www.omegatheme.com/member/
Please Log in or Create an account to join the conversation.
- Ivan Kuznetsov
- Topic Author
- Offline
- Fresh Boarder
Less
More
- Posts: 14
- Thank you received: 2
11 years 9 months ago #1923
by Ivan Kuznetsov
Replied by Ivan Kuznetsov on topic Re: Problems with logout
tnx you are genies
Please Log in or Create an account to join the conversation.
Time to create page: 0.269 seconds