Dragonfly CMS v9 ⇒ CPG-BB (forum) ⇒ viewtopic.php has CSS errors? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index Modules & Blocks CPG-BB (forum)

viewtopic.php has CSS errors? Reply to topic


I noticed that viewtopic.php is generating css errors from the follwing code.

<style type="text/css">.postbody img{max-width:'.$attach_config['img_link_width'].'px}
<!--[if lt IE 8]>
.postbody img {
width: expression(this.clientWidth > '.$attach_config['img_link_width'].' ? "'.$attach_config['img_link_width'].'px" : this.clientWidth+"px");
}
<![endif]-->

ERRORS:
Timestamp: 30/03/2012 15:11:01
Warning: Unexpected token in attribute selector: 'lt'. Ruleset ignored due to bad selector.
Source File: www.jw.servegame.org/i...amp;t=3081
Line: 22

Timestamp: 30/03/2012 15:11:01
Warning: Selector expected. Ruleset ignored due to bad selector.
Source File: www.jw.servegame.org/i...amp;t=3081
Line: 26

Timestamp: 30/03/2012 15:11:01
Warning: Unexpected end of file while searching for closing } of invalid rule set.
Source File: www.jw.servegame.org/i...amp;t=3081
Line: 27

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


Ah I see, another swift move!

This is default DF code, and while I understand they are only warning, I assume by the class being dropped that this code is achieving nought?

is this some sort of attempt to limit img width in the forums? I really have no clue why its there at all. The Attachment mod does most of this work.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


Ah I just realised this is targeting IE LOWER than 8.

Stuff em, they can update, removed the IF statement, all errors gone. Big grin

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0


Which IF Statements did you remove to get rid of the errors?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
PHP


it would have been this from viewtopic.php going by the first post.

<!--[if lt IE 8]>
.postbody img {
width: expression(this.clientWidth > '.$attach_config['img_link_width'].' ? "'.$attach_config['img_link_width'].'px" : this.clientWidth+"px");
}
<![endif]-->

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2.6.18-164.11.1.el5xen/2.2.13/5.0.89-community-log/5.2.11/9.3.3.0

All times are UTC


Jump to: