Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Disabling/Hiding logout button in module.

  • gemadan96
  • gemadan96
  • OFFLINE
  • Posts: 18
  • Thanks: 2
  • Karma: 1
8 years 7 months ago - 8 years 7 months ago #278977 by gemadan96
I have upgraded CB on my site from 1.9.1 to 2.0.13. Before upgrading I had 2 login/logout modules. The second only was displayed after the user logged in and displayed their greeting and avatar. The logout button was hidden using the method in this article - www.joomlapolis.com/forum/153-professional-member-support/191829-solved-help-with-diabling-1-of-2-logout-buttons#191885 .

Since the upgrade the logout button is once again visible in the second module position. Using the following css.

.hideButton .cbLogoutButtonSpan
{
display: none;}

Looking for help to get this working again.
Last edit: 8 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279009 by krileon
Replied by krileon on topic Disabling/Hiding logout button in module.
Right click and inspect element on the logout button to see its CSS classes and/or ID. Our module HTML has been redesigned to better match Joomlas default template so it better fits in. Our modules also support Joomla layout overrides so it maybe better to just create a new layout that doesn't render the button at all.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • gemadan96
  • gemadan96
  • OFFLINE
  • Posts: 18
  • Thanks: 2
  • Karma: 1
8 years 7 months ago #279020 by gemadan96
Replied by gemadan96 on topic Disabling/Hiding logout button in module.
Thanks. I was able to find the classes and adjust them accordingly.

If I wanted to use layout overrides, which files would I need to do so?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279067 by krileon
Replied by krileon on topic Disabling/Hiding logout button in module.

If I wanted to use layout overrides, which files would I need to do so?

Joomla 3.x uses the boostrap layouts. Joomla 2.x uses the default layouts. So for example if you're using Joomla 3.x you'd copy the following.

FROM: /modules/mod_cblogin/tmpl/bootstrap_logout.php
TO: /templates/YOUR_TEMPLATE/html/mod_cblogin/bootstrap_logout_custom.php

Next edit bootstrap_logout_custom.php as needed (e.g. remove the logout button entirely) then in your CB Login module under Advanced Options set "Alternative Layout" to bootstrap_logout_custom. See the below Joomla documentation for further layout override usage information.

docs.joomla.org/Layout_Overrides_in_Joomla


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: nant

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

  • gemadan96
  • gemadan96
  • OFFLINE
  • Posts: 18
  • Thanks: 2
  • Karma: 1
8 years 7 months ago #279300 by gemadan96
Replied by gemadan96 on topic Disabling/Hiding logout button in module.
I've setup a test site to tryout the layout overrides. Following your instructions and using the information in the Joomla link. I created mybootstraplogout.php (per the Joomla info I removed the underscores). I'm able to select my alternative layout. However when I login to the site rather than see the greeting, avatar, and no logout button I see the login form instead. Any suggestions?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279335 by krileon
Replied by krileon on topic Disabling/Hiding logout button in module.
Looks like logout usage is a bit more unique. Directly copy both the below files. Do not rename them.

FROM: /modules/mod_cblogin/tmpl/bootstrap.php
TO: /templates/YOUR_TEMPLATE/html/mod_cblogin/bootstrap.php

FROM: /modules/mod_cblogin/tmpl/bootstrap_logout.php
TO: /templates/YOUR_TEMPLATE/html/mod_cblogin/bootstrap_logout.php

Modify the _logout file. Then in your CB Login module select the bootstrap layout for your template. Should work fine now.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum