![]() |
How to Update Custom Profile Fields (solved)
Hi. After completing a set of calculations in a PHP file (as a CMPS module), I'm trying to commit the results into a few custom profile fields for the current user.
I've read all posts and articles, but still without success. My last code is: Code:
$query = "UPDATE vbulletin_prefix_userfield --------------- Added [DATE]1214541980[/DATE] at [TIME]1214541980[/TIME] --------------- I was helped by Ideal Web Technologies who reminded me to add the following statement after the query definition: Code:
$vbulletin->db->query($query); Unfortunately, I couldn't make do with vbulletin_prefix_userfield, vbulletin_prefixuserfield, or .table_prefix. Maybe CMPS cannot read these globals. So the final script looks like this: Code:
$query = "UPDATE userfield |
No problem glad we got it fixed for you. :)
|
The User datamanager should be used when dealing with user data.
|
Can you please explain.
Quote:
|
<a href="http://www.vbulletin.com/docs/html/data_managers" target="_blank">Data Managers</a>
|
Many thanks, but as a non-technical, doing-the-best-I-can-to-get-by type of a person, I beg you to translate the above statements to appropriate data_manager ones. I'll take it from there to be implemented all around, and so will so many other vBs who recognize the importance of using these classes.
The Data Managers manual is overwhelming at best:) Quote:
|
All times are GMT. The time now is 05:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|