1
uberrookie
quirksmode when displaying forms
  • 2011/4/2 21:12

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


Everytime xoops 2.5.0 displays a form on the "userside", my browers go in quirksmode.

This happens also in the default theme.

I had this problem before with some modules, but fixed it by adding $xoopsOption['template_main'] = '' in the php file responable for content.

News Module > submit.php
PD Links Module > header.php

But these are just workarounds, i think. We should find the cause and fix Xoops.

2
Mamba
Re: quirksmode when displaying forms
  • 2011/4/3 2:41

  • Mamba

  • Moderator

  • Posts: 11413

  • Since: 2004/4/23


As always, we have to ask for more information:

- what browser/version?
- what modules?
- screenshot or link to you Website, so we can see it what is exactly happening.

Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
uberrookie
Re: quirksmode when displaying forms

Xoops 2.5.0
Explorer and Firefox latest versions.
All modules with forms. (maybe depending on form type?)

The site is running locally at the moment, so here are some shots.
Resized Image

while site should be:
Resized Image


It's now when displaying the add comment form, but i had it also when displaying submit news form and others.
(https://xoops.org/modules/newbb/viewtopic.php?topic_id=73525&forum=28&post_id=337685#forumpost33768)

When viewing the generated source (FF), the content of the head tag is inside the body tag.

4
Mamba
Re: quirksmode when displaying forms
  • 2011/4/3 12:00

  • Mamba

  • Moderator

  • Posts: 11413

  • Since: 2004/4/23


It seems like something has been changed in the CSS, so now the lines instead of white, are transparent.

I suggest, try a tool like Firebug to see what settings defines the transparent color, and change it there to white or other color.

Unless somebody sees a different problem/solution here.
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

5
uberrookie
Re: quirksmode when displaying forms
  • 2011/4/3 16:18

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


It's not the css, i think. check the source (head and body tags) when in quirksmode:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl"><head>head><body id="extcal" class="nl">


    

    
    
    <
meta http-equiv="content-language" content="nl">
    <
meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <
title>etc.....


I think it has somtething to do with how xoops themes stuff.

In the screenshot's case adding
$xoopsOption['template_main'] = '';

to extcal/comment_new.php avoids quirksmode.

Thats how i did it at other modules, but its just a workaround, i think.

6
uberrookie
Re: quirksmode when displaying forms
  • 2011/4/4 19:32

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


I'm so sorry. It's not a bug at all.

Apparently I had saved header.php as utf8 with BOM.

Don't even know why I saved it since I didn't change anything.

For futute reference....Save your php files as UTF8 without BOM!!!

(as you should know already, like i did )

Login

Who's Online

148 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits