Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

wrong CSS

  • habak
  • habak's Avatar Topic Author
  • New Member
  • New Member
More
IP: 80.187.110.251 13 years 7 months ago #2093 by habak
wrong CSS was created by habak
Hello,

I use a bought template where I can use two items for the modulclass-suffix, e.g. "richbox-2 icon-info".
The first item is for the box-design of the module and the second one for the module-icon in front of the title.
If I use one of the two parameters for the modulclass-suffix, the "latest news" are shown perfectly.
But if I use both parameters the news are shown partially and without the calendar.
The correct CSS Files are not loaded now.
What can I do, that the news are shown correctly, if I use both parameters?
Thanks in Advance.

habak
More
IP: 207.229.172.231 13 years 7 months ago #2094 by admin
Replied by admin on topic Re: wrong CSS
Hello,
this is probably a problem of CSS conflicts with your template. I cannot help you without actually seeing the page and what is going on. Can you please give me the URL of the page?

Olivier.
  • habak
  • habak's Avatar Topic Author
  • New Member
  • New Member
More
IP: 93.199.168.162 13 years 7 months ago #2097 by habak
Replied by habak on topic Re: wrong CSS
Dear Olivier,

I have sent you a E-Mail with the link data, because the Site is secured.

Kind Regards

Habak
The following user(s) said Thank You: admin
More
IP: 207.229.172.231 13 years 7 months ago - 13 years 7 months ago #2100 by admin
Replied by admin on topic Re: wrong CSS
I understand the problem now.
What is happening is that the module class suffix is meant to differentiate each instance of the module.
What I forgot is that this could also be used to add 'extras' from a template. That is a shortcoming of the method I am using.
In other terms:
if you add 'class1 class2' to the 'module class suffix' field, it translates to
Code:
<div class="mod_latestnewsenhancedextended_class1 class2">...</div>
which is fine here.
But the call to the stylesheet is corrupted
Code:
<link rel="stylesheet" href="modules/mod_latestnewsenhancedextended/stylemaster.css.php?suffix=class1 class2&amp;overall=original" type="text/css" />
The problem: the extra space.
That is why you do not have a stylesheet associated to your module instance on the left side.
This is a bug on my part. I will issue a fix for you to take care of this oversight (before release).
This is a method I am using in all my extensions, so I need to find a good solution for it. Interesting enough, you are the first reporting this issue...

Olivier.
Last edit: 13 years 7 months ago by admin.
More
IP: 207.229.172.231 13 years 7 months ago #2122 by admin
Replied by admin on topic Re: wrong CSS
I came up with a solution. The module class suffix just should not be used to differentiate instances of the module. Therefore, from now on, only the module id will be used in the stylesheets. For instance, mod_latestnewsenhancedextended_mymoduleclasssuffix will be changed to mod_latestnewsenhancedextended_[the module id].
The latest was the default so far.

Olivier.
  • habak
  • habak's Avatar Topic Author
  • New Member
  • New Member
More
IP: 80.187.110.26 13 years 7 months ago #2125 by habak
Replied by habak on topic Re: wrong CSS
Dear Olivier,

now it works perfect.
Thank you very much for your highspeed help and solution.

Kind Regards

Habak