Author Topic: Add picture instead of lang text  (Read 2899 times)

0 Members and 1 Guest are viewing this topic.

Offline jafori

  • Newbie
  • *
  • Posts: 19
    • View Profile
Add picture instead of lang text
« on: August 12, 2006, 12:19:06 PM »
Hello
I want to add a picture on a MOD instead of adding the text "click here".
The thing is that i run two different language packs on my 4images and i wan each language pack show a customized picture (one swedish picture and one Enligsh picture). I´ve already put the pictures in images_english and images_swedish but i dont know how to write the html script..
If I remember right i have to add the code to mod.php and to the mod.html code right?

Anybody having an idea about what im takling about and having an answer? :)

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: Add picture instead of lang text
« Reply #1 on: August 13, 2006, 02:26:53 AM »
in PHP script use get_gallery_image("imagename without extension"); function
in template use {template_lang_image_url} tag for the path to images_lang folder
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)