The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Switching the forum language by using flags [3.5]
On my board we use two official languages. Registered users can change their preferred language through the CP and guests can use the language drop-down menu on the bottom of the page.
Since the drop-down menu isn't very guest-friendly, I would like to add two (or more) language flags somewhere on my page (probably in the menu). Does such hack already excist ? (@ vbulletin.com they told me a hack probably already excists here, but I couldn't find it :disappointed: ) Can anyone point me in the right direction? Thanks a lot! |
#2
|
|||
|
|||
Can't remember seeing one.
|
#3
|
||||
|
||||
It's been some time ago since I did my posting above....
I think it can't be too difficult to replace the drop-down-language-selection-box with a few country flags somewhere on the forum, only I can not do it Anyone willing to help me out on this one ? Thanks! |
#4
|
|||
|
|||
well I was looking for the same solution...
What i did i placed a flag on the page and linked it with the following code: PHP Code:
in switch_lang(1) the 1 is your language id corresponding to the language.. you have to change it for the language corresponding to the flag !!!!! then open forum/clientscript/vbulletin_global.js in there find: PHP Code:
PHP Code:
Felix |
#5
|
||||
|
||||
@ Felix, I only made a link to http://www.mysite.de/index.php?langid=3
What is the advantage to make it with javascript? |
#6
|
|||
|
|||
the advantage is.. that you stay on the page were you were..
example: you are on https://vborg.vbsupport.ru/showthread.php?p=930702 and you have the flags in the header on every page... you will after clickin the flag be on: https://vborg.vbsupport.ru/showthrea...30702&langid=4 with the hard linked method you will be back on the index.php thats the difference... but in principle both methods work Felix |
#7
|
||||
|
||||
Thank you so much derfelix!
I didn't expect a reply anymore, 6 months after I asked my question... hehe Those subscriptions do work fine |
#8
|
|||
|
|||
can this code also be added as plugin?
seems not to work... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|