The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using Profile Fields to add more than 1 image
How can I code a profile field to display more than 1 image in the profile based on user selections?
ie: x* y z* * selected by user output: x.gif z.gif Please help |
#2
|
|||
|
|||
I have them enter an URL and then put the call for that profile field in an IMG SRC tag ..
|
#3
|
|||
|
|||
Tried that...its going to the right folder...but its making up numeric file names depending on the combination...help? :surprised:
|
#4
|
|||
|
|||
Quote:
I'm using this code: Code:
<if condition="$userinfo[field28] != ''"> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[center]"> <img src="./images/certs/$userinfo[field28].gif"> </div> </div> </td></if> |
#5
|
|||
|
|||
*bump* Please a bit of help?Or atleast point me in the right direction?
|
#6
|
|||
|
|||
I changed it around a bit...still no joy...please help...its displaying all the images despite the else statement
Code:
<if condition="!in_array($userinfo[field28], array(1,2,3,4,5,6,7))"> <img src="http://www.webcadets.com/forum/images/certs/1.gif"> <img src="http://www.webcadets.com/forum/images/certs/2.gif"> <img src="http://www.webcadets.com/forum/images/certs/3.gif"> <img src="http://www.webcadets.com/forum/images/certs/4.gif"> <img src="http://www.webcadets.com/forum/images/certs/5.gif"> <img src="http://www.webcadets.com/forum/images/certs/6.gif"> <img src="http://www.webcadets.com/forum/images/certs/7.gif"> <else /> <if condition="!in_array($userinfo[field28], array(1,2,3,4,5,6))"> <img src="http://www.webcadets.com/forum/images/certs/1.gif"> <img src="http://www.webcadets.com/forum/images/certs/2.gif"> <img src="http://www.webcadets.com/forum/images/certs/3.gif"> <img src="http://www.webcadets.com/forum/images/certs/4.gif"> <img src="http://www.webcadets.com/forum/images/certs/5.gif"> <img src="http://www.webcadets.com/forum/images/certs/6.gif"> </if> </if> |
#7
|
|||
|
|||
Quote:
For anyone looking for this awnser...my final code is: Code:
<if condition="$post['field28'] & 1"><img src="images/certs/1.gif"></if> <if condition="$post['field28'] & 2"><img src="images/certs/2.gif"></if> <if condition="$post['field28'] & 4"><img src="images/certs/3.gif"></if> <if condition="$post['field28'] & 8"><img src="images/certs/4.gif"></if> <if condition="$post['field28'] & 16"><img src="images/certs/5.gif"></if> <if condition="$post['field28'] & 32"><img src="images/certs/6.gif"></if> <if condition="$post['field28'] & 64"><img src="images/certs/7.gif"></if> |
#8
|
|||
|
|||
How do you let a user to upload multible images for the profile MThornback?
|
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
Thanks for sharing I needed something like this.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|