Thanks testbot.
Yeah, I'm trying to add to add/create a block for use in MkPortal. I think it should be possible, as its a CMS that relys on vbulletin (and other forums) for its use. I've created the block, and can view the block fine directly.
But then trying to add/view the block on the portal just doesn't show it.
This my code, and it echo's the information fine. But mkportal requires the $content variable to view block info. I'm going to look into other ways of echo'ing the data and see what works. I'm not sure if using eval may work or not. I'm not a expert at php, but can find my way with various help/searches.
PHP Code:
define('THIS_SCRIPT', 'cybtopstats');
$cwd = getcwd();
chdir("../../forum/"); //Path from Mkportal blocks
//chdir("./forum/"); //Path from mkportal index
require_once('global.php');
$content = "";
$content .= "<tr><td>This is the content of the test block</td></tr>";
echo $cybtopstats;
$content .= "<tr><td>$cybtopstats</td></tr>"; //Should show it, but does not
chdir($cwd);
Perhaps this should be taken to a new topic as well?