Topic: phpBB3 language
Hello all.
Does anybody know if it's possible (simple) to mod phpBB3 to integrate with the language session from vldPersonals?
You are not logged in.
Hello all.
Does anybody know if it's possible (simple) to mod phpBB3 to integrate with the language session from vldPersonals?
All right... I've installed a mod for phpBB3 that allows me to change the language by adding ?lang= to any url in the forum (ie mysite.com/forum/index.php?lang=en).
So, now I'm wondering if it's possible to use an IF statement in vldPersonals when linking to the forum (my site offers two languages)
Something like this:
!-- IF language=english --
a href="mysite.com/forum/index.php?lang=en"
!-- ELSE --
a href="mysite.com/forum/index.php?lang=fr"
!-- ENDIF --
Is this somehow possible?
If there's a will there's a way right?
Well, I got it to work by using javascript. However, an IF statement would be a better approach if anyone can help..
If not, I'll use this:
var aElems = document.getElementsByTagName('a');
for (var i=0,len = aElems.length; i<len; i++){
if (aElems[i].title.indexOf('Forum') != -1){
aElems[i].href = '/forum/index.php?lang=en';
}
}<!-- IF session.language == "english" -->
it would have been nice if someone had taken few seconds of their time to write this...