The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Okay, I'm thinking this would be pretty easy to implement, but for some reason I just can't get it to work. Here's the situation:
I want to be able to have a variable (called subid) passed to register.php, and have it carry over thru the various pages that it generates. Here is an example: link: register.php?subid=3 So when that link is followed, the variable subid is "remembered" thru all of the pages. Essentially that variable will be passed to a different page after the registration is completed. The user need not be aware of this number to keep things simple. Could the register.php file be modded, or would using a custom profile field that is auto populated with the correct value be the best way to do this? Hope that I was clear enough in this post so you can understand what I'm trying to do! Many thanks in advance to anyone who can help!!! David |
#2
|
|||
|
|||
![]()
What you are trying could create a potential security risk where someone could become an Administrator.
Maybe you can better explain what you want to achieve, so we can give you the best advice. |
#3
|
|||
|
|||
![]()
Actually, I already figured it out, and it works like a charm.
Here's what I'm doing. I'm making this mod for a site that has subscriptions to various sub-forums about video games. For each game, there are two subscriptions: 1 month, and 1 year. Also, there is an "all access pass" that gives you access to all of the forums. Essentially, I needed a way to make the subscriptions list relevent to which game the user is interested in. For example, the user clicks on an advertisement banner from blahblahblah.com which then takes them to an information page about that specific game on the forum site. They read all about it, and if they decide to register & subscribe to that game, the "subid" variable is passed along thru the registration process. After the registration is complete, they are automatically forwarded to the subscriptions.php file, which in turn parses the list of subscriptions based on which game they were trying to sign up for. Now, instead of seeing a list of more than 12 subscriptions, they see 3 options: monthly, yearly, and an all access pass. All of those pertain to the specific game they were originally interested in. Note that I'm not allowing any variable to be passed on the URL. Only the subid variable will be recognized, and if it is "out of range" from my switch statement, it just displays the original subscription page with all 12 options. Also, if you omit the subid variable, you see the original page as well. It was actually pretty easy, and only entails about 50 lines of code. If anyone is interested, I have a copy of the "hack" with detailed instructions on how to implement it. It's not as clean as it possibly could be, but it does the trick and I haven't had any errors in my testing thus far. Thanks for replying, and reading this far! ![]() David |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|