Hi Dave,
Sorry for the delay, I had a family emergency.
I am getting no output when using the code you posted
Here is how I am using the code
PHP Code:
// ########################## START MICKS PLUGIN PROTECTION ############################
if (!in_array($vbulletin->userinfo['userid'], array(1)))
// if($vbulletin->userinfo['usergroupid'] != 6)
{
print_no_permission();
}else{
// ######################### START PLUGIN #############################################
$handle = fopen("./streetview/n7.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
$t = explode(",", $line);
if(isset($t[0]) && strpos($t[0], "London") === false){
$road = trim($t[0]);
$sv = $road; // Use $road.
}
}
fclose($handle);
}
}
// ###### Register Variables #######
vB_Template::preRegister('streetview',array('sv' => $sv));
And in the template I am using the following to call the output
Thanks Dave