Quote:
Originally Posted by Acidflame
Reset postbit legacy and postbit and try how i explain before. Is very strange.
If you want contact me on pm and give me your forum i help you directly
|
Acidflame there is an Error....in syntax of code of postbit....
The Correct Syntax is:
PHP Code:
<!-- Platform Game Start -->
<Legend><B>Le Mie CONSOLE</B></Legend>
<br />
<div>
<if condition="$post['fieldX'] & 4">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 8">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 1">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 2">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 128">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 64">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 16">
<img src="http://www.">
</if>
<if condition="$post['fieldX'] & 32">
<img src="http://www.">
</if></div>
<!--// dispositivi di gioco end End -->
where
X is a ID of Field (Example 5...Always)
and Y is a Number of Multiple selection fields that use a binary scheme to store the selected values. Each option is given a number value, like this:
option 1 = 2^0 = 1
option 2 = 2^1 = 2
option 3 = 2^2 = 4
option 4 = 2^3 = 8
option 5 = 2^4 = 16
option 6 = 2^5 = 32
option 7 = 2^6 = 64
option 8 = 2^7 = 128
etc...
like in my Sample of my Posbit. It's Work
and....you are type
PHP Code:
<if condition="$post['field[X] & Y">
... is an error of syntax for
' that is missing.....
Correct is:
PHP Code:
<if condition="$post['fieldX'] & Y">
View this Screen my Friend:
I hope I have helped you