Hi,
I already posted this in the Styles Support Forum (
viewtopic.php?f=481&t=2315296), but was advised to post here as it concerns extensions.
I did install the Board 3 Portal Extension and set up some costum blocks with images that act as a navigation box (looks like this now :
http://thelastdivision.de/forum/app.php/portal).
As our community was mostly german when it was founded, the images had german text on them as well. Now the language shifted a bit more to english and other languages, so we have to adapt and make our forum (at least) bilingual.
For 'normal' text we just used the language variables and adapted them to our needs, but now I ran into the problem where I have images.
My first try was using the variable system from the style template, which looked like this :
Code: Select all
<!-- IF S_USER_LANG eq 'de' -->
<a href="http://thelastdivision.de/forum/viewtopic.php?f=85&t=91" class="postlink">
<img src="http://i.imgur.com/ZyXwZqF.png" class="postimage" alt="Vorstellung"></a>
<!-- ENDIF -->
<!-- IF S_USER_LANG eq 'en' -->
<a href="http://thelastdivision.de/forum/viewtopic.php?f=85&t=91" class="postlink">
<img src="http://i.imgur.com/k71WrtR.png" class="postimage" alt="Introduction"></a>
<!-- ENDIF -->
<br>
This however didn't work and thus showed the two buttons at the same time. Is there something wrong with the code or does the template code only work on styles and not on the costum portal boxes ?
Thanks in advance for any help given.