The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Did that, and when I click to save the template, it still comes up with that error.
|
#12
|
||||
|
||||
Can I see exactly what your code right there is now? You may want to just combine the condition with the existing one.
HTML Code:
<if condition="$post['rank'] AND $post['fieldx'] != 'No'"> stuff </vb:if> |
#13
|
||||
|
||||
This is my coding,
PHP Code:
|
#14
|
||||
|
||||
Try combining the two conditions into one like I wrote (remember there should only be one </vb:if> if you combine the two).
|
#15
|
||||
|
||||
Ahem...
Being this is vBulletin 3.8 the if conditions are wrong (those are VB4 conditionals.) The VB3 code would be: Code:
<if condition="$post['field5'] != 'No'"> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if></if> |
#16
|
||||
|
||||
BirdOPrey5, I used your code, it actually saved. But when I went to my edit options, and put "No" to disable viewing the users ranks in posts, the ranks still showed in posts. Theres a "Yes" option, and a "No" option.
Yes = Show the ranks in the posts No = Not show the ranks in the posts. |
#17
|
||||
|
||||
Only one of two things then:
It really isn't field5 OR You didn't make the value of "No" exactly No in the profile field settings. It is case sensitive... If you still have issue can you try to post a screen shot of your custom profile field edit page? Oh one more thing is to try is to remove the single quotes in the code, make it $post[field5] rather than $post['field5']. |
#18
|
||||
|
||||
Sure,
It shows it's field5 there, And inside, |
#19
|
||||
|
||||
Hmmm... everything looks right...
try this code instead: Code:
<if condition="$post['rank'] AND $post['field5'] != 'No' "><div class="smallfont">$post[rank]</div></if> |
#20
|
||||
|
||||
Yes, I'm doing this in the postbit template, not the legacy, and still, when I put your code in, Not taking out the 'AND" of course. I click save, it saves. I go back to a thread, and again, it still shows the ranks, even tho my option in the "Edit Options" is set to No.
Still shows the ranks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|