PDA

View Full Version : custom error


okrogius
03-13-2002, 11:16 PM
If you look in admin cp for template called stadnarderror you will see pretty much how vb errors appear (non parse type errors). It would be nice if you could replace $errormessage in that template with a different content if the page is being to shown to amember of a specific usergroup.

I already tried doing "if.. bbuserinfo[usergroupid] == XX ...else ..." in php include however that didn't seem to work.

Any ideas?

Neo
03-14-2002, 02:46 AM
I could make a new function that does that....

errr... you do realize that $errormessage is the variable the cantains the error_templates... if you want to have a different

standarderror template look than normal users... then that is possiable.

okrogius
03-14-2002, 08:30 PM
Standarderror template i s perfect. Just instead of the error specific template in the middle of standarderror template a specific error will be displayed all the time if its being viewed by X usergroup.

I believe the hack should be somewhere in the end of global.php