The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$vbulletin->GPC
Hi,
Does anyone know which function puts values into the $vbulletin->GPC array, i.e. the actual initialisation of the array. Thanks. Michael |
#2
|
|||
|
|||
It stores cleaned input which has been passed through the vBulletin Input Cleaner.
Using the vBulletin Input Cleaner What are you trying to do? |
#3
|
|||
|
|||
Even though this thread is quite old:
I am looking for an answer to dayzman's question. Why? vbulletin preselects a certain value within certain dropdown boxes. For instancem when registering at a forum, within the 'showbirthday' dropdown list, the entry with value="2" is preselected. This is a privacy concern! I would like to change this to the entry with value="0" being shown. Within register.php I found: $sbselected = array($vbulletin->GPC['showbirthday'] => 'selected="selected"'); I concluded that the values I am looking for are to be found in the GPC Array. Well, that's where I am stuck and I would appreciate help with this. Thanks. |
#4
|
|||
|
|||
The $vbulletin->GPC array contains all user input data that has been passed through the input "cleaner". ($_POST, $_GET, $_COOKIE) You sure you don't just want to make a template modification to change the default value of the showbirthday option?
|
#5
|
|||
|
|||
I wasn't sure how chaging the template could possibly effect other functionallity (I am not a VB pro as you can tell by my question).
And since the values of the listbox is not a user input I thought... Anyways: Enough on problems, let's focus on solutions! Where and how would I have to change which template in order to achieve a different pre-selection within the 'showbirthday' listbox? |
#6
|
|||
|
|||
It would probably be easier for you to modify the register.php file.
Look for the following in register.php: PHP Code:
|
#7
|
|||
|
|||
...it's so simple when you know what to look for! ;-)
Thanks for your help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|