Its alright Webby, anyhow i recoded to fix the changes that you talked about and also added something to restrict calling a specific template on command so that they don't end up with a white page.
PHP Code:
$main_temps = "forumhome,articlehome" ; // Add new valid template names here seperate by commas
$temp_arr = explode ( ",", $main_temps ) ;
if ( $template ) :
if ( !in_array ( $template, $temp_arr ) ) :
$template = "forumhome" ;
endif ;
else :
$template = "forumhome" ;
endif ;
eval ( "dooutput ( \"" . gettemplate ( $template ) . "\" ) ;" ) ;
Regards,
g-force2k2