mfacer
12-14-2003, 12:47 PM
Hey,
I have a page which updates a field in the users table... I have worked out to use the eval(.....) part to get the vbcode_buttons to show... but I cant get the drop down menus to populate.
here's the function: (edited slightly)
if ($action=="custompage") {
$templatesused = 'error_nopermission_custompage,error_nopermission_ customposts,usercpnav,modifycustompage_bit,modifyc ustompage';
$templatesused .=",vbcode_buttons,vbcode_sizebits,vbcode_fontbits,vb code_colorbits";
include("./global.php");
// do modify profile form
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
eval("\$vbcode_buttons = \"".gettemplate("vbcode_buttons")."\";");
eval("\$custompagebit = \"".gettemplate("modifycustompage_bit")."\";");
}
but for some reason the vbcode menus are not being populated!!
what have I done wrong?!
thanks for any help! :)
I have a page which updates a field in the users table... I have worked out to use the eval(.....) part to get the vbcode_buttons to show... but I cant get the drop down menus to populate.
here's the function: (edited slightly)
if ($action=="custompage") {
$templatesused = 'error_nopermission_custompage,error_nopermission_ customposts,usercpnav,modifycustompage_bit,modifyc ustompage';
$templatesused .=",vbcode_buttons,vbcode_sizebits,vbcode_fontbits,vb code_colorbits";
include("./global.php");
// do modify profile form
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
eval("\$vbcode_buttons = \"".gettemplate("vbcode_buttons")."\";");
eval("\$custompagebit = \"".gettemplate("modifycustompage_bit")."\";");
}
but for some reason the vbcode menus are not being populated!!
what have I done wrong?!
thanks for any help! :)