Convert Coppermine users to Postnuke Convert Coppermine users to Postnuke
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Convert Coppermine users to Postnuke

Started by casNuy, December 25, 2007, 01:50:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

casNuy

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