PDA

View Full Version : plugging custom text into standard error and redirect


edschaum
07-24-2004, 01:15 PM
Hi,

I've added some custom phrases and tested them to be sure they work using

echo $vbphrase('some_custom_text');

but when I try to display that same text using:

eval(print_standard_error('some_custom_text'));
or
eval(print_standard_redirect('some_custom_text'));

the resulting info box displays:

Could not find phrase 'some_custom_text'.

What am I missing here?

thanks,

Ed

Dark_Wizard
07-24-2004, 05:10 PM
You have them in the wrong phrase group...add the error ones to the "Front-End Error Messages" phrase group and the redirect to the "Front-End Redirect Messages" phrase group.

CarCdr
07-24-2004, 05:30 PM
Change your call to explictly avoid the phrase fetching using the second parameter ('false' below). Examples:
eval(print_standard_error($vbphrase['some_custom_text'], false));
or
eval(print_standard_redirect($vbphrase['some_custom_text'], false));

Dark_Wizard
07-24-2004, 05:38 PM
Change your call to explictly avoid the phrase fetching using the second parameter ('false' below). Examples:
eval(print_standard_error($vbphrase['some_custom_text'], false));
or
eval(print_standard_redirect($vbphrase['some_custom_text'], false));


Why? Doing it the way I stated was correct....

edschaum
07-25-2004, 11:41 AM
Many thanks, that worked great. I knew I must be missing something obvious!

Ed