Jump to content


- - - - -

RESOLVED: Image code for profile field


  • Please log in to reply
15 replies to this topic

#1 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 25 January 2011 - 06:57 PM

I am having a little trouble with this image code here:

<img scr='/style_images/zodiac/{key}.gif'> {content}

I have the images in the right directory and added the names as so to the option content for the drop down like this:

aquarius=Aquarius
aries=Aries
cancer=Cancer
capricorn=Capricorn
gemini=Gemini
leo=Leo
libra=Libra
pisces=Pisces
sagittarius=Sagittarius
scorpio=Scorpio
taurus=Taurus
virgo=Virgo

Images not showing so I guess I haven't done the code correctly.  :wacko:

#2 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 25 January 2011 - 07:48 PM

If it's for the forum in your signature, the folder/images aren't in there. Going to http://www.dailychat...iac/scorpio.gif gives a 404, and so does http://www.dailychat...e_images/zodiac

If you're unsure how to determine the correct path for your images, let me know step by step how you navigate to the folder in your FTP program.

#3 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 25 January 2011 - 08:03 PM

You know when it's been a long day when you have forgotten to upload the images... :lol: :lol:  

I know I meant to do that....Okay, still not working though. I think I must have missed something else..

#4 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 25 January 2011 - 08:10 PM

The images are there (see the last link in my post), but the first character in the file name is upper-case. Either rename the files, or change the profile field to reflect that.

#5 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 25 January 2011 - 08:33 PM

Yeah, I noticed that I had given the Z a capital but changed it back. Still not showing up but thanks for your help.  :)

#6 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 25 January 2011 - 08:38 PM

Nope, the images have an upper-case char.
http://www.dailychat..._images/zodiac/
Aquarius.gif
Aries.gif
Cancer.gif
Capricorn.gif
etc

#7 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 26 January 2011 - 08:11 AM

I keep changing it around to try and see what is working.  :blush: The characters are back in small case but not working.

Thanks though for trying to help. :)

#8 Martin

Martin

    But but, it's not only only!

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 7,081 posts
  • Location:Hammerfest, Norway
  • Real Name:Martin Aronsen
  • IPB Version:v3.2.x
Contributor

Posted 26 January 2011 - 11:21 AM

View PostChocco, on 26 January 2011 - 08:11 AM, said:

I keep changing it around to try and see what is working.  :blush: The characters are back in small case but not working.

Thanks though for trying to help. :)
For some reason, there are still have a capital first letter in the image names.

Try this as the code for the dropdown instead:
Aquarius=Aquarius
Aries=Aries
Cancer=Cancer
Capricorn=Capricorn
Gemini=Gemini
Leo=Leo
Libra=Libra
Pisces=Pisces
Sagittarius=Sagittarius
Scorpio=Scorpio
Taurus=Taurus
Virgo=Virgo
That should work.

#9 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 26 January 2011 - 11:26 AM

View PostMartin, on 26 January 2011 - 11:21 AM, said:

View PostChocco, on 26 January 2011 - 08:11 AM, said:

I keep changing it around to try and see what is working.  :blush: The characters are back in small case but not working.

Thanks though for trying to help. :)
For some reason, there are still have a capital first letter in the image names.

Try this as the code for the dropdown instead:
Aquarius=Aquarius
Aries=Aries
Cancer=Cancer
Capricorn=Capricorn
Gemini=Gemini
Leo=Leo
Libra=Libra
Pisces=Pisces
Sagittarius=Sagittarius
Scorpio=Scorpio
Taurus=Taurus
Virgo=Virgo
That should work.

Yeah, tried that but not working neither. It only shows the name in the posting field ie...Libra but not the image.
It must the the image link I am using, something to do with that I presume.

#10 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 26 January 2011 - 11:36 AM

I think the problem is in the topic view format when you set the custom fields up.

Looking at the page source when viewing one, I see (for example)

<img scr='/style_images/zodiac/Libra.gif'>

src not scr ;) :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#11 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 26 January 2011 - 11:45 AM

View PostAndyF, on 26 January 2011 - 11:36 AM, said:

I think the problem is in the topic view format when you set the custom fields up.

Looking at the page source when viewing one, I see (for example)

<img scr='/style_images/zodiac/Libra.gif'>

src not scr ;) :)
Ah, that's the one.  (w00t) Thank you both for your help. :)

Going to be awkward now...is there a way to have to have the image underneath the zodiac name at all?

#12 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 26 January 2011 - 12:01 PM

Try putting a <br /> just before the {content} part in the topic view format.

You 'might' have to put in two. Worth a quick try.

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#13 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 26 January 2011 - 12:22 PM

View PostAndyF, on 26 January 2011 - 12:01 PM, said:

Try putting a <br /> just before the {content} part in the topic view format.

You 'might' have to put in two. Worth a quick try.
That worked. :) Actually if there a way for me to remove the 'Libra' name and just have the image? Sorry to be a pain.  :blush:

#14 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 26 January 2011 - 12:25 PM

Try removing the {content} part completely. Not tested :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6

#15 Destiny67

Destiny67

    Coder

  • IM Supporters
  • PipPipPipPipPip
  • 178 posts
  • Location:South Wales
  • Real Name:Maria
  • IPB Version:v2.3.x

Posted 26 January 2011 - 12:40 PM

View PostAndyF, on 26 January 2011 - 12:25 PM, said:

Try removing the {content} part completely. Not tested :)
That's it! So much better now. Thanks so much Andy and Martin.  B) :thumbsup:

#16 AndyF

AndyF

    Cogito ergo sum

  • Management
  • PipPipPipPipPipPipPipPipPipPip
  • 8,414 posts
  • Location:Derby, UK
  • Real Name:Andy
  • IPB Version:v3.2.x
Contributor

Posted 26 January 2011 - 12:44 PM

The issue this topic was opened for has now been resolved. :)

View my tutorials

Please do NOT pm me with support related questions unless requested.
If you are in need of help or assistance, please post on the forum in the appropriate section!



A Look Back - 1.0.1 - 1.3.1 - 2.0.0 - 2.1.7 - 2.2.0 - 2.3.6




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users