The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Problem in profile.php
In profile.php there exsists this piece of code
PHP Code:
I have added the field to $validfields using a hook (userdata_start) and set the userdata and GPC in another (profile_updateprofile). The addition of the field only works if it is also present in the code block above (have tryed it with the code hacked in and it works) and have no idea how to add it there using a hook. If you can help I will release the mod here and this is bound to be useful refrence for others Also what does $vbulletin->input->clean_array_gpc('p', array()); do? and what part does the 'p' play? |
#2
|
||||
|
||||
clean_array_gpc() takes user input, "cleans" it and makes it avialable under keys in array $vbulletin->GPC (Example: $vbulletin->GPC['homepage']).
'p' indicates that it should take $_POST (eg. Form Data) as Input. |
#3
|
||||
|
||||
Quote:
I still can't get this to work though, i've posted both hooks for you to look at, you'd know better if im even doing the right thing. profile_updateprofile PHP Code:
userdata_start PHP Code:
|
#4
|
||||
|
||||
Quote:
Also, if you just want to do that to one variable, use this: PHP Code:
|
#5
|
||||
|
||||
It works, Thank you sooo much
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|