[Typo3-dev] RC2 Bug: Version condition

Pieter pieter_v at pandora.be
Sat May 1 17:49:43 CEST 2004


Kasper Skårhøj wrote:

>>the following TS (in Contants) sets template_dir to uploads/layout_ns4/ for 
>>IE5 and IE6. This didn't happen with RC1.
>>
>>template_dir = uploads/layout/
>>[version= <5]
>>template_dir = uploads/layout_ns4/
>>
>>Any further info needed?
>>    
>>
>
>Yes, please send the HTTP_USER_AGENT content for both browsers (see
>php_info() output)
>
>Otherwise I cannot track the bug (since not everyone uses MSIE...)
>
>- kasper
>  
>
I have the same problem here with this code:
page.stylesheet=fileadmin/template/main/res/main.css
[browser = msie]
page.stylesheet=fileadmin/template/main/res/mainie.css
[global]
[browser = netscape]
page.stylesheet=fileadmin/template/main/res/mainmozilla.css
[global]
[browser = opera]
page.stylesheet=fileadmin/template/main/res/mainie.css
[global]

The IE users see a scrambled website now because Typo3 sends out CSS 
made for Mozilla that IE can't handle...  Somehow the mainmozilla.css is 
used for IE.

With Mozilla 1.6: HTTP_USER_AGENT => Mozilla/5.0 (Windows; U; Windows NT 
5.1; en-US; rv:1.6)
With IE6: HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 6.0; Windows 
NT 5.1)

Changing [browser = msie]  to [browser = MSIE] doesn't help.

Pieter





More information about the TYPO3-dev mailing list