Version: , by AssassinGF (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 05-04-2001
Last Update: Never
Installs: 0
No support by the author.
Has anyone finished an IkonBoard to VBulletin converter?
Like many of the people that post on these forums i'm new to PHP. An older thread about an IkonBoard conversion started by Juan listed the following code as a start or as an example:
Quote:
Here is the code that converts members from Ikonboard to phpBB, I am sure that someone with enough knowledge can modify it to work with Vbulletin.
The code is posted below:
<?php
/**
* Create a directory to work in. Chmod 777.
* Place this file in that directory.
* Copy your iKonBoard member cgi files into the working directory.
* Configure mysql variables below, as necessary
* Run this file.
* Nicola Asuni (www.technick.net) 11 march 2001
*
*/
?>
<html>
<head>
<title>iKonBoard 2 PhpBB (members)</title>
</head>
<?
$memberpath = getcwd();
//$memberpath = "/path/to/members";
$dbhost = "localhost";
$dbname = "phpbb"; //change this to correct value
$dbuser = "user"; //change this to correct value
$dbpass = "password"; //change this to correct value
// open directory, load member filenames into array
$handle = opendir($memberpath);
$a = 0;
while ($file = readdir($handle))
{
if((preg_match('||', $file)))
{
$members[$a] = $file;
echo "<br>file $a: $file";
$a++;
}
}
closedir($handle);
// count remaining elements of array
$i = count($members) - 1;
// insert data into phpBB mysql database
$db = mysql_connect("$dbhost", "$dbuser", "$dbpass") or
die("<P>Error: could not connect to the database. Using username $dbuser and password $dbpass.<BR>Please go back and try again.");
@mysql_select_db("$dbname", $db) or die ("<P>Error: Could not open database.");
// for each member, gather data for import
echo "<br>Processing $i members .";
while ( $i >= 0 ) {
$linetodecode = file($members[$i]);
$member = explode( "|", $linetodecode[0]);
$result = mysql_query($sql, $db) or die("<P>Could not query the database! Check syntax! <br>Failed inserting $username ($members[$i])");
$i--;
}
echo "<P>Done Processing!";
exit;
?>
<p>
</body>
</html>
I hope someone can help me with this, but if not I understand. I'm sure this isn't a highly requested hack and not of very much importance compared to others. Any help is appreciated though.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I have tried modifying the code to work. At one time I was able to export some of the information but ended up corrupting the tables.
I don't have enough knowledge or experience to make it work. Also tried looking at other export scripts and comparing but I think is best left to the experts.
Will try to do it by hand, it's going to take ages.