Back to vBulletin 3 Articles

Global Errors
by DigitalDesktops 25 Jun 2003

I think its a hassle to make those 1 - 3 Sentence error messages.

Heres an easier in IMO to make those Error templates:

1. Create a New Template Called: global_error, put this inside of it:

Code:
$error

2. Instead of calling each error template seperately:

Code:
example:   "We don't allow that name as a custom title. Try again by clicking back in your browser."

call all of them from one template:

PHP Code:
 example:



$string_find="Moderator";
if(
strstr($customt$string_find)) {
    
$error="We don't allow that name as a custom title. Try again by clicking back in your browser."
eval("standarderror(\"".gettemplate('global_error')."\");");


I hope someone finds this useful.

vblts.ru supports vBulletin®, 2022-2024