darkfreaks Posted November 28, 2007 Share Posted November 28, 2007 ok so im trying to intergrate nuke videos with my nuke evo site. however when i do that i get Fatal Error: could not find vtemplate i need someone to possibly remove the vtemp stuff also when that was removed i got other errors like " could not assign member function assign to a non object" "could not generate member function generate to a non object" could someone take a look at the file and tell me how i solve these errors? <?php if ( !defined('BLOCK_FILE') && eregi("block-Vidmod_Random.php", $_SERVER['PHP_SELF'])) { Header("Location: ../index.php"); die(); } global $user, $cookie, $prefix, $db, $user_prefix; //include_once('modules/Video/libraries/vtemplates/vtemplates.php'); include_once('modules/Video/videos.php'); include_once('modules/Video/languages.php'); $vt = new vtemplates; $videos = new vidmod_videos; $languages = new vidmod_languages; $vt->assign('LANGUAGES', $languages); $vt->assign('random_videos', $videos->get_random_videos($videos->config['most_videomax'])); $vt->assign('recent_videos', $videos->get_recent(1, $videos->config['most_videomax'])); $vt->assign('rated_videos', $videos->get_hottest(1, $videos->config['most_videomax'])); $content = $vt->generate('modules/Video/templates/center_block.tpl'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/79299-need-help-modding-nuke-oop-module/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.