Instead of:
PHP Code:
$myarray=array();
$myarray['anidbItems']= $aniTMP;
vB_Template::preRegister('ct_animedb_slider', $myarray);
You should have what you listed for another plugin:
PHP Code:
$templater = vB_Template::create('ct_animedb_slider');
$template->register('myarray', $myarray);
$templatevalues['ct_animedb_slider'] = $templater->render();
vB_Template::preRegister('header', $templatevalues);
You have this line:
$myarray['anidbItems']= $aniTMP;
Therefore, myarray is the variable to use, not anidbItems in the template.