![]() |
current URL (lang. witch with flag icons)
I want to switch the language by clicking on a flag image and need the "current url parse". The flags are in the header template.
{current forum URL}/?langid=2 {current forum URL}/?langid=1 ive found a javascript solution here: https://vborg.vbsupport.ru/showpost....49&postcount=4 but isnt there a easyer way like "$vboptions[currentbburl]" or so. you know what i mean? the advantage is.. that you stay on the page were you were.. |
Using $vboptions[bburl] should work for you.
|
Quote:
so if you are at the moment in a thread or forumdisplay page and you click on the flag you get redirected to forumhome so you don't stay on the samepage!! |
has noone a solution?
|
I think you should be able to piece it together using values in $_SERVER (as described on this page: http://us2.php.net/manual/en/reserve...les.server.php), but I'm not sure of the details.
The javascript solution in your OP seems like a good idea - it requires editing a .js file, but other than that it's not hard and the details have been figured out for you. |
ok ive used the javascript solution ..
/EDIT i have found also a other way with a php plugin: PHP Code:
|
no ideas which is better?
|
how i can get the current forum id? is there allready a code aviable for it in vb?
|
Quote:
So it depends where you want to use the code. |
thank you bro!
thats what i need |
All times are GMT. The time now is 03:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|