ok im trying to make a block,
when i use the script direct (not in a block or via nuke) it works fine apart from a load of notices, but when i make it into a block it gives me the following warning:
Code:
Warning: array_push() [function.array-push]: First argument should be an array in G:\usr\aagroups.com\public_html\blocks\block-My_Stats.php on line 11
block-My_Stats.php
Code:
<?php
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
function startTag($parser, $name, $attrs) {
global $stack;
$tag=array("name"=>$name,"attrs"=>$attrs);
array_push($stack,$tag);
}
function cdata($parser, $cdata) {
global $stack;
$stack[count($stack)-1]['cdata'] .= $cdata;
}
function endTag($parser, $name) {
global $stack;
$stack[count($stack)-2]['children'][] = $stack[count($stack)-1];
array_pop($stack);
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum