You have to register your variable for your template (or register global)
In vB4 you can
PHP Code:
ob_start();
include('path/arrayofuserids.php');
$arrayofuserids=ob_get_contents();
ob_end_clean();
vB_Template::preRegister('templateUsingYourArray',array('arrayofuserids' => $arrayofuserids));
Is vB5 the same syntax?
http://vb5support.com/resources/api/...ethod_register