1
uberrookie
news submit.php
  • 2011/3/31 13:20

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


When editing or submitting a new news article (modules/news/submit.php) my browsers enter quirksmode.

In other words, they convert the page back to a compatible style)

When i look at the generated source, i notice the head tag is empty and it contents moved inside the body tag.

2
uberrookie
Re: news submit.php
  • 2011/3/31 13:37

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29


submit.php doesn't has a template, but add this to submit.php to avoid quirksmode:

$xoopsOption['template_main'] = '';


place doesn't matter that much, but what about this:
if (!defined('XOOPS_ROOT_PATH')) {
    include_once 
'../../mainfile.php';
}
$xoopsOption['template_main'] = '';

3
uberrookie
Re: news submit.php
  • 2011/4/4 19:36

  • uberrookie

  • Just popping in

  • Posts: 34

  • Since: 2011/3/29



Login

Who's Online

185 user(s) are online (116 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

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

Latest GitHub Commits