- Posts: 111
- Thank you received: 0
Logout link in menu view »User Profile« option
- reilldesign
- Topic Author
- Offline
- Premium Member
Less
More
1 year 6 months ago #158869
by reilldesign
Logout link in menu view »User Profile« option was created by reilldesign
The option show »Logout Link« would be a perfect addition to this menu view. How can I display a logout link at the last position in the user profile? There is an option to logout in the Edit profile section, but there should be a separate logout button for better usability.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 5 months ago #158889
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Logout link in menu view »User Profile« option
Hello
If it is needed, you can modify code in the file components/com_osmembership/view/profile/tmpl/default.php, at the bottom, there is osm_logout_form. You can add the logout button inside that form and it should work
Regards,
Tuan
If it is needed, you can modify code in the file components/com_osmembership/view/profile/tmpl/default.php, at the bottom, there is osm_logout_form. You can add the logout button inside that form and it should work
Code:
<input type="button" class="<?php echo $bootstrapHelper->getClassMapping('btn btn-primary'); ?>" value="<?php echo Text::_('OSM_LOGOUT'); ?>" onclick="document.osm_logout_form.submit();" />
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 5 months ago #158890
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Logout link in menu view »User Profile« option
If you modify code in that file, remember to move it into template override so that the change won't be lost when you update to future releases of the extension
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- reilldesign
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 111
- Thank you received: 0
1 year 5 months ago #158919
by reilldesign
Replied by reilldesign on topic Logout link in menu view »User Profile« option
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 5 months ago #158924
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Logout link in menu view »User Profile« option
Ah, you want to have a separate tab called Logout ? Click on that tab will show the button to allow users to Logout ?
Please Log in or Create an account to join the conversation.
- reilldesign
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 111
- Thank you received: 0
1 year 5 months ago #158929
by reilldesign
Replied by reilldesign on topic Logout link in menu view »User Profile« option
Or the user is logged out immediately, thus only one click is required. So it behaves also in the Joomla backend.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
1 year 5 months ago #158933
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Logout link in menu view »User Profile« option
I don't think we can embed a link into a tab title. So there must be two clicks if it is even implemented
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.