The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help: extracting data from calendar custom fields
Hi
Total PHP newbie here so really stuck and would appreciate any help!! I have created some custom fields to my calendar - basically event type, location and time. These are stored in the "event" entity in the field "customfields" as follows:- a:3:{i:4;s:7:"Concert";i:5;s:29:"Town Hall";i:6;s:3:"20:00";} I've now created a page where I want to display these details. I can get the date and event title to show ok but when I add the customfield I'm obviously getting all the codes too. How do I seperate this field so that I end up with Concert, Town Hall, 20:00 in variables so that I can output these on my page were required. Thanks in anticipation of an answer |
#2
|
|||
|
|||
That string is a serialized array, so you'd run the value through the unserialize() php function, and the result should be an array of 3 strings.
|
#3
|
|||
|
|||
many, many thanks - will try that.
Appreciate you taking the time to answer. |
#4
|
||||
|
||||
If you manage to get this Going it would be great to see it in action mate,Something Vbulletin needs as default
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|