The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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.. |
#2
|
|||
|
|||
Using $vboptions[bburl] should work for you.
|
#3
|
|||
|
|||
no! because you dont understand what is "current page". the $vboptions[bburl] is just the forumhome!!
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!! |
#4
|
|||
|
|||
has noone a solution?
|
#5
|
|||
|
|||
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. |
#6
|
|||
|
|||
ok ive used the javascript solution ..
/EDIT i have found also a other way with a php plugin: PHP Code:
|
#7
|
|||
|
|||
no ideas which is better?
|
#8
|
|||
|
|||
how i can get the current forum id? is there allready a code aviable for it in vb?
|
#9
|
||||
|
||||
Quote:
So it depends where you want to use the code. |
#10
|
|||
|
|||
thank you bro!
thats what i need |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|