View Full Version : How to add a custom error template page?
Mijae
02-24-2003, 01:08 PM
I want to add an error message to unregistered members in a file I created (as seen in https://vborg.vbsupport.ru/showthread.php?s=&threadid=49294), and I want to customize the error message people who arent registered get.
Martin64
02-24-2003, 02:17 PM
Here's what I would do. :)
1. Create a new template, name it "galleryerror" and put whatever error message you wish to display in it, ie:
Sorry, if you wish to view the Gallery you must be a registered member
2. Open gallery.php.
FIND:
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
REPLACE WITH:
// unregistered error message
if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("galleryerror")."\");");
}
Not tested but should work. I hope it's what you're looking for. :)
Mijae
02-24-2003, 11:28 PM
Worked great, thanks.
Martin64
02-25-2003, 02:35 PM
No problem. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.