The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to add a custom error template page?
I want to add an error message to unregistered members in a file I created (as seen in https://vborg.vbsupport.ru/showthrea...threadid=49294), and I want to customize the error message people who arent registered get.
|
#2
|
||||
|
||||
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: Code:
Sorry, if you wish to view the Gallery you must be a registered member FIND: Code:
if ($bbuserinfo[userid]==0) { show_nopermission(); } Code:
// unregistered error message if ($bbuserinfo[userid]==0) { eval("standarderror(\"".gettemplate("galleryerror")."\");"); } |
#3
|
||||
|
||||
Worked great, thanks.
|
#4
|
||||
|
||||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|