The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Passing additional variables to page using vB authorisation
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:
Many thanks in advance. |
#2
|
|||
|
|||
PHP Code:
|
#3
|
|||
|
|||
Quote:
Thanks again. |
#4
|
|||
|
|||
Wrong
global.php will clear all var's. All coding (accept the 4 special arrays and some defines) should be done after global.php. PS I just noticed that your var is called 'my_ip' and will probably not be numeric, so you better use TYPE_STR instead of TYPE_INT. |
#5
|
|||
|
|||
Hmmm, okay, let's try this with a real-world example. Currently, I have my members' area coded as follows (which worked prior to vB 3.5).
The authorisation code is contained in checkauth.php located in the members' directory: PHP Code:
PHP Code:
PHP Code:
Quote:
It works like a dream. Thanks MarcoH64 for your assistance! Regards, Red. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|