Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.