![]() |
Change data @ $vbulletin->options
Hi,
Well I'm running a plugin that I need to change some things in the datastore, but how can I change a certain element in the datastore? I know the field name and I can see it in the store and can read the value using $vbulletin->options[' name here '], but how can I change the serialized data stored in the data store? |
If the data is serialized then use PHP: unserialize - Manual
|
Quote:
|
PHP Code:
|
Quote:
|
No, it saves the options from table setting into the datastore.
|
Quote:
So what would I use to store my new array of ID's in the datastore field 'banned_users'? Thanks. |
PHP Code:
Also keep datastore caches in mind. |
Quote:
Thanks again. |
All times are GMT. The time now is 05:55 PM. |
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:
|