7
Umm...
I succeed^^;;
If you want to use xoopsheadline on PHP5,
you have to fix some bug and change some code^^;;
(1)First, this change is necessary!!
---target file: /xoopsheadline/class/headline.php---
From:
get_class($headline) != 'xoopsheadlineheadline'
To:
strtolower(get_class($headline)) != 'xoopsheadlineheadline'
because In PHP5, get_class($headline) returns XoopsheadlineHeadline !
And
---target files: /xoopsheadline/admin/index.php , /xoopsheadline/index.php---
Change like this^^;;
$HTTP_GET_VARS to $_GET
$HTTP_POST_VARS to $_POST
(2)Some bug fixes needed^^;;
---------------------
/xoopsheadline/admin/index.php
From:
$hlman =& xoops_getmodulehandler('headline');;
To: ( I mean not ;; just ; )
$hlman =& xoops_getmodulehandler('headline');
--------------------
And
/xoopsheadline/class/headlinerenderer.php
From:(Yeah^^This bug is one of real culprits !!!!!!!)
class XoopsHeadlineRenderer
{
// holds reference to xoopsheadline class object
var $_hl;
var $_tpl;
// XoopTemplate object
var $_tpl;
To:
class XoopsHeadlineRenderer
{
// holds reference to xoopsheadline class object
var $_hl;
var $_tpl;
// XoopTemplate object
//var $_tpl;
I mean not two $_tpl just one $_tpl !!!!!!!!!!!!!!
Umm...
I confirmed it works well on PHP5 after this change.
(3) this change is also necessary!!
/html/class/xml/saxparser.php
From:
function free()
{
xml_parser_free($this->parser);
unset($this);
$this = null;
}
To:
function free()
{
xml_parser_free($this->parser);
unset($this);
//$this = null;
}
I mean //$this = null;
And
this is optional....
but...I recommend that you use snoopy instead of fopen^^;;