![]() |
Help Displaying Pic In Postbit Legacy
Guys I'm hoping you can help me. I'm trying to get a small picture to display based on a user selection in their user details. I can't get it to display correctly. It will post both options and the word "Array" next to it. Can someone take a look and tell me what I'm doing wrong?
Here is a picture of how the code appers on the forum: https://vborg.vbsupport.ru/external/2009/12/136.jpg Here is the code: Code:
<if condition="$post['field11']"><if condition="alliance">$post<img src="http://www.wowguideonline.com/forum/images/andromeda/misc/alliance-icon.gif"></if><if condition="horde">$post<img src="http://www.wowguideonline.com/forum/images/andromeda/misc/horde-icon.gif"></if><else />$post[field11]</if> |
I think probably the "Array" comes from the "$post" that's just before <img...
ETA: I'm guessing you want something like this: HTML Code:
<if condition="$post['field11'] == 'alliance'"> |
Actually I solved it! Here's what I did:
Code:
<if condition="$post['field11']"><div><img src="http://www.wowguideonline.com/forum/images/misc/$post[field11].gif" /></div></if> Thanks for helping me though. :) |
All times are GMT. The time now is 07:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|