4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started 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
-
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)
-
@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
-
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=""
-
@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
-
Hello Vano
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
$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
-
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.