The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Write Some Settings
Hi,
I'm wondering, is there a vBulletin function that will allow me to write something to a database in vBulletin? - Pc1203 |
#2
|
||||
|
||||
What exactly are you trying to write?
|
#3
|
|||
|
|||
I'm trying to write what user profile template the user wants. It will be in an external page, not the UserCP.
- Pc1203 |
#4
|
||||
|
||||
Well the vBulletin database is no different than any other. You can use an insert/update query to add rows or tables.
Code:
$db->query("UPDATE " . TABLE_PREFIX . "table SET row = var"); |
#5
|
|||
|
|||
Ok, thanks!
- Pc1203 EDIT: Where would I put the information I want to update? EX: Can you tell me how to update this: vB_userfield, field7 |
#6
|
||||
|
||||
If you want to update a profile field, try the following:
Code:
$vbulletin->db->query("UPDATE userfield SET fieldX ='" . $data . "' WHERE userid =".$userid); |
#7
|
|||
|
|||
Ok, thanks a bunch! You're a great helper!
- Pc1203 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|