The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
What is the displayed URL?
|
#3
|
||||
|
||||
I use the same session var on my 3.8.0 site.
|
#4
|
|||
|
|||
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?? |
#5
|
||||
|
||||
Code:
$userinfo['where'] = '<a href="/forum/welcome.php' . $vbulletin->session->vars['sessionurl_q'] . '">Portal</a>'; |
#6
|
|||
|
|||
Thank you ! That has fixed it!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|