The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
usergroup based error messages
Is there a way to customize the generic error messages?
If for example someone is trying to access a page that can be seen only by a certain group, I'd like for the error message to be more specific, to be able to put links and things in there. It's been only 6 years I've been trying to do this, since the 2.20 days. |
#2
|
||||
|
||||
Well, this is the half ass way of doing it. I could probably get something better going, (like maybe a hook) just not right this second.
However the generic msg uses a function called print_no_permission() located in functions.php So whenever you see this function in any of the files where you want the error msg to occur you could replace that function with something else. For Example: - I have custom permissions on one of my forums set to "Cannot View Forum" so when a user clicks on it, they get the generic msg. However I want a custom error message instead. - I can open up forumdisplay.php and look for this code: PHP Code:
with something like: PHP Code:
|
#3
|
|||
|
|||
It's a little more involved in my case. I want to use it for specific usergroups with vbadvanced and other groups based hack.
If you do that hook, you'll be like God sent to me. |
#4
|
|||
|
|||
Thank you. I got it
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|