normal Problems with logout

More
11 years 9 months ago #1906 by Ivan Kuznetsov
1) at the entrance to a page where the top was the inscription login appears (shown in picture)

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.

More
11 years 9 months ago #1922 by Linh Robert
Hi,
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.

More
11 years 9 months ago #1923 by Ivan Kuznetsov
tnx you are genies

Please Log in or Create an account to join the conversation.

Time to create page: 0.269 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam