форум vBSupport.ru > vBulletin > vBulletin 3.8.x > Вопросы по vBulletin 3.8
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
DrCustUmz
Знаток
 
DrCustUmz's Avatar
Exclamation Conditional for what error (STANDARD_ERROR template)
0

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']">
(not authorized)

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>
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
OldEr
Специалист
Master
 
OldEr's Avatar
Default
1

It should be:
Quote:
<if condition="$errormessage == '$vbphrase[invalidid]'">
Instead of:
Quote:
Originally Posted by DrCustUmz View Post
<if condition="$errormessage = $vbphrase[invalidid]">
 
 
DrCustUmz
Знаток
 
DrCustUmz's Avatar
Default
0

Thank you for the proper syntax, but that still failed to return a result on STANDARD_ERROR template
forumdisplay.php?f=65468974897
HTML Code:
<if condition="$errormessage == '$vbphrase[invalid_forum_specified]'">
<br><br><br><br><br><br>invalid forum
</if>
I also attempted
Code:
<if condition="$errormessage = $vbphrase[invalidid]">
on an invalid newthread

I cant seem to get these conditions.

I thought this would be possible without creating a plugin, but I might just make a plugin and change the variable for each error I want to customize.
Code:
eval(standard_error(fetch_error('invalidid', $vbphrase["$idname"], $vbulletin->options['contactuslink'])));

Last edited by DrCustUmz : 11-26-2020 at 04:10 PM.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 09:46 PM.


Powered by vBulletin® Version 4.x.fuck
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...