4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: zakaria666 on August 30, 2010, 10:08:34 PM

Title: <img src = "....." /> is equal to X and image does not show
Post by: zakaria666 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
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: V@no 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)
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: zakaria666 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
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: V@no 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=""
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: zakaria666 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
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: zakaria666 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
Title: Re: <img src = "....." /> is equal to X and image does not show
Post by: V@no 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.