SMF Support > Converting to SMF
Tweaking the converter for Membermap (Gold) data?
purplepaisley68:
I got an error from my bit of code, strpos() empty delimiter (forgot to copy the exact error), what have I done wrong there?
Nevermind, I see I've got my needle and handstack swapped. doh.
purplepaisley68:
Ok, finally finished this off, and it works.
In yabb2yabbse.php
Find this:
--- Code: --- $userData[5] = str_replace(array('&&', '&&'), "\n", $userData[5]);
--- End code ---
Replace with:
--- Code: --- $userData[5] = str_replace(array('&&', '&&'), "\n", $userData[5]);
//* Membermap tweak
$findme='|';
$pos = strpos($userData[15], $findme,1);
if ($pos !== FALSE){
$userLocation = explode("|",$userData[15]);
$userData[15] = $userLocation[1];
}
//* Membermap tweak end
--- End code ---
This strips out the old map co-ordinates and inserts only the text location of the user into their profile. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version