Jump to content


How do I add an image to a custom profile field?


8 replies to this topic

#1 Zhaan

    Member

  • 52 posts
  • Joined: September 16, 2011
  • 15 topics
  • Local time: 12:09 AM
  • Zodiac:Leo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 14h 56m 7s

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?

Posted Image

#2 Broni Re: How do I add an image to a custom profile field?

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:09 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 05 October 2011 - 09:56 PM

You have to upload that image and then all it matters is "Topic Vew Format?" field.
In case of an image it'd look like this:

<img src='/public_html/public/style_images/picture.gif' />

You have to adjust path in red so it pictures a path on your board.

#3 Zhaan Re: How do I add an image to a custom profile field?

    Member

  • 52 posts
  • Joined: September 16, 2011
  • 15 topics
  • Local time: 12:09 AM
  • Zodiac:Leo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 14h 56m 7s

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.

#4 Broni Re: How do I add an image to a custom profile field?

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:09 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

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 Zhaan Re: How do I add an image to a custom profile field?

    Member

  • 52 posts
  • Joined: September 16, 2011
  • 15 topics
  • Local time: 12:09 AM
  • Zodiac:Leo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 14h 56m 7s

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?

#6 Zhaan Re: How do I add an image to a custom profile field?

    Member

  • 52 posts
  • Joined: September 16, 2011
  • 15 topics
  • Local time: 12:09 AM
  • Zodiac:Leo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 14h 56m 7s

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 Broni Re: How do I add an image to a custom profile field?

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:09 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 06 October 2011 - 12:25 AM

Your code would be:
<dd><img src='/public/style_images/ranks/{key}.png' /></dd>

#8 Zhaan Re: How do I add an image to a custom profile field?

    Member

  • 52 posts
  • Joined: September 16, 2011
  • 15 topics
  • Local time: 12:09 AM
  • Zodiac:Leo
  • OS:Windows 7
  • Country:
Offline
  • Time Online: 14h 56m 7s

Posted 06 October 2011 - 01:05 AM

I've got it. Thanks, Broni. :smiley_says_hello:

#9 Broni Re: How do I add an image to a custom profile field?

    Malware Annihilator

  • 24,883 posts
  • Joined: October 04, 2004
  • 1,860 topics
  • Age: 57
  • Skin: IPBoard wide
  • Local time: 10:09 PM
  • Zodiac:Virgo
  • Gender:Male
  • Location:Daly City, CA
  • OS:Windows Vista
  • Country:
Offline
  • Time Online: 57d 10h 30m 28s

Posted 06 October 2011 - 01:07 AM

Cool beans :)
May I see it?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 11 user(s)