Jump to content

Need Help Modding Nuke OOP module


darkfreaks

Recommended Posts

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');

?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/79299-need-help-modding-nuke-oop-module/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.