The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Plugin: profile_updateprofile
I am trying to use $userdata->set to update a custom table field in 'user', however cannot find a way to merge the data with the already existent GPC array. Is this even possible? |
#2
|
|||
|
|||
![]()
What do you mean with "merge the data with the already existent GPC array"?
|
#3
|
|||
|
|||
![]()
I am trying to update two custom fields in the user table when profile data is updated (profile_updateprofile). I want to clean the posted textbox inputs before inserting into the database.
I have in userdata_start: PHP Code:
PHP Code:
|
#4
|
|||
|
|||
![]()
That code would not empty any GPC variables.
|
#5
|
|||
|
|||
![]()
Use var_dump() to debug variables if you are having problems. I don't see anything wrong with your code...make sure the data is being sent from the form and is in the $_POST array after you've submitted the form.
Also I suggest that you change 'homepagedesc' & 'homepagetitle' to TYPE_NOHTML to reduce vulnerabilities. |
#6
|
|||
|
|||
![]()
I will change to TYPE_NOHTML. Thanks for the advice.
As for the GPC variables, what I meant was when I update my profile, any profile fields other then 'homepagetitle' and 'homepagedesc' are not set because PHP Code:
PHP Code:
|
#7
|
|||
|
|||
![]()
Sorry but i still dont understand what you mean. Using clean_array_gpc() does not empty previously set variables.
|
#8
|
|||
|
|||
![]()
/me is retarded
To test my plugin I was entering 'home page url' as the data for the homepage field and other strings for the custom fields I made. It just came to me that homepage was not updating because I was not inputing a valid url. Don't ya hate thinking deeper then you have to? |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|