Quote:
Thanks for your answer. I'm not using the user input directly
|
You do:
PHP Code:
$medalStatsSearchVars = array(
'medal_search_player' => vB::$vbulletin->input->clean_gpc('p', 'medal_search_player', TYPE_STR),
'name' => vB::$vbulletin->input->clean_gpc('g', 'name', TYPE_STR),
'steamid' => vB::$vbulletin->input->clean_gpc('g', 'steamid', TYPE_STR)
);
vB_Template::preRegister('vbcms_content_phpeval_page', array('medalStatsSearchVars' => $medalStatsSearchVars));
echo $medalStatsSearchVars['medal_search_player'] . '|' . $medalStatsS
With this code you end up with having direct user input available in template variable $medalStatsSearchVars['medal_search_player'], $medalStatsSearchVars['name'] and $medalStatsSearchVars['steamid'].
You can't put any custom variables into template vbcms_content_phpeval_page without customizign it (or creating a new one).
The only variable that is their for your ot use is $outut:
PHP Code:
/**The php code goes here. It can have as much php as you like,
but it should end with setting the variable $output.
e.g.
$something = $somefunction();
$something2 = $somefunction2();
...
**/
$output = "Hello World<br />";