![]() |
correct formation of the session data for a plugin
I am hacking together a plugin to get the portal page to display properly as a location - rather than location unknown in the who is online page and I can't form the URL properly since I suspect it has changed since the original hack was written.
I have this Code:
$userinfo['where'] = '<a href="/forum/welcome.php?' . $vbulletin->session->vars['sessionurl'].'">Portal</a>'; Code:
$vbulletin->session->vars['sessionurl'] Thanks in (vb)advance guys! |
What is the displayed URL?
|
I use the same session var on my 3.8.0 site.
|
The URL it returns is:
http://www.archeli.com.au/forum/welcome.php? do I need to declare the variable for it to be usable or something when making a custom plugin?? |
Code:
$userinfo['where'] = '<a href="/forum/welcome.php' . $vbulletin->session->vars['sessionurl_q'] . '">Portal</a>'; |
Thank you ! That has fixed it!
|
All times are GMT. The time now is 08:22 PM. |
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:
|