Skip to Content Skip to Menu

[SOLVED] CB Login and Joomla Modules

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
9 years 5 months ago - 9 years 5 months ago #264093 by MAYASIMA
[SOLVED] CB Login and Joomla Modules was created by MAYASIMA
CB Login (CB version 2.0.8) or CB (the issue is presented when the CB login module is published) is creating an issue with the module of Ads Elite ( Ads Elite Website ), custom html module and possibly other Joomla extensions. Unfortunately I do not have the example of the custom module anymore because I have been trying to troubleshoot this issue for quite a while and I gave up on my custom html module and trashed it. The problem came up again when I installed Ads Elite. I have been using Ads Elite on many sites for a long time and never experienced this problem, when I contacted the developer he insisted it was an issue with the template. However I was able to recreate the issue with so many different templates from various different vendors that it did not make any sense to me. I suddenly realized it was only happening on CB sites. The CB login module (or CB) is somehow interfering with the code output of the Ads Elite module. For example, It is adding a class to a </div> property. Below is a sample of the code output. Look at the end where it states: </div class="eliadunit">
Code:
<div class="ads"> <div class="eliadunit" style="text-align:center;"> <script async="async" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block;" data-ad-client="xxxxxxxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxxxxxxx" data-ad-format="horizontal" data-ad-type="text_image" data-color-border="FFFFFF" data-color-bg="FFFFFF" data-color-link="0088CC" data-color-text="555555" data-color-url="AAAAAA"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div class="eliadunit"></div>

When disabling the CB Login module the following becomes the correct output:
Code:
<div class="ads"> <div style="text-align:center;"> <ins class="adsbygoogle" style="display:block;" data-ad-client="xxxxxxxxxxxxxxxxxxxxx" data-ad-slot="xxxxxxxxxxxxxxx" data-ad-format="horizontal" data-ad-type="text_image" data-color-border="FFFFFF" data-color-bg="FFFFFF" data-color-link="0088CC" data-color-text="555555" data-color-url="AAAAAA"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div>

Please help,

Thank you!
Last edit: 9 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago #264123 by krileon
Replied by krileon on topic CB Login and Joomla Modules
I don't see how this could possibly be caused by CB or its module. We've no code to do that. I didn't even know that extension existed until now so why would we write jQuery to add classes to it.

Maybe you've a Code action in CB Auto Actions that's running jQuery and adding a class? Maybe your extension has a CB plugin that's doing this? Seams like maybe some jQuery is adding a class to every div child of the "ads" class would be the way it could be happening. Maybe it's just the modules class suffix parameter being added?


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.

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
9 years 5 months ago - 9 years 5 months ago #264136 by MAYASIMA
Replied by MAYASIMA on topic CB Login and Joomla Modules
Look, I have been bouncing my head against the wall for about a month on this. I can assure you when you do a clean install of Joomla, CB and Ads Elite you will get the same issue. I did it twice to be sure (no other extensions installed). Now as I mentioned previously the error occurs when you publish the CB login module, of course this does not necessarily mean that the CB login module is the main cause. I do not know what else happens once that module is published. Here is a brand new install with only joomla, cb and ads elite installed. When you access the front end right now without the CB login module published you will notice that the code output is valid (please check source code, ads are not appearing, this is normal because of the url being an IP address). If you login into the backend and publish the CB login module you will see what happens.

[REMOVED]

[MOD EDIT]: Please do not post login credentials here. These are publicly indexed forums.
Last edit: 9 years 5 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8281
  • Karma: 1443
9 years 5 months ago #264139 by krileon
Replied by krileon on topic CB Login and Joomla Modules
The CSS class "eliadunit" does not exist anywhere in CB or Joomla. None of our products or core have it. I don't see how CB could be adding this. Your issue is with your extension, which I am not the developer of. There is no jQuery adding the class on the page either so it is coming from PHP when the module is rendered.

The module code the class is on is hardcoded into that extensions module so that is the only location it can come from. It is also only appending to that extensions module and no other module so it further makes no sense why it would be caused by anything other than that extension.

As to why it's being added when CBs module is published? I don't have a clue, but then again your extensions module has it's own backend custom parameter output and can only assume it has its own custom frontend handling for the module as well.

Also this is not strictly caused by CB, but doing some quick searching YooTheme templates are causing that class to appear as well. I believe your issue has to do with that extension specifically and perhaps is toggling it based off a global variable or Joomla configuration variable that it maybe using incorrectly.

Taking this further I downloaded the module and reviewed the modules source code. Sure enough the class is there. See the below.

IN: modules/mod_ads_elite/helper.php
ON: Line 268
Code:
$adscode = ( $adsalg ? "\r\n<div class=\"eliad" . $lnk . "\" style=\"" . $adsalg . "\">\r\n" . $adscode . "</div class=\"eliad" . $lnk . "\">" : "\r\n" . $adscode . "\r\n" );

The class in question is "eliadunit". Notice the first part is "eliad" in the above. With $lnk being the second part. The $lnk is set above to "unit". That is where you get your class from. If you want my advise I, strongly, suggest finding a different extension.


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.

  • MAYASIMA
  • MAYASIMA
  • OFFLINE
  • Posts: 183
  • Thanks: 22
  • Karma: 5
9 years 5 months ago #264257 by MAYASIMA
Replied by MAYASIMA on topic CB Login and Joomla Modules

Taking this further I downloaded the module and reviewed the modules source code. Sure enough the class is there. See the below.

IN: modules/mod_ads_elite/helper.php
ON: Line 268

Code:
$adscode = ( $adsalg ? "\r\n<div class=\"eliad" . $lnk . "\" style=\"" . $adsalg . "\">\r\n" . $adscode . "</div class=\"eliad" . $lnk . "\">" : "\r\n" . $adscode . "\r\n

I mentioned the same to the developer but he ignored it and responded it was a template issue

Also this is not strictly caused by CB, but doing some quick searching YooTheme templates are causing that class to appear as well.

Not sure, but if you are referring to a question I asked on Yootheme's support site, I can confirm that I abandoned it because after more testing I didn't think it was their template causing it.

Either way, I have to agree with you and follow your advice, and get rid of this extension. It is not listed anymore in the Joomla extension directory and the only feedback I am getting from the developer is that it will be listed again after they have fixed some links (whatever that means). In regards to the actual issue, he responded in the same email that the template I am using is too blame. Other than that, I sent him multiple emails with feedback and he never responded again. So, I am ditching the extension because obviously it is impossible to work with companies/individuals like that.

As always thanks for looking into this.
The following user(s) said Thank You: nant, krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum