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.
Ideas Centre
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

PHP-NUKE to phpBB3 Convertor 1.2

Post by ameeck »

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
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: [BETA] *-NUKE to phpBB3 Convertor

Post by ameeck »

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
rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by D¡cky »

Since Nuke_Evolution has the Attachment MOD, it would be nice to have this convert the attachments also.
Have you hugged someone today?
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by ameeck »

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

Links in first post updated to 0.0.4
rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by D¡cky »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by D¡cky »

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?
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by ameeck »

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.
rma-web
Registered User
Posts: 85
Joined: Sun Oct 14, 2007 11:01 pm
Location: NJ, USA
Name: Ryan Albertson

Re: [BETA] PHP-NUKE to phpBB3 Convertor

Post by rma-web »

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

Post by urtrancezone »

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”