The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Conditional for what error (STANDARD_ERROR template)
Inside the STANDARD_ERROR template the no permission error has its own condition, yet every other error is simply defined by $errormessage
does anyone know any of the conditional for the other error pages? This is the no permission one: HTML Code:
<if condition="$show['permission_error']">
I need: - Invalid Forum - Sorry not accepting post - And any other error messages So that I am able to differentiate between them within the STANDARD_ERROR template. Things I have tried: Code:
<if condition="$show['badlocation']"> badlocation </if> <if condition="$errormessage = $vbphrase[invalidid]"> invalidid </if> |
#2
|
||||
|
||||
I am not sure I understand what you want to do. Maybe a mix of the following conditionals can do the job. I used them for my vB3.8.11 forum.
Code:
<if condition="is_member_of($bbuserinfo, 2,4,5,6,7,9,10,11,12,13,14)"> <if condition="is_member_of($vbulletin->userinfo, 1,2,5,6,7,9,10,11,12,13,14)"> <if condition="in_array($forumid, array(16,17,19,21,23,24,25))"> <if condition="$onlinestatus==0 AND !in_array($user['userid'] , array(14,5,8,10)) "> <if condition="!in_array($forumid, array(64,62)) AND is_member_of($bbuserinfo, 1)"> !in_array($forumid, array(64,62)) . Tested this one and it's working : Code:
<if condition="is_member_of($bbuserinfo, 1,2,4,5,6,7,9,10,11,12,13,14)"> blabla <div style="margin: 10px">$errormessage</div> </if> <else /> invalidid </if> |
#3
|
||||
|
||||
Im trying to find the error type, so I can customize the template based on which error occurs.
an better example would be (not a working code) Code:
<if condition="$errormessage == '$vbphrase[invalid_forum_specified]'"> My Custom Error styling for a forum not existing. </if> https://vbulletin.org/forum/forumdis...hp?f=465465456 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|