Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Stand-alone scripts designed for a specific function, but not neccessarily part of normal forum browsing.
Forum rules
Image Please feel free to download any Scripts here, support for each Script is located it's own thread.

To post your own Script, please first read the MOD / Script Guidelines

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby LEW21 » 11 Jul 2007, 14:07

Replace the content of install/upgrade_tables/ranks.php with this code:
Code: Select all
<?php
if (!defined('IN_PHPBB'))
{
    exit;
}

// Grab the data from the old table
$rowset old_sql('SELECT * FROM phpbb_ranks ORDER BY rank_id ASC');

// Empty the new table
clear();

foreach (
$rowset as $row)
{
    
// Insert data to the new table
    
insert(array(
        
'rank_id'        => $row['rank_id'],
        
'rank_title'    => recode_value('rank_title'),
        
'rank_min'        => value('rank_min'0),
        
'rank_special'    => value('rank_special'0),
        
'rank_image'    => value('rank_image'''),
    ));
}
?>
phpBB3.PL - User-friendly Polish phpBB 3.0 support
LEW21    
Translator
Translator
 
Posts: 901
Joined: 01 Jun 2006, 03:51
Location: Warsaw, Poland
Gender: Male
phpBB Knowledge: 10




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby John Hjorth » 11 Jul 2007, 14:10

Hi LEW,

I'll give it a shot and report back here when done.
Image Image ImageImage
User avatar
John Hjorth    
STG Moderator
STG Moderator
 
Posts: 1587
Joined: 27 Oct 2006, 22:23
Location: Odense, Denmark, EU
Favorite Team: Olympus DK Team
Gender: Male
phpBB Knowledge: 7

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby LEW21 » 11 Jul 2007, 14:33

So try 2nd release and forgot about that 1st, buggy, release :) Changelog is in first post.
phpBB3.PL - User-friendly Polish phpBB 3.0 support
LEW21    
Translator
Translator
 
Posts: 901
Joined: 01 Jun 2006, 03:51
Location: Warsaw, Poland
Gender: Male
phpBB Knowledge: 10

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby John Hjorth » 11 Jul 2007, 14:41

Hi LEW,

Great ;)
Image Image ImageImage
User avatar
John Hjorth    
STG Moderator
STG Moderator
 
Posts: 1587
Joined: 27 Oct 2006, 22:23
Location: Odense, Denmark, EU
Favorite Team: Olympus DK Team
Gender: Male
phpBB Knowledge: 7

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby th23 » 12 Jul 2007, 08:01

Hi together,

I'm about to update a BETA 4 board to RC3... Has anyone tried this? Are there any known issues? How about UTF-8 conversion...is that covered by the converter as well?

Thanks LEW for the great work :)

Thorsten
My phpBB 3 Mods... here
User avatar
th23
Cadet I
Cadet I
 
Posts: 16
Joined: 17 Jan 2007, 20:24
Location: Bonn (Germany) / Singapore (Singapore)
Gender: Male

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby John Hjorth » 12 Jul 2007, 08:15

As already mentioned above, I´m working with this script both locally on fresh test installs of Beta 1 and a live Beta 1 board. I haven't had time so far to move further on and tested the new version uploaded by LEW yesterday, but I will report back here my conclusions when I do. The change to UTF-8 encoding was between Beta 2 and Beta 3, that should not be an issue for you updating a Beta 4 board with this script.
Image Image ImageImage
User avatar
John Hjorth    
STG Moderator
STG Moderator
 
Posts: 1587
Joined: 27 Oct 2006, 22:23
Location: Odense, Denmark, EU
Favorite Team: Olympus DK Team
Gender: Male
phpBB Knowledge: 7

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby LeRob » 12 Jul 2007, 23:32

Works perfectly on Beta 5 once you figure out what you're doing.
LeRob
Crewman
Crewman
 
Posts: 1
Joined: 16 Feb 2007, 21:56
Gender: Male

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby John Hjorth » 13 Jul 2007, 06:34

I have the second version of the script to work properly on a Beta 1 fresh install to RC3 conversion now. When I try to convert my live Beta 1 board, I now get this error :
Attachments
Screen shot conversion Beta1 to RC3.jpg
Image Image ImageImage
User avatar
John Hjorth    
STG Moderator
STG Moderator
 
Posts: 1587
Joined: 27 Oct 2006, 22:23
Location: Odense, Denmark, EU
Favorite Team: Olympus DK Team
Gender: Male
phpBB Knowledge: 7

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby WanderingFox » 21 Aug 2007, 07:26

Only a few very minor issues going from B5->RC3.

My phpbb3_bots table got reemed. Had the wrong users in it for the bots, was easily fixed by emptying the table and filling it back in with the right info.

Also, my private messages got messed up... They were all there, but the routing information was gone (ie. they were all in one of the private message tables, but not in the other, so only the sender of the message could see the message, the receiver couldn't, but it was counting towards his inbox count). I simply just dumped this table as well as there wasn't anything terribly important in it. Really not a bad sacrifice to get out of Beta and into the RC releases.
WanderingFox
Crewman
Crewman
 
Posts: 9
Joined: 21 Aug 2007, 07:01
Gender: Male

Re: Convertor from old versions of phpBB3 to phpBB 3.0.RC3

Postby CuLT » 26 Aug 2007, 20:37

Hey, just want to say that this worked a charm, I was really worried that I had boxed myself into a corner with upgrading to a beta and was dreading having to write a convertor myself. You've made my life significantly easier :) Thanks!

I did get a NULL conversion error on the bots table, but a refresh seemed to fix it.

FYI, I upgraded from Beta 5-dev to RC3.

Edit: now that you mention it, I've had a chance to explore, and it does indeed appear that PMs aren't showing.

Edit2: running
Code: Select all
INSERT INTO phpBB33_privmsgs SELECT * FROM phpbb3_privmsgs
fixed it for me (where phpBB33_privmsgs was the new table and phpbb3_privmsgs was the old).

Edit 3: Also the bots table was messed up... I just cleared it and copied across the values from the old database.
CuLT
Crewman
Crewman
 
Posts: 1
Joined: 30 Dec 2006, 14:55
Gender: Male

PreviousNext

Return to Scripts

Who is online

Users browsing this forum: No registered users and 2 guests