PDA

View Full Version : using vbcode outside newreply and newthread problem


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! :)

mfacer
12-18-2003, 09:44 AM
any one got any ideas?
thanks :)