How do I add an image to a custom profile field?
Started By Zhaan, Oct 05 2011 09:42 PM
8 replies to this topic
#1
Posted 05 October 2011 - 09:42 PM
I don't want any text in it, and I'm not sure what I need to do so that only an image appears when viewing a profile in topic view. What values need to be changed in the image below? Can I input a direct link or does the image have to be uploaded to my images folder first?
#2 Re: How do I add an image to a custom profile field?
#3 Re: How do I add an image to a custom profile field?
Posted 05 October 2011 - 10:27 PM
No, there's more to it than that. That didn't work. I can almost figure it out, but not quite. Ok, for example. I create a custom profile group and I add a field called "Flag Officer Ranks"...don't confuse this with wanting to use the built in rank system because that's not what this is for. In this field, I get the image I posted above. I want to create a drop down box to select from various ranks and add the one I want for any particular member. In order to do that, I have to do something more than just upload the image and input code you posted into Topic View Format. Because, when I did that, it didn't work.
Basically, it appears it would work the same way your field here does for the flags. Drop down box to chose the country and have the image appear. Only difference is I don't want any text appearing where it says "Country"...only the image. That, and I will set mine so that only admin can select the option. Users will not be able to. But I see the field for that option, I think.
Basically, it appears it would work the same way your field here does for the flags. Drop down box to chose the country and have the image appear. Only difference is I don't want any text appearing where it says "Country"...only the image. That, and I will set mine so that only admin can select the option. Users will not be able to. But I see the field for that option, I think.
#4 Re: How do I add an image to a custom profile field?
Posted 05 October 2011 - 10:34 PM
Here are instructions for flag mode (in last field you should only put whatever is in <img> brackets):
- Field Title : Country
- Description : Select You'r Country
- Field Type : Country
- Maximim input : 0
- Display Order : 0
- Option Content (for drop downs) : Select ALL , Copy and Paste Code Below
Afghanistan=Afghanistan
Albania=Albania
Algeria=Algeria
American Samoa=American Samoa
Andorra=Andorra
Angola=Angola...and so on... - Include on registration page? : Yes
- Field MUST be completed and not left empty? : Yes
- Field can be edited by the member? : Yes
- Make this a private profile field? : No
- Make Admin and Super Moderator Editable/Viewable Only? : No
- Topic View Format? : Select , copy and Paste code below
<dt>{title}:</dt><dd><img src='http://www.domain.com/ForumDir/Flags/{key}.gif' /></dd>
#5 Re: How do I add an image to a custom profile field?
Posted 05 October 2011 - 10:45 PM
So, how do those text inputs in #6 know which flag image to use? Let's say I upload all these rank images to my public images folder and I then put in, for example:
Fleet Officer=Fleet Officer
Admiral=Admiral
Vice Admiral=Vice Admiral
Then I get down to #12 for Topic View Format. You have only one link there. So, do I just do this:
<dt>{title}:</dt><dd><img src='public_html/public/style_images/ranks' />{key}.png' /></dd>
and then just make sure the images uploaded to the ranks folder share the same name as what I input in #6?
Fleet Officer=Fleet Officer
Admiral=Admiral
Vice Admiral=Vice Admiral
Then I get down to #12 for Topic View Format. You have only one link there. So, do I just do this:
<dt>{title}:</dt><dd><img src='public_html/public/style_images/ranks' />{key}.png' /></dd>
and then just make sure the images uploaded to the ranks folder share the same name as what I input in #6?
#6 Re: How do I add an image to a custom profile field?
Posted 05 October 2011 - 11:09 PM
ugh. well, that didn't work either. i'm at a loss. it did make me enter a field title though, which does appear in the topic view. there's got to be some way around that, as well. i've seen this done on other boards and i just can't figure it out. :(
#7 Re: How do I add an image to a custom profile field?
#8 Re: How do I add an image to a custom profile field?
Posted 06 October 2011 - 01:05 AM
I've got it. Thanks, Broni.















