The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need to programmatically change the value of smtp_host in vbulletin mysql db, under datastore / options
This screenshot shows which variable/database/table I am referring to: http://www.vbulletin.com/forum/attac...0&d=1173109661 It would be very simple if datastore / options, had only one value in it, but there is like 50 different variables and I need to change the value of only one of them, lets say it is variable: smtp_host How do I do this? This is my code, to do change the value of 'smtp_host' to 'smtp.mail.com': PHP Code:
Warning: unserialize() expects parameter 1 to be string, array given in \smtp.php on line ... Afterwards, my whole forum went haywire and I had to restore the 'datastore' table from the backup, because it was giving me this error: Fatal error: Cannot create references to/from string offsets nor overloaded objects in: C:\..\..\includes\class_core.php on line 1283 Anyhow, any suggestion on how I can update this one field? It'll be something simple, I bet, but I am stuck on it, the whole rest of my hack is already done... Can someone help? Joe ![]() Anyone? Could anyone please look at this? It must be simple, but for some reason it won't work... |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|