1

Topic: phpBB3 language

Hello all.

Does anybody know if it's possible (simple) to mod phpBB3 to integrate with the language session from vldPersonals?

2

Re: phpBB3 language

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?

3

Re: phpBB3 language

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';
    }
}

4

Re: phpBB3 language

<!-- IF session.language == "english" -->

it would have been nice if someone had taken few seconds of their time to write this...