[BETA] SMF 1.1 RC2 Converter - Including update for vB 3.5

Started by Grudge, January 13, 2006, 05:29:56 PM

Previous topic - Next topic

JayBachatero

Can you please try reuploading convert.php.  Try using another FTP client.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

T313C0mun1s7

#21
Tried that. In fact, I tried reuploading and manually specifying ASCII, redownloading convert.php, waiting a day in case convert.php had a bug then redownloading, and uploading using both AbsoluteFTP and the hosting filemanager utility.

If I had shell access I would try downloading directly onto my host. But alas, they charge an extra $20 for shell access, and at that price I figure most things that would require the shell I can get support to do for free.

If someone could post a MD5 checksum of a known good version, (I downloaded it for the third time just this afternoon and that is the version I have) I could do a checksum to make sure it is correct.

Thank you again for your help.
Posts are packaged by intellectual weight, not by volume.
Some settling of contents may have occurred in transit.

T313C0mun1s7

Additional Info:

here is the code around that area as it is in the file residing on my host:

1357 if ($_GET['substep'] <= 10)
1358 {
1359 while (true)
1360 {
1361 $request = convert_query("
1362 SELECT ID_ATTACH, filename, attachmentType
1363 FROM {$to_prefix}attachments
1364 WHERE ID_THUMB = 0
1365 AND (RIGHT(filename, 4) IN ('.gif', '.jpg', '.png', '.bmp') OR RIGHT(filename, 5) = '.jpeg')
1366 AND width = 0
1367 AND height = 0
1368 LIMIT $_REQUEST['start'], 500");
1369 if (mysql_num_rows($request) == 0)
1370 break;
1371 while ($row = mysql_fetch_assoc($request))
1372 {
1373 if ($row['attachmentType'] == 1)
1374 $filename = $modSettings['custom_avatar_dir'] . '/' . $row['filename'];
1375 else
1376 $filename = getAttachmentFilename($row['filename'], $row['ID_ATTACH']);
1377 // Probably not one of the converted ones, then?
1378 if (!file_exists($filename))
1379 continue;
1380
1381 $size = @getimagesize($filename);
1382 if (!empty($size) && !empty($size[0]) && !empty($size[1]))
1383 convert_query("
1384 UPDATE {$to_prefix}attachments
1385 SET
1386 width = " . (int) $size[0] . ",
1387 height = " . (int) $size[1] . "
1388 WHERE ID_ATTACH = $row[ID_ATTACH]
1389 LIMIT 1");
1390 }


and I checked out the database in phpMyAdmin and see that the boards table contains one row with my first forum, but other tables don't seem to have much - ie. the members table only has the one admin user, the catagories table only contains "General Catagory" which is not one of mine, etc.
Posts are packaged by intellectual weight, not by volume.
Some settling of contents may have occurred in transit.

offaxis

I am getting an error

Caused the error:

Duplicate entry '586' for key 1

Any ideas?

nexus4

Quote from: T313C0mun1s7 on March 16, 2006, 09:28:19 PM
When I try to run convert.php I get:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
expecting T_STRING or T_VARIABLE or T_NUM_STRING in
/home/ldsxonl/public_html/SM/convert.php on line 1368


I get the same error, except for line 1333.  No possible problem with ftp, I run my own server.  This is also phpBB2 to SMF.  (Mmmmm.... SMF....).  Fresh SMF rc2, phpBB2 2.0.17.

DonMucios

Quote from: They Call Me Tater Salad on March 16, 2006, 11:39:00 AM
Get another host.  ;) 

Did you try adding that to the conver file?

added but did not recognise it

Prasad007

when i goto this convert.php
i get a blank page with this:
QuoteParse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/rajhosti/public_html/smf/convert.php on line 1368

JayBachatero

#27
Prasad where are you converting from.  Can you please look for topics to post your junk in.  STOP Spamming >_<

EDIT: I'm in school right now so I will take a look at this later on when I get home.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Prasad007

Im converting from Vbulletin 3.5

Quote from: They Call Me Tater Salad on March 17, 2006, 09:33:44 AM
Try this one.
got this:
QuoteParse error: parse error, unexpected $, expecting ')' in /home/rajhosti/public_html/smf/convert.php on line 130

*EDIT*
looks like an incomplete file.. 5 kb!?!?
the earlier one was 50+ kb.

Oldiesmann

Re-upload it. The file here is 58.1kb, and I didn't touch anything anywhere near that line.
Michael Eshom
Christian Metal Fans

Prasad007


JayBachatero

#32
Here you go.  damn internet from the school >_<

This line has (') when it shouldn't have.
LIMIT $_REQUEST['start'], 500");
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Prasad007

worked like a charm. Thank you! :)

btw, membergroups and permissions werent converted..

T313C0mun1s7

The new convert.php file seemed to work for my issue as well. At least so far, I don't have time to go through the conversion process right now, but I did get the first step screen rather than an error.

I will report back after I do the conversion.

Thank you.
Posts are packaged by intellectual weight, not by volume.
Some settling of contents may have occurred in transit.

JayBachatero

Glad to hear that solved that part of the issue.  If anything else comes up (hope not :P) just let us Know :).
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

T313C0mun1s7

I am back, here is how it went.

My databases were separate and had different users. I got an appropriate and easy to decipher error message. so I added the SMF database user to the phpBB database - no problem.

It did not convert my smilies - but we already knew that.
My ranks had custom graphics that did not get converted - but I think that has already come up too.
My membergroups were prefixed with phpBB, and I will have to clean that up. It did the same to bans.
Since I have the SMF membergroups and the phpBB membergroups I will have to go through and check all permissions - it looks like the imported membergroups have no permissions at all.

After I get this all sorted out and I am ready to delete the old board I want to move it to the root directory. I assume I can just move all the files to root and update the settings. If this blocks my access to the forum admin because it was moved, where do I manually make the changes? It is a config file, or in the database?

Thank you again for your help. I really like the default theme. I think as I build a theme so it looks like my old boards I might keep some elements of the current default theme.
Posts are packaged by intellectual weight, not by volume.
Some settling of contents may have occurred in transit.

JayBachatero

Glad to hear most of it is up.  About the permissions I will let oldiesmann or someone take a look at it.  When you move your forum to the root use repair_settings.php to repair the paths and you should be good to go :)
What is repair_settings.php?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

T313C0mun1s7

#38
Thank you for the information. Where can I find repair_settings.php?

I copied all my rank images to the correct directory and set the groups to use them. It was fairly easy. Now I just have to do a search and find out how to create a theme so I can start converting the look and feel back.

EDIT:

I just noticed that although users correct avatar is in their profile now and shows up next to their names, when editing the profile it is broke. When choosing a avatar the user sees the two deafult categories (which I don't want) and [Galery] which is the name of my custom avatar set. The problem is there are no picture available in my custom set. The link seems to work on the imported users, but not when editing the profiles. What is the difference here, and what do I need to do to fix it? Thank you once again.
Posts are packaged by intellectual weight, not by volume.
Some settling of contents may have occurred in transit.

JayBachatero

Download repair_settings.php from here

To edit your theme make a copy of the default theme and edit the template files.  Here is more info on theme editing.  Information on theme modification and creation
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: