Author Topic: <img src = "....." /> is equal to X and image does not show  (Read 7758 times)

0 Members and 1 Guest are viewing this topic.

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
<img src = "....." /> is equal to X and image does not show
« on: August 30, 2010, 10:08:34 PM »
I apologize for this for for months, ive left this alone thinking it was my fault and that i will get bck to it later in the future, i have now come back to this issue.

the issue is this...

On every 4images, there are links at the top which say, "new images, top images" etc, now instead of it being a link i want to insert an image to it. So what i did was

<a href="{url_top_comments}"> <img src="example.png" />gggggggg </a>

In dreamweaver i can clearly see the image has been set, but when i upload and then refresh the page the image  is X, it does not show it. So has 4images purposely set it this way ?? or am i just really blind that im making a mistake somewhere?  :P

Thank u guys

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: <img src = "....." /> is equal to X and image does not show
« Reply #1 on: August 31, 2010, 02:52:24 AM »
when you do it like this, you must upload your example.png image into 4images root directory. If you want use images from template directory (templates/<your template>/images), then you'll need use:
{template_image_url}/example.png
or if you want support multi-language (templates/<your template>/images_<lang>), then use:
{template_lang_image_url}/examle.png
(for each available language in your 4images, you'll need create a new folder with it's name for images)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: <img src = "....." /> is equal to X and image does not show
« Reply #2 on: August 31, 2010, 03:20:28 AM »
@VANO

U absolutely ROCKKKKKKKK. Ive done exactly what u said but mmmmm slight problem ok well not problem. Ok ill just come out with it, the thing is inside IE8 the alt attribute will tell the user which each image is, but in google chrome, the alt attribute does not seem to work and users wont know what each image is for. I know that google chrome isnt part of 4images  :P, but is there a solution..

Again thank u VANO, u r very helpful person

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: <img src = "....." /> is equal to X and image does not show
« Reply #3 on: August 31, 2010, 04:00:48 AM »
alt="" tag is for browsers that don't support graphics, that text will be showed in such browsers instead of the image. You need use tittle="" in addition to alt=""
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: <img src = "....." /> is equal to X and image does not show
« Reply #4 on: August 31, 2010, 04:15:08 PM »
@vano

Thank u Vano, it worked. I think 4images should be called  - - - - 4Images - Gallery system that will help you with almost any problem in the world  :P :P :P :P :P...

Thank u so much vano, u rock..

Peace in the middle east lool

Offline zakaria666

  • Full Member
  • ***
  • Posts: 211
    • View Profile
Re: <img src = "....." /> is equal to X and image does not show
« Reply #5 on: September 05, 2010, 04:41:42 PM »
Hello Vano

Quote
if you want support multi-language (templates/<your template>/images_<lang>), then use:
{template_lang_image_url}/examle.png

Im trynig to put images inside of the lang/main.php like this

Code: [Select]
$lang['user_buddy_pending'] = "<img src=\"{template_lang_image_url}/images/pending.gif\" />";
^^^ is this correct by your standards. Ive tried it and I get an X...

thank you for your help Vano

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: <img src = "....." /> is equal to X and image does not show
« Reply #6 on: September 05, 2010, 11:33:34 PM »
No, it's not correct and I see no reason on doing this in first place ;)

If you see an X instead of image, just look in the source at it's path, then you'll be able figure out what's wrong.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)