The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help: Using a GET param in a header link URL...
Hello,
I'm new to vB but I've scoured many topics/documentation and I can't get this to work. The header for my forum comes from a remote site and is inserted as an <iframe>. The src of the iFrame is passed in from the remote site such as "http://mysite.com". This all works great for the homepage; however, once you click on any link within the forum the GET param is gone (since it wasn't submitted in the link) and the header goes with it. Naturally I need to store the domainURL ("http://mysite.com") as a variable that stays around after the initial GET is captured. To this end I created a global variable and initialized it within a Plugin (global_start hook). Again this works initially (so I know the value is getting set) but it doesn't keep its value past the first page! Here is my template header code: Code:
<iframe src="$GLOBALS[domainURL]/jsp/Header.jsp"> </iframe> PHP Code:
Any help would be appreciated! Thanks! |
#2
|
||||
|
||||
Get parameters are not passed between pages unless you actually put the parameter in the link.
|
#3
|
|||
|
|||
Yes, I realize that. The GET parameter is passed in from the initial call; the problem I am having is keeping that parameter value after further clicks within the forum. Obviously I need to store the value within a variable of some sort and reference that variable. That is the problem I am having; trying to populate a variable that keeps the value, not the GET parameter itself. Make sense?
|
#4
|
||||
|
||||
PHP clears variables when the page finishes executing. The only way would be to either pass the parameter through every link, or store it in a cookie (will not work for those who have disabled cookies).
|
#5
|
|||
|
|||
That would explain it... thanks!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|