Hi all,
I have successfully set up a members' area on my site which uses vB as the authorisation and member list. It all works rather well, except for when I want to pass additional variables to a page using this system.
I am using the code from
https://vborg.vbsupport.ru/showthread.php?t=61112 to log in to the members' area. I'm running vB 3.5.
The problem comes when I have a page that requires additional variables to be passed, eg:
http://example.com/members/index.php?my_id=1. vB seems to nullify all variables being sent that are not vB variables. I am aware of the reasons for doing so, but don't know of a sensible way of retaining the values of my variables. for use later in the php script.
Specifically, the code I am using at the top of each member's page is as follows:
PHP Code:
/* value for $my_id is passed in url, eg: test.php?my_id=1 */
chdir("/path/to/public_html/forum/");
require('./global.php');
chdir("/path/to/public_html/members/");
if ($vbulletin->userinfo['userid']==0)
{
require('/path/to/public_html/members/login.php');
exit;
}
/* At this point, $my_id is empty */
Can you assist please?
Many thanks in advance.