Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Change pictures depending on language?

Aloittaja Sheda, heinäkuu 19, 2011, 04:46:03 IP

« edellinen - seuraava »

Sheda

Hey, another question.

I intend to replace most text-based buttons on my forum with pictures. It looks really good, but there's an issue: I'd like to keep English language in my forum (default language is another one), yet if you chose English as your language, you'd still get the same pictures for things like "quote", "profile" etc.
Is there a way to code that, if someone chose English they'd get different pictures than the default ones?
I'm pretty certain it can be done... after all text can be changed too. Just no idea how to pull it off.

Illori

which version of smf are you running? what theme are you using?

Gary

To call language specific images use:

<img src="' , $settings['lang_images_url'] , '/filename.png" alt="" />

Then, simply place them in Themes/[THEME]/images/[LANGUAGE]/

This is universal among all versions and all themes.
Gary M. Gadsdon
Do NOT PM me unless I say so
War of the Simpsons
Bongo Comics Fan Forum
Youtube Let's Plays

^ YT is changing monetisation policy, help reach 1000 sub threshold.

Sheda


Advertisement: