PHP-NUKE to phpBB3 Convertor 1.2

Converting from other board software? Good decision! Need help? Have a question about a convertor? Wish to offer a convertor package? Post here.
Get Involved
User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm
Location: Berlin
Name: Vojtech Vondra
Contact:

PHP-NUKE to phpBB3 Convertor 1.2

Postby ameeck » Sat Dec 22, 2007 6:14 pm

If you are interested in converting your PHP-NUKE phpBB2 board to phpBB3 and re-connecting it with the CMS, please contact me by any channel or use the link in my signature - I have experience with these conversions and several sites already run like this.

Project homepage: http://github.com/vvondra/PHP-NUKE-to-phpBB3-convertor
See below for latest version and download:

At this moment it is tested with a list of NUKE based CMS software. Please consult a conversion on a different system with me before you try. I would like to add more possibilities to the list.

How to use:
Download the archive, unpack it, and upload the contents to your conversion installation(phpBB3), you should have two more files in the install/convertors/ directory at the end. Then run the conversion as normally(click the Convert tab on the installation screen), but select this convertor from the list.

Known issues:
None

Download:
Version 1.2 PHP-NUKE to phpBB3 Convertor 1.2

Support/Donation:
I will be glad for any given support and hope this convertor will fullfill your expectations: Image

A few notes on usage:
Table prefix: don't include the "bb" in the prefix, use the same prefix as set in the NUKE config.php(just add an underscore - "_")
Former board path: Set it to the phpBB root, not the NUKE root, it is probably going to end with modules/Forums/

Tested on these systems:
UNITED-NUKE 4.2.08ms2
PHP-NUKE 7.9
Nuke-Evolution Basic - 2.0.5
PHP-NUKE Clan 4.2.0

Changelog:
  • 0.0.1 -
    • first release
  • 0.0.2 -
    • fixed including of encoding variable
    • fixed missing prefix on config table
  • 0.0.3 -
    • fixed encoding issues in topic/forum/category titles
    • minor cleanups of the code
  • 0.0.4 -
    • enabled attachment conversion for Nuke-Evo
    • minor tweaks in code
  • 1.0 -
    • Updated the converter (applied phpBB commits)
    • Incremented version
    • Code formatting
  • 1.1 -
    • Fixed bug
  • 1.2 -
    • Bumped versions and checked integrity
    • Fix bug with converting moved topics
Last edited by D¡cky on Thu Dec 01, 2011 2:03 pm, edited 16 times in total.
Reason: Update download link
do you need to update MOD to an extension?

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm
Location: Berlin
Name: Vojtech Vondra
Contact:

Re: [BETA] *-NUKE to phpBB3 Convertor

Postby ameeck » Sun Dec 23, 2007 12:36 pm

Well, I tested the convertor succesfully on PHP-NUKE 7.9 resolving some minor problems with encoding of special characters.

First post updated :)

*UPDATE* - tested on a third NUKE-based system - Nuke-Evolution
do you need to update MOD to an extension?

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Sat Dec 29, 2007 9:54 pm

thanks ameeck. ill test this this weekend and get back to you on how it works for evolution :D

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby D¡cky » Sat Dec 29, 2007 11:42 pm

Since Nuke_Evolution has the Attachment MOD, it would be nice to have this convert the attachments also.
Have you hugged someone today?

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm
Location: Berlin
Name: Vojtech Vondra
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby ameeck » Sun Dec 30, 2007 7:32 am

Edit: Well, hopefully it will also cover attachments now … tested it successfully.

Links in first post updated to 0.0.4
do you need to update MOD to an extension?

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Tue Jan 01, 2008 7:06 pm

i get this continuous message when i tried to do the convertor for the first time

[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 107: cannot yet handle MBCS in html_entity_decode()!


and it keeps growing untill i exit the conversion.

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby D¡cky » Wed Jan 02, 2008 12:06 am

rma-web,

I am curious what version of php you are using?

Try this:

OPEN functions_nuke.php

FIND on line 107

Code: Select all

         'forum_name'   => ($row['cat_title']) ? htmlspecialchars(html_entity_decode(phpbb_set_default_encoding($row['cat_title']), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8') : $user->lang['CATEGORY'],

REPLACE WITH

Code: Select all

         'forum_name'   => ($row['cat_title']) ? htmlspecialchars(phpbb_set_default_encoding($row['cat_title']), ENT_COMPAT, 'UTF-8') : $user->lang['CATEGORY'],

Let us know how you make out.
Have you hugged someone today?

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Wed Jan 02, 2008 12:49 am

phpBB says my version is PHP Version 4.3.9

ill try that and get back on if it works

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Wed Jan 02, 2008 12:55 am

well it looks like it fixed the problem with line 107, but

[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Wed Jan 02, 2008 12:59 am

its actually now alternating between lines 218 and 221

[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!
[phpBB Debug] PHP Notice: in file /install/convertors/functions_nuke.php on line 218: cannot yet handle MBCS in html_entity_decode()!

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Wed Jan 02, 2008 12:59 am

so should i do the same thing with those lines, replacing forum_name with forum_desc?

User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby D¡cky » Wed Jan 02, 2008 3:29 am

html_entity_decode() seems to have a problem in php 4 working with utf8 characters.

OPEN functions_nuke.php

FIND on line 107

Code: Select all

         'forum_name'   => ($row['cat_title']) ? htmlspecialchars(html_entity_decode(phpbb_set_default_encoding($row['cat_title']), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8') : $user->lang['CATEGORY'],

REPLACE WITH

Code: Select all

         'forum_name'   => ($row['cat_title']) ? htmlspecialchars(phpbb_set_default_encoding($row['cat_title']), ENT_COMPAT, 'UTF-8') : $user->lang['CATEGORY'],

FIND on line 218

Code: Select all

         'forum_name'      => htmlspecialchars(html_entity_decode(phpbb_set_default_encoding($row['forum_name']), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8'),

REPLACE WITH

Code: Select all

         'forum_name'      => htmlspecialchars(phpbb_set_default_encoding($row['forum_name']), ENT_COMPAT, 'UTF-8'),

FIND on line 221

Code: Select all

         'forum_desc'      => htmlspecialchars(html_entity_decode(phpbb_set_default_encoding($row['forum_desc']), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8'),

REPLACE WITH

Code: Select all

         'forum_desc'      => htmlspecialchars(phpbb_set_default_encoding($row['forum_desc']), ENT_COMPAT, 'UTF-8'),


Then OPEN convert_nuke.php
FIND on line 456

Code: Select all

            array('topic_title',         'bbtopics.topic_title',            array('function1' => 'phpbb_set_encoding', 'function2' => 'phpbb_entity_decode')),

REPLACE WITH

Code: Select all

            array('topic_title',         'bbtopics.topic_title',            'phpbb_set_encoding'),

FIND line 487

Code: Select all

            array('topic_title',         'bbtopics.topic_title',            array('function1' => 'phpbb_set_encoding', 'function2' => 'phpbb_entity_decode')),

REPLACE WITH

Code: Select all

            array('topic_title',         'bbtopics.topic_title',            'phpbb_set_encoding'),

FIND line 597

Code: Select all

            array('post_subject',         'bbposts_text.post_subject',         array('function1' => 'phpbb_set_encoding', 'function2' => 'phpbb_entity_decode')),

REPLACE WITH

Code: Select all

            array('post_subject',         'bbposts_text.post_subject',         'phpbb_set_encoding'),
Have you hugged someone today?

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm
Location: Berlin
Name: Vojtech Vondra
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby ameeck » Wed Jan 02, 2008 9:07 am

It's a bug with some PHP4 versions, I was testing on PHP5 so it didn't pop out.

The entity_decode function is there to handle some weird processes which NUKE has for working with special characters, if you have mostly ASCII text without characters with diacritics, you can delete that function as Dicky said, I'm going to look for a satisfactory replacement.
do you need to update MOD to an extension?

rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson
Contact:

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby rma-web » Wed Jan 02, 2008 5:57 pm

ok, im at school now, but when i get home ill edit the files and try again.

thanks for helping me.

urtrancezone
Registered User
Posts: 16
Joined: Fri Dec 02, 2005 5:40 am

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Postby urtrancezone » Thu Jan 03, 2008 1:21 am

I have done the conversion however I keep loosing access to the Admin Area

http://www.urtrancezone.com/phpBB3/adm/index.php

"Access to the Administration Control Panel is not allowed as you do not have administrative permissions."

I am not sure what is going on.. please help

I have installed two times and both times I get that issue..


Return to “[3.0.x] Convertors”

Who is online

Users browsing this forum: No registered users and 10 guests