View Full Version : Problem Sending Variable to Template
I've whipped up a very simple script that outputs the names of users in a specified forum. However, I can't figure out how to pass this info on so that it's parsed as a variable in the forumhome template. Any help would be greatly appreciated.
Scott MacVicar
08-15-2001, 11:52 AM
as long as the variable has a value before you evalute a template containing the variable it shoud work.
$test="This is a test";
eval("\$stuff = \"".gettemplate('some_template')."\";");
eval("dooutput(\"".gettemplate('another_template')."\");");
You need to make sure that the variable is declared and has a value before evaluating the template with the variable within it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.