Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

file wrong CSS

More
11 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

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

More
11 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.

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

More
11 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

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

More
11 years 7 months ago - 11 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
<div class="mod_latestnewsenhancedextended_class1 class2">...</div>
which is fine here.
But the call to the stylesheet is corrupted
<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: 11 years 7 months ago by admin.

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

More
11 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.

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

More
11 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

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