Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by AssassinGF (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

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>

<body bgcolor="#FCD98F" text="#000000" link="#0000FF" vlink="#0000FF" alink="#FF0000">
<font face="Verdana, Arial"><div align="center"><b>iKonBoard 2 PhpBB (members)</b></div><p><font size="-1">

<?
$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]);

$username = addslashes(trim($member[0]));
$user_password = md5(trim($member[1]));
$user_posts = trim($member[4]);
$user_email = trim($member[5]);
$user_viewemail = trim($member[6]);
$user_website = addslashes(trim($member[8]));
if (!strcmp($user_website,'http://')) {$user_website = "";}
$user_icq = trim($member[10]);
$user_from = addslashes(trim($member[11]));

$user_intrest = addslashes(trim($member[12]));
$user_regdate = gmdate("M d Y",trim($member[13]));
$user_sig = addslashes(trim($member[15]));

$user_theme = 1;
$user_lang = "english";
echo ".";


$user_id = $i+1;

$sql = "
replace into users
(user_id, username, user_password, user_email, user_viewemail, user_website, user_from, user_posts, user_intrest, user_regdate, user_sig, user_icq, user_theme, user_lang )
values
('$user_id', '$username', '$user_password', '$user_email', '$user_viewemail', '$user_website', '$user_from', '$user_posts', '$user_intrest', '$user_regdate', '$user_sig', '$user_icq', '$user_theme', '$user_lang' )
";

$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.

Comments
  #2  
Old 05-04-2001, 07:09 AM
Juan Juan is offline
 
Join Date: Nov 2001
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

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.
Reply With Quote
  #3  
Old 05-04-2001, 02:30 PM
Kier Kier is offline
 
Join Date: Oct 2001
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is an official Ikonboard -> vBulletin 2 import script currently in the pipeline.
Reply With Quote
  #4  
Old 05-04-2001, 10:56 PM
Matt2004
Guest
 
Posts: n/a
Default

How long will the official converter take 'til it's finished?
Reply With Quote
  #5  
Old 05-05-2001, 02:55 AM
AssassinGF
Guest
 
Posts: n/a
Default

Keep me updated, this script will be greatly appreciated!
Reply With Quote
  #6  
Old 05-05-2001, 03:03 AM
Mike Sullivan Mike Sullivan is offline
 
Join Date: Feb 2002
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[QUOTE]Originally posted by Matt2004
How long will the official converter take 'til it's finished?
Reply With Quote
  #7  
Old 05-22-2001, 10:42 AM
mojotim mojotim is offline
 
Join Date: Oct 2001
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, God I love the admin features of this script! An ikonboard converter could sway me in your direction...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 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
  • Page Generation 0.04171 seconds
  • Memory Usage 2,252KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (4)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete