The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Profile Field Help
Well I posted this up at vbulletin.com but they said to maybe try asking here, vbulletin.org
^^ Quote:
|
#2
|
|||
|
|||
Code:
<if condition="$post['fieldX']"><img src="path/to/image" /></if> Code:
<if condition="$post['fieldX']">$post[fieldX]<br /><img src="path/to/image" /></if> |
#3
|
||||
|
||||
What kind of profile field did you create? Do they select the field from a dropdown? If so, see the second post in here - How To Add A Profile Field To The Postbit
|
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Depends on where you want it to appear. Under Postcount? Location? Usertitle? I don't know if this works for drop-downs.. so if not you'll have to come back.
|
#6
|
|||
|
|||
Okay, so the code worked, field 6, blah blah and the image comes up however as soon as I added it I noticed a problem. Within field 6 the user has many different options to pick from and from those options need to display the picture, not from the field. Know what I mean?
Edit: I got it to post under the avatar and again it works, just need to know have the picture depending on what the user picks within the field 6. |
#7
|
|||
|
|||
If you want to pick a specific spot, tell me and I'll show you where to put the code.
One way to answer your above dilemma would be to make a dropdown box for the games, and label the images the same as the field. For instance, one of the options for your users is Counterstrike, so upload all of your images to the same spot, and label the image "Counterstrike.png" so you can just do <img src="pathtoimage.com/$post[fieldX].png">. Get what I'm saying? |
#8
|
|||
|
|||
Okay I created a Single-Selection Menu and right now it has 3 example options:
Counter Strike: Source WarCraft 3 Other .................................................. ................. A user selects CS:S and then his/her posts will display a CS:S image under his/her avatar. I know where to know set the stuff to display it under the avatar, I just do not know how to make it so the image displays the persons selection they made. If the person made the WarCraft 3 selection, how would I display that specific image, etc, etc with other options? |
#9
|
|||
|
|||
If you wanted to do my method, you'd need to delete the colon in CounterStrike Source. Then, upload your image as "Counterstrike Source.png" with the space. Then upload a corresponding image for Warcraft as "WarCraft 3.png", uploaded at the SAME spot. Then a corresponding image at "Other.png", but you'd still need an image. Then, use this code:
<img src="pathtoimage.com/$post[fieldX].png"> Of course, replacing pathtoimage.com with wherever you uploaded the images, and the X with the field number. |
#10
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|