Quote:
Originally Posted by amatulic
I hope this helps some people.
-Alex
|
I've been trying to get your code working, but I keep getting the error
Code:
Fatal error: Registry object is not an object in /includes/class_dm.php on line 177
And that's from just having
Code:
require_once ($_SERVER['DOCUMENT_ROOT'] . "/include/class.forumops.php");
$forum = new ForumOps();
I can't see anything that would be amiss so any help would be welcomed
Thanks
--------------- Added [DATE]1197991803[/DATE] at [TIME]1197991803[/TIME] ---------------
Quote:
Originally Posted by TheNewWebGuy
Code:
Fatal error: Registry object is not an object in /includes/class_dm.php on line 177
|
I was able to fix this by doing te following
Code:
require_once ($_SERVER['DOCUMENT_ROOT'] . "/include/class.forumops.php");
$forum = new ForumOps( $vbulletin );
Code:
function __construct( &$vbulletin ) // constructor
{
$this->vbulletin =& $vbulletin;
$this->userdm =& datamanager_init('user', $vbulletin, ERRTYPE_ARRAY);
}
Stiil though, I'm not sure why I can see $vbulliten outside of the class yet not inside it