The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
This doesn't work, but is there a way to do something equivalent to this:
PHP Code:
|
|
#2
|
|||
|
|||
|
Code:
<if condition="$post['field70'] == Yes"> |
|
#3
|
||||
|
||||
|
Code:
<if condition="$post['field70'] == 'Yes'"> .
|
|
#4
|
|||
|
|||
|
Thanks. How would I be able to put the javascript into effect, because for some reason for people who say Yes to that field, it does nothing,
|
|
#5
|
||||
|
||||
|
Code:
<if condition="$vbulletin->userinfo['field70']" == "Yes">
<script type="text/javascript">
<!--
location.replace("banned.html");
//-->
</script>
</if>
|
|
#6
|
||||
|
||||
|
Shouldn't it be:
Code:
<if condition="$vbulletin->userinfo['field70'] == 'Yes'">
<script type="text/javascript">
<!--
location.replace("banned.html");
//-->
</script>
</if>
|
|
#7
|
||||
|
||||
|
Right -- the whole condition should be enclosed within double quotes.
Code:
$vbulletin->userinfo['field70'] == 'Yes' |
|
#8
|
|||
|
|||
|
Whoops my bad, forgot about those ones.
|
|
#9
|
||||
|
||||
|
We had you covered, sir.
|
|
#10
|
|||
|
|||
|
Thanks guys. .Works perfect.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|