Simple Machines Community Forum

SMF Support => Converting to SMF => phpBB => Topic started by: zigx on October 11, 2004, 11:05:14 PM

Title: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: zigx on October 11, 2004, 11:05:14 PM
Is it possible?

i just bought vbulletin SOLEY based on the fact that an individual on vbulletin.org wrote an attachment importer for vb's impex (importing system)


can smf import phpbb2 attachments?

i will ebay my vBulletin license lol
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: zigx on October 11, 2004, 11:11:02 PM
just fyi.... i dont understand code THAT well...i see in the phpbb importer that it has some lines regarding attadhments and i just wanted to clarify.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Waste on October 11, 2004, 11:16:32 PM
:)
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: packman on October 12, 2004, 01:49:12 AM
Quote from: zigx on October 11, 2004, 11:05:14 PM
can smf import phpbb2 attachments?

It should do, but as I never had attachments in my phpBB system I couldn't check this part of the code. It does all the other things you mention (as well as polls, smileys, avatars, PMs, etc), so give it a go on a test SMF install. If the attachment code doesn't work, it will be fixed.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Grudge on October 12, 2004, 08:47:22 AM
It should do attachments (Or the attachment mod specifically). I had tested it so it should work. Try it out, it won't touch your phpBB install so if it doesn't work you've lost nothing ;)
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 01:37:09 AM
I tried running the attachments import for phpbb, and it showed as no having it installed. I have all the tables in the phbb database it is looking for . .. Any one have any ideas?
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 02:00:16 AM
sorry for the double post, but when I took out the lines the check for the tables in the converter the attachments went over fine  :D I don't think its the best way to do it but it worked.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: packman on October 26, 2004, 02:18:37 AM
Which lines did you have to remove?
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 02:21:15 AM
the part that checks for the mod:
// Test whether they have the mod installed or not?
$result = mysql_query("
SHOW TABLES LIKE {$from_prefix}attachments");
list ($tableExists) = mysql_fetch_row($result);
mysql_free_result($result);

// if (empty($tableExists))
// {
// echo '
// <div style="color: red;">Fatal Error: Attachments MOD is not installed in your phpBB forum!!</div>';
//
// return;
// }

// Tell ummm...
the if (emty($tableExists)) part.
I am also having a problem with the smilies, it turns them all into words like : goes to P and :D goes to D and :roll: turns to roll, etc. ::) But the smilies of a post show up in quotes of a topic, but not in the post itself. confiusing :S
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on October 26, 2004, 04:02:04 AM
What happens if you add:

var_dump($tableExists);die;

Before the commented section?

-[Unknown]
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: packman on October 26, 2004, 05:34:17 PM
Does the table name need single quotes round it, e.g.

SHOW TABLES LIKE 'phpbb2_attachments'

phpMyAdmin gives an error (on a different table in a different database) if I don't add the single quotes.

Error

SQL-query :

SHOW TABLES LIKE mmap_data

MySQL said:
#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'mmap_data' at line 1
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 06:32:54 PM
[Unknown] - I have not had time to try yours
packman - when I add the ' ' s in phpMyadmin the table will show, but without it will not. Maybe thats the problem? In an hour or 2 I will try the ' ' s then if that does not work I will do [Unknown]'s
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 08:05:28 PM
[Unknown] - That didn't help :(
[packman] - that probably was a problem, but didn't fix it.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on October 26, 2004, 08:11:27 PM
Quote from: Jerry on October 26, 2004, 08:05:28 PM
[Unknown] - That didn't help :(
[packman] - that probably was a problem, but didn't fix it.

Aha, yes, the problem is missing quotes.

My question was just to diagnose, not to fix.

-[Unknown]
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 08:28:37 PM
well when I added your code to it it said NULL, but when I added the quotes, it still says the mod is not installed.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on October 26, 2004, 08:37:41 PM
And, if you add both... does it still say NULL?

-[Unknown]
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 26, 2004, 10:09:35 PM
::) I willl give that a try when my webhost is running normally, for some reason the mysql is going really slow :(
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 27, 2004, 07:31:29 PM
yes it stil shows up as NULL with the new ' ' s.
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 27, 2004, 09:38:56 PM
I have decided to go ahead and convert my forums over any way with the smiley problem, I was only worried about getting my Attachments which went smoothly :) other then the code commenting :-\
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on October 28, 2004, 01:58:43 AM
The correct line should be:

SHOW TABLES LIKE '" . preg_replace('~^`.+?`\.~', '', $from_prefix) . "attachments'");

! The phpBB converter didn't check for the attachments table properly. (phpbb2_to_smf.php)

-[Unknown]
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 29, 2004, 11:50:55 PM
it looks like it takes out all the : in posts, maybe there is a way to fix that? Little too late for my forums, but just posting from what I have noticed. Thats why the smileys didn't convert over. . .
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on October 30, 2004, 12:12:58 AM
Interesting... what version of phpBB were you using?

I hadn't thought of the bbcode_uid thing being blank, from an upgrade possibly.... hmmm..

Sorry your upgrade has been so rocky :/.

-[Unknown]
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: Jerry on October 30, 2004, 01:57:18 AM
I was usuing the most current version. me and my members don't mind loosing the :'s we love our new SMF forums  ;D

forgot to add, I had downgraded from phpBBfm (http://www.phpbbfm.net). After phpbbfm I installed the attachment mod on normal default phpbb since I saw that your converter converted them also. Maybe phpBBfm didn't use bbuid and the normal phpBB didn't have a chance to upgrade the uid stuff  ::)
Title: Re: phpBB2 Members, Posts, Forums and Attachements > SMF
Post by: [Unknown] on November 01, 2004, 03:50:14 AM
 ! Handle the case where the bbcode_uid is blank. (phpbb2_to_smf.php)

-[Unknown]