forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 pnCPG (Coppermine for postNuke/Zikula) => Topic started by: casNuy on December 25, 2007, 01:50:18 pm

Title: Convert Coppermine users to Postnuke
Post by: casNuy on December 25, 2007, 01:50:18 pm
Attached a script that allows you to convert your Coppermine users to Postnuke users.
Adjust the settings of this script and copy it to your webserver.
Run the program, it will generate some outout.
Once done, remove it from your webserver.

the settings are:
Quote
// Postnuke data (Host-Database-User_table-Database user-Database user password)
$pn_host            = "localhost" ;
$pn_db            = "Postnuke" ;
$pn_table         = "pn_users" ;
$pn_user            = "root" ;
$pn_pwd            = "password" ;
$pn_group_membership                = "pn_group_membership" ;

// Coppermine data (Host-Database-User_table-Database user-Database user password)
$cpg_host   = "localhost" ;
$cpg_db      = "coppermine" ;
$cpg_table   = "cpg148_users" ;
$cpg_user   = "root" ;
$cpg_pwd   = "password" ;

// General data (Postnuke site -Sendmail)
$pn_site   = "http://www.nuy.info" ;
$mail_it   = "0" ; // set to "1" to send email

The first set is around Postnuke, please pay attention to correct spelling (and capitals on *nix based systems) etc.
The second set is around Coppermine, please pay attention to correct spelling (and capitals on *nix based systems) etc.
The third set is generic, if you want the generated password to be emailed, make sure you correct the link to your website and to change the value to "1".
All users are added to Postnuke as a normal user.

Possibly this will be added to a future version of pnCPG.

Enjoy.

Cas