The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Postbit not displaying some things for some people
Hi all,
I've made some modifications to my postbit template to display some custom profile fields. There are three fields. Field 9 contains the html that I want to display. This displays for some users, but not for others. When it "breaks" it shows the html code. Field 11 is meant to be a simpler way to accomplish the same task with a simpler input method (just the name of the image, so users don't need to dig through code to see the image they want). This works for some users, but not for others. When it breaks, it shows a broken image icon. Field 10 dies the same thing as Field 11, and works for everyone. Code:
<vb: if condition="$post['field9']"><dd>{vb:raw post.field9}</dd></vb: if> <vb: if condition="$post['field11']"><dd><img src="/images/ranks/{vb:raw post.field11}.png" alt="{vb:raw post.field11}" border="" /></dd></vb: if> <vb: if condition="$post['field10']"> <dd> <img src="/images/buttons/flags/{vb:raw post.field10}.GIF" alt="{vb:raw post.field10}" border="" /> </dd> </vb: if> I don't think it's a browser issue, since the members who reported the issue are using the same browser as I am (and it works for me). They also report the problem when they switch browsers. Is this a problem with my code, or perhaps a plugin that's interfering? If that's the case, why does it work for some users, but not for others? I appreciate the help. |
#2
|
||||
|
||||
It sounds like the data stored in the html field is being parsed incorrectly or is not consistent. There also shouldn't be spaces between vb:if. Field 11 is probably breaking because of case or an incorrect path.
It would be hard to determine exactly what is going on without seeing examples. |
Благодарность от: | ||
sn1p3r001 |
#3
|
|||
|
|||
Refer to http://www.vbulletin.com/docs/html/t...e_conditionals for the right syntax.
|
Благодарность от: | ||
sn1p3r001 |
#4
|
|||
|
|||
Hi guys, appreciate the input.
I've adjusted my syntax to remove the space in the vb:if, but it's not helping. I'm just confused because field10 is set up the same way, but that displays no problem. Would the fields' options have any impact on the display? ex if it's private, searchable, etc. Code:
<vb:if condition="$post['field11']"><dd><img src="/images/ranks/{vb:raw post.field11}.png" alt="{vb:raw post.field11}" border="" /></dd></vb:if> <vb:if condition="$post['field10']"> <dd> <img src="/images/buttons/flags/{vb:raw post.field10}.GIF" alt="{vb:raw post.field10}" border="" /> </dd> </vb:if> This is what it looks like to some users: The user who gave me the last image there reports that the rank shows up properly when he is editing or replying to a thread, but if he's just browsing the forums, it's broken. EDIT; Looks like I answered my own question. I had field11 set to Private, so it wasn't displaying in every case. Changing it to be not private fixed the issue. Thank you both for your help. It's greatly appreciated! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|