Skip to Content Skip to Menu

[SOLVED] Module Class Not Working in CB 2+

9 years 10 months ago - 9 years 10 months ago #255794 by tjohns92109
[SOLVED] Module Class Not Working in CB 2+ was created by tjohns92109
Just a little bug report. Or a big bug report if you use multiple CB login modules and need to separate the styles. The 'Module Class Suffix' field doesn't work.

This will also cause issues when upgrading from 1.X to 2.X if you have styled your login module using the module class suffix.

If you create a new login module, it will work but only shows in the main module <div>.... not on the <form> or on the <input>s like it did on the old module. The module itself hasn't actually changed. I'm going to go ahead and put the class in mod_cblogin.php in hopes that this will get fixed during the next update.
Last edit: 9 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255797 by krileon
Replied by krileon on topic Module Class Not Working in CB 2+
It's a standardized parameter that Joomla handles entirely when processing module output (modules.php template file). It's not supposed to be a part of the modules code or layout. The suffix should append to the container div of the module. See Joomlas login module as it has the same behavior, which our module is now designed to mimic. Previously in CB 1.x the suffix was added all over the place, which was wrong. If it's not being output it's possible your Joomla template doesn't have a modules.php template file resulting in it being missing.


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.

9 years 10 months ago #255800 by tjohns92109
Replied by tjohns92109 on topic Module Class Not Working in CB 2+
Actually, I created a new test module just to check... and it does work if you create a new module. But if you upgrade from CB 1.x to CB 2.x, for some reason, it doesn't work. Exact same module... I see that there really isn't any changes to mod_cblogin.php. Yes, it was all over the place. Which is a bummer when you upgrade if you used those for your styles. But it's not too big of a deal to re-name the classes/IDs. In this case, I won't alter the mod_cblogin.php file.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
9 years 10 months ago #255804 by krileon
Replied by krileon on topic Module Class Not Working in CB 2+
If you do choose to alter the display leave the PHP file alone. Our modules completely support Joomlas layout functionality. You could create a new layout for the module or copy and modify the existing then add it to your Joomla template and select it as your layout in the module. This avoids having to modify any core module code, but allows you to adjust its display.


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.

9 years 10 months ago #255805 by tjohns92109
Replied by tjohns92109 on topic Module Class Not Working in CB 2+
That's what I was going to do. I'm using it in a menu though; so I just used the menu item ID to differentiate the styling.

By the way, thanks for the super quick responses, Kyle.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum