The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
unserialize problem
Ive got a bit of serialized text, with this value:
PHP Code:
What can be done about this? |
#2
|
||||
|
||||
can you please post the complete serialized text?
if you have two strings, then it must be an array, so the array code serializing string would be needed |
#3
|
||||
|
||||
[edit]
w00000000000000t! I managed to solve the problem, and believe it or not YOU Xenon put me onto the right track with your talk of arrays Now all I need is to comma seperate the names after the unserialize..... [/edit] [reflection] I think this ++++ might actually help with the RPG conversion as well If thats true then I will start worshipping Xenon XD [/reflection] |
#4
|
||||
|
||||
|
#5
|
||||
|
||||
nah that didnt work.
But it doesnt look too lame as it does, it just displays an extra comma behind the last name :P Thanks for ye olde helpe |
#6
|
||||
|
||||
hmm, implode doesn't add a comma behind the last entry, so you have to make, sure that the last name is also really the last entry.
So an array: 1 => 'Test', 2 => 'Name', 3 => '' will give an imploded string: 'Test,Name,' but if you have a correct array 1 => 'Test', 2 => 'Name' it will result in: 'Test,Name' |
#7
|
||||
|
||||
No what I said was that the implode itself didnt work.
It didnt implode the comma as it was supposed to. As of now I got PHP Code:
Code:
Array ( [0] => array ( [username] => "Username 1" ) [1] => array ( [username] => "username 2" ) ) lol dont ask me how the arrays got stored so silly, I took vB3's own query and modded it to my own need for it. |
#8
|
||||
|
||||
ahh, ok, if you have such an array, then implode won't work, you're right
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|