News:

Wondering if this will always be free?  See why free is better.

Main Menu

phpnuke

Started by armdoggy, May 13, 2005, 05:47:44 PM

Previous topic - Next topic

armdoggy

I know there is a request under the "requests" thread, but it has remained unanswered and after hours of research it seems to be inconclusive whether phpnuke + SMF are reasonably possible. Does anyone have any experience, importers, etc. for conversion?

My webhost is banning phpbb and I have a nonprofit phpNuke site with a very active phpbb forum... and few if any choices :(

Your help would be greatly appreciated!

Grudge

I've quickly hacked this together from the phpBB converter, but it worked on my test phpNuke install so it may well work. The one ending "103" is for SMF 1.0.3, the other for 1.1 Beta 2. I have only tested it on 1.1 but I believe both may work - let me know how you get on - and follow the instructions on the converter :)
I'm only a half geek really...

armdoggy

yowza! I will happily try this and let you know how it goes! :) THANKS!

Silver-SAF

Nope.

Didnt work on my install.

Error Messages

QuoteNotice: Undefined variable: dbname in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 122

Warning: loadsettings(e:\domains\g\gtacomplex.co.uk\user\htdocs\modules\forums/includes/constants.php): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 124

Fatal error: loadsettings(): Failed opening required 'e:\domains\g\gtacomplex.co.uk\user\htdocs\modules\forums/includes/constants.php' (include_path='.;c:\php4\pear') in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 124

[Unknown]

What version of phpnuke?

-[Unknown]

Silver-SAF

#5
phpnuke version is 7.2.x

Silver-SAF

Oh and SMF was 1.3

Silver-SAF


Grudge

Sorry Silver-SAF, was away for the weekend.

I wrote the converter for Nuke 7.7, which I tested it on. Could you post the contents of your config.php file from phpNuke - maybe they've changed a few things. Obviously when you post them make sure you REMOVE your password from it!
I'm only a half geek really...

SpikeyKlitske

Quote from: Silver-SAF on June 03, 2005, 12:31:43 PM
Nope.

Didnt work on my install.

Error Messages

QuoteNotice: Undefined variable: dbname in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 122

Warning: loadsettings(e:\domains\g\gtacomplex.co.uk\user\htdocs\modules\forums/includes/constants.php): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 124

Fatal error: loadsettings(): Failed opening required 'e:\domains\g\gtacomplex.co.uk\user\htdocs\modules\forums/includes/constants.php' (include_path='.;c:\php4\pear') in e:\domains\g\gtacomplex.co.uk\user\htdocs\forum\nuke.php on line 124

Had same error turned out that i had the wrong path for phpnuke. make sure to enter tha path to phpnuke and not the forums underneath the phpnuke directory.

Silver-SAF

Hey,

Sorry about the lateness of the reply, I had some difficulties in life to sort out.

<?php

######################################################################
# PHP-NUKE: Advanced Content Management System
# ============================================
#
# Copyright (c) 2002 by Francisco Burzi ([email protected])
# http://phpnuke.org
#
# This module is to configure the main options for your site
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
######################################################################

######################################################################
# Database & System Config
#
# dbhost:       SQL Database Hostname
# dbuname:      SQL Username
# dbpass:       SQL Password
# dbname:       SQL Database Name
# $prefix:      Your Database table's prefix
# $user_prefix: Your Users' Database table's prefix (To share it)
# $dbtype:      Your Database Server type. Supported servers are:
#               MySQL, mysql4, postgres, mssql, oracle, msaccess,
#               db2 and mssql-odbc
#               Be sure to write it exactly as above, case SeNsItIvE!
# $sitekey: Security Key. CHANGE it to whatever you want, as long
#               as you want. Just don't use quotes.
# $gfx_chk: Set the graphic security code on every login screen,
# You need to have GD extension installed:
# 0: No check
# 1: Administrators login only
# 2: Users login only
# 3: New users registration only
# 4: Both, users login and new users registration only
# 5: Administrators and users login only
# 6: Administrators and new users registration only
# 7: Everywhere on all login options (Admins and Users)
# NOTE: If you aren't sure set this value to 0
# $subscription_url : If you manage subscriptions on your site, you
#                     must write here the url of the subscription
#                     information/renewal page. This will send by
#                     email if set.
######################################################################

$dbhost "mysql4.streamline.net";
$dbuname "gtacomplex";
$dbpass "xxxxxxxxxxxx";
$dbname "gtacomplex";
$prefix "nuke";
$user_prefix "nuke";
$dbtype "MySQL";
$sitekey "7408";
$gfx_chk 7;
$subscription_url "";

/*********************************************************************/
/* You finished to configure the Database. Now you can change all    */
/* you want in the Administration Section.   To enter just launch    */
/* you web browser pointing to http://yourdomain.com/admin.php       */
/*                                                                   */
/* Remeber to go to Settings section where you can configure your    */
/* new site. In that menu you can change all you need to change.     */
/*                                                                   */
/* Congratulations! now you have an automated news portal!           */
/* Thanks for choose PHP-Nuke: The Future of the Web                 */
/*********************************************************************/

// DO NOT TOUCH ANYTHING BELOW THIS LINE UNTIL YOU KNOW WHAT YOU'RE DOING

$reasons = array("As Is",
    "Offtopic",
    "Flamebait",
    "Troll",
    "Redundant",
    "Insighful",
    "Interesting",
    "Informative",
    "Funny",
    "Overrated",
    "Underrated");
$badreasons 4;
$AllowableHTML = array("b"=>1,
    "strong"=>1,
    "em"=>1,
    "i"=>1,
    "u"=>1,
"("=>1,
")"=>1,
"()"=>1,
    "br"=>1,
    "p"=>2,
    "a"=>2,
    "h1"=>1,
    "h2"=>1,
    "h3"=>1,
    "h4"=>1,
    "h5"=>1,
    "h6"=>1,
    "center"=>1,
    "img"=>2,
    "alt"=>1,
    "table"=>2,
    "tr"=>2,
    "td"=>2,
    "div"=>2,
    "font"=>2,
                    
"style"=>2,
                    
"blockquote"=>1,
                    
"tt"=>1,
                    
"li"=>1,
                    
"ol"=>1,
                    
"ul"=>1);
$CensorList = array("******",
    "******",
    "******er",
    "******ing",
    "pussy",
    "cock",
    "c0ck",
    "cum",
    "twat",
    "clit",
    "******",
    "fuk",
    "fuking",
    "mother******er");
$tipath "images/topics/";
if (
eregi("config.php",$_SERVER['PHP_SELF'])) {
    
Header("Location: index.php");
    die();
}

?>




Thats direct from the config.php file, with no password.


Silver-SAF

Quote from: SpikeyKlitske on June 21, 2005, 07:38:14 PM
Had same error turned out that i had the wrong path for phpnuke. make sure to enter tha path to phpnuke and not the forums underneath the phpnuke directory.

Sorry mate didn't see that there, nice one, will definitely try that and post any errors.

w1x

#12
Hi,
I get as far as this:

QuoteConverting ranks... successful.
Converting groups... successful.
Converting members... Unsuccessful!
This query:

Then it gives me mebers names etc.  then it says at the end:

QuoteCaused the error:

Unknown column 'pm_email_notify' in 'field list'

Please help

EDIT

Also, there are some fields which have been incorrectly named.  ANDDD it doesnt import all members and it also makes the wrong person the administrator of the board... I got as far as group access and then gave up because I couldnt find solution to the next problem.. I solved the above problem its actually meant to be email_notify I think.. something like that. anyway, please fix these bugs  :-[

+ everyone is being made admin.. the ID_Groups dont come out right either...

+ Member list does not show all the members

+ It says only 1 registered member when theres like 500+

SpikeyKlitske

any update on this?

i tried to run the converter but failed like indicated. the conversion stopped with errors that it couldnt find a great number of avatars and then produced the same error as mentioned before about the pm_email_notify

btw im using php-nuke 7.7 and smf 1.05

thx spikey

[Unknown]

Inside the file, replace "pm_email_notify" with "im_email_notify".

-[Unknown]

Silver-SAF

Hey Guys,

Just attempted the convert to some test forums, first time unsuccesful and then remembered toi change the email_notify thingy.

Did that, members were all succesful. Although,

Converting ranks... successful.
Converting groups... successful.
Converting members...
Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/167207054111960940b96.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/56765290541920a93e3ad0.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/6322351104103db318bbf3.gif): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/103468932541059f7e3efd7.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/138351167541019cc66f1b2.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/52986046841a0ca6d0597d.gif): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/1216985245413b9fb64418d.gif): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/4377581274156d806d9b7b.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011

Warning: copy(e:\domains\g\gtacomplex.co.uk\user\htdocs\/modules/Forums/images/avatars/1571437862418fc6c2f2c4a.jpg): failed to open stream: No such file or directory in e:\domains\g\gtacomplex.co.uk\user\htdocs\forums\change.php on line 1011
successful.
Converting additional member groups... successful.
Converting categories... successful.
Converting boards... successful.
Converting topics... successful.
Converting messages... (this may take some time) successful.
Converting polls... successful.
Converting poll options... successful.
Converting previous poll votes... successful.
Converting personal messages... successful.
Converting personal messages (step 2)... successful.
Converting topic notifications... successful.
Converting board access... successful.
Converting group access permissions... Unsuccessful!
This query:

    INSERT INTO `gtacomplex`.smft_board_permissions

    (ID_GROUP, ID_BOARD, permission)

    VALUES

    (22, 1, 'post_new'),

    (22, 1, 'mark_notify'),

    (22, 1, 'mark_any_notify'),

    (22, 1, 'post_reply_any'),

    (22, 1, 'modify_own'),

    (22, 1, 'remove_own'),

    (22, 1, 'delete_own'),

    (22, 1, 'make_sticky'),

    (22, 1, 'announce_topic'),

    (22, 1, 'poll_post'),

    (22, 1, 'poll_add_own'),

    (22, 1, 'poll_vote'),

    (22, 1, 'poll_view'),

    (22, 1, 'moderate_board'),

    (22, 1, 'remove_any'),

    (22, 1, 'lock_any'),

    (22, 1, 'lock_own'),

    (22, 1, 'merge_any'),

    (22, 1, 'modify_any'),

    (22, 1, 'modify_own'),

    (22, 1, 'move_any'),

    (22, 1, 'poll_add_any'),

    (22, 1, 'poll_edit_any'),

    (22, 1, 'poll_remove_any'),

    (22, 1, 'post_reply_own'),

    (22, 1, 'delete_any'),

    (22, 1, 'report_any'),

    (22, 1, 'send_topic'),

    (22, 1, 'split_any');

Caused the error:

    Duplicate entry '22-1-modify_own' for key 1


That was the report given.

Any help would be great fellas

w1x

that's exactly where i got stuck on!

[Unknown]

Strange.  It sounds like it's trying to do the same board permissions twice....

-[Unknown]

w1x

#18
actually, I just deleted step16.. Thats not risky is it?  I can add the moderators etc again.. will that be ok?

[Unknown]

Yeah, that should be okay.

-[Unknown]

Advertisement: