The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vb3: New Profile Fields = Nothing Sent to UPDATE in query. [solved]
In vb2, everything in the config file I'd written read and saved fine. However, with vb3, there's a whole new world of hurt with how vb3 reads and saves it's <form> information. [in the profile, specificly.]
Simply put, the form doesn't save anything. I've figured out all of the redirecting stuff in profile.php and the seperate config file I've written (I upgraded it to the request and post stuff vb3 requires, as well as the template output and redirection..) But nothing saves. I've even put a 1 in the query just to mess it up so I can actually verify that nothing was being transferred from the form to the query save.. and sure enough, nothing was being passed into the variables. Am I correct in assuming that globalize now works the way forms transmit their data into the query to save? If that's the case, how does globalize need to be typed up for example? Am I missing any other big points on how to transfer this information? Just curious. |
#2
|
|||
|
|||
I believe that the globalizing is done in the init.php and adds the variable to the $_POST array, to add variables you have to sue the globalize function. for example:
PHP Code:
Cheers, g-force2k2 |
#3
|
||||
|
||||
Thanks g-force! Again and again.
For anyone else new to coding in vb3 with this or curious, in the following statement: PHP Code:
PHP Code:
Also note in your templates that to process your form, an extra <input> in the form must be something like: HTML Code:
<input type="hidden" name="do" value="NAMEOFPOSTIF">
Hope this helps any new coders. |
#4
|
||||
|
||||
For security-reasons it's generally not a good idea to globalize all variables at the top ,otherwise we could just leave register_globals on .
Use globalize carefully only at places where you really need it (eg. in your $_REQUEST['do'] = 'foobar' {}), and only for those variables you are going to process. |
#5
|
||||
|
||||
Thanks for the tip.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|