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>
Here is my plug-in code:
PHP Code:
if ($GLOBALS['domainURL'] == '')
{
$GLOBALS['domainURL'] = $_GET[domain];
}
I have even tried storing the GET param in
$vbulletin->input->clean_gpc('g', 'domain', TYPE_STR). When I use this I only get
Array['domain'] passed back. Perhaps I'm missing something there.
Any help would be appreciated!
Thanks!