Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ DragonflyCMS ⇒ Coppermine :: Archives ⇒ importing users from standalone coppermine into cpg :: Archived


importing users from standalone coppermine into cpg :: Archived
Please post bugs in the Projects Module.
Post anything and everything else about Coppermine in this forum.

Post new topic    Revive this topic    Printer Friendly Page     Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives

Topic Archived View previous topic :: View next topic  
Author Message
dawnwich
Silver Supporter
Silver Supporter

Offline Offline
Joined: Feb 08, 2005
Posts: 21
Location: Boston
PostPosted: Sun May 15, 2005 1:53 am
Post subject: importing users from standalone coppermine into cpg

Since I see a lot of people had this question and I didn't see an answer, I thought I'd post what I did in case it can help someone. I know that the developers mentioned that they were working on a script, but I really wanted to take my site live and needed this. This worked, but maybe someone can improve on this. I'm far from expert. I'm working on getting the pictures imported next, but that's a bit more complicated.

Either have both coppermine and dragonfly installed in the same mysql database, or import the users table from coppermine into the dragonfly database with a different prefix so that they don't step on each other. Here, I have cms for the dragonfly prefix and cpg11d as the coppermine prefix. Then I run the following SQL to import the users. I tried to capture all the fields that were clearly present in both tables. It's possible that there are one or two useful columns that I didn't get, and you might not want to include the previous registration date, but this works.

SQL:

insert into cms_users (user_group_cp, user_active_cp, username, user_password, user_lastvisit,
user_regdate, user_email, user_website, user_interests) select cpg11d_users.user_group, cpg11d_users.user_active, cpg11d_users.user_name, cpg11d_users.user_password, cpg11d_users.user_lastvisit, cpg11d_users.user_regdate, cpg11d_users.user_email, cpg11d_users.user_website, cpg11d_users.user_interests from cpg11d_users;

update cms_users set user_password=md5(user_password)


dawnwich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Dragonfly
Back to top
View user's profile Visit poster's website
jiberjaber
Newbie
Newbie

Offline Offline
Joined: May 16, 2005
Posts: 1
Location: UK
PostPosted: Mon May 16, 2005 8:37 pm
Post subject: Re: importing users from standalone coppermine into cpg

Hi dawnwich, How glad was I when a search threw up your post Smile

I have over 100 albums and 1200 pictures but only 6 users in my gallery which I have had online for over a year now.

I have been looking for a CMS to play with and this one seems to support coppermine so I have given it a shot.

The problem is, not being too clued up on SQL etc, I dont know how to copy the albums etc over to the CMS database. In fact, although I can sort of follow your script, I have no idea where to place it in order to get it to work.

My coppermine database is called jcburns_copp1, luckily all my files are also in cpg11d_xxxxx as well.

So firstly, How do I use your script to copy my 6 users over?

I have cpanel access to phpmyadmin which I guess is the starting point.

I have managed to figure out how to look at the structure of a table within there and also export it, but I fail so far in trying to figure out how to copy, although from comparing the two (CMS and standalone) they seem to be fairly different.. eg: votes are seperate in cpg11d but appear to be combined within the picture table in cms! so I guess it is a translation from cpg11d to cms tables etc

The alternative is to re-do the gallery from scratch using batch upload... not a job I realy want to do Sad

Cheers


Regards,


Jason


jiberjaber's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
OS - Linux / Apache - 1.3.33 (Unix) / MySQL - 4.0.22-standard / PHP - 4.3.9 / CPGNuke - Dragonfly 9.0.3.0
Back to top
View user's profile Visit poster's website
dawnwich
Silver Supporter
Silver Supporter

Offline Offline
Joined: Feb 08, 2005
Posts: 21
Location: Boston
PostPosted: Tue May 17, 2005 1:25 am
Post subject: Re: importing users from standalone coppermine into cpg

Oh, I'm so glad that this was useful! From your phpmyadmin panel, click on SQL and then cut and paste the SQL commands into them and click go.

I am suffering with the pictures right now. I had a script written that looked pretty good to me, with the minor drawback that it didn't work. I'm going to take another stab at it this weekend and see if I get anywhere, and if I do then I will post that one as well.


dawnwich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Dragonfly
Back to top
View user's profile Visit poster's website
spinach
Newbie
Newbie

Offline Offline
Joined: May 16, 2005
Posts: 10

PostPosted: Tue May 17, 2005 4:56 am
Post subject: Re: importing users from standalone coppermine into cpg

i'm one of the many who want to migrate cpg to dragonfly ... really eager to see a converter script.

i have only one user (i.e. the admin) in my cpg132, would it be easier? Would it work simply by copying corresponding tables from cpg to dragonfly (the common fields)? Or there's something else i need to take care?

great thanks to dawnwich!


spinach's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
FreeBSD5.4/Apache1.33/MySQL4.0.24/PHP4-4.3.10/CPGNuke9.0.3
Back to top
View user's profile Visit poster's website
dawnwich
Silver Supporter
Silver Supporter

Offline Offline
Joined: Feb 08, 2005
Posts: 21
Location: Boston
PostPosted: Tue May 17, 2005 11:46 pm
Post subject: Re: importing users from standalone coppermine into cpg

With one user, I wouldn't bother with this. If I succeed in migrating pictures, then I'll be sure to let everyone know.


dawnwich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Dragonfly
Back to top
View user's profile Visit poster's website
magicalobizuth
Nice poster
Nice poster

Offline Offline
Joined: Apr 04, 2005
Posts: 85
Location: California
PostPosted: Wed May 18, 2005 8:18 pm
Post subject: Re: importing users from standalone coppermine into cpg

This is very similar to what I am trying to do right now. I have two users, really only need one in my standalone Coppermine Gallery. Currently, our stats are "232 files in 22 albums and 3 categories with 705 comments viewed 160407 times". I want to move it all over to Dragonfly's CPG. I actually copied the albums folder over to the one in cpg hoping that would make things easier. Then I tried going into phpMyAdmin and copying the tables over from my standalone to cpg with no luck. There are also tables that are in one and not the other. This is what I have:

excerpt from my Dragonfly db:
cms_cpg_albums
cms_cpg_categories
cms_cpg_comments
cms_cpg_config
cms_cpg_exif
cms_cpg_installs ????
cms_cpg_pictures
cms_cpg_usergroups
cms_cpg_votes

in my coppermine db:
cpg_albums
cpg_banned xxx
cpg_categories
cpg_comments
cpg_config
cpg_ecards xxx
cpg_exif
cpg_filetypes xxx
cpg_pictures
cpg_temp_data xxx
cpg_usergroups
cpg_users xxx
cpg_votes


The ???? is a table not in Coppermine standalone, and the xxx are tables not in CPG. When I try to copy from Coppermine to CPG I get an error telling me that I already have that table (I am trying to copy over the existing one using structure and data). Then I tried to copy only the data, and it gave me an error saying that "#1136 - Column count doesn't match value count at row 1 ".

Honestly, at this point, I dunno what I am doing or where to go from here. I just want to keep all my content and move it over to CPG. I don't have a lot of users to worry about or anything. This should be easy.

btw: Since there is no ecards table in CPG, does this mean that ecards are not supported in Dragonfly's CPG?


magicalobizuth's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/ 4.0.25-standard (client: 4.0.27)/5.2.6/9.2.1
Back to top
View user's profile Visit poster's website
magicalobizuth
Nice poster
Nice poster

Offline Offline
Joined: Apr 04, 2005
Posts: 85
Location: California
PostPosted: Sun May 22, 2005 11:40 pm
Post subject: Re: importing users from standalone coppermine into cpg

Has anyone been able to do this?


magicalobizuth's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/ 4.0.25-standard (client: 4.0.27)/5.2.6/9.2.1
Back to top
View user's profile Visit poster's website
sarah
Debugger
Debugger

Offline Offline
Joined: Mar 25, 2005
Posts: 2130

PostPosted: Sun May 22, 2005 11:47 pm
Post subject: Re: importing users from standalone coppermine into cpg

Mag, did you see this post?

dragonflycms.org/Forum...10059.html

_________________
Diagon Alley - Top Design

sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
Back to top
View user's profile Send e-mail Visit poster's website
magicalobizuth
Nice poster
Nice poster

Offline Offline
Joined: Apr 04, 2005
Posts: 85
Location: California
PostPosted: Mon May 23, 2005 7:15 pm
Post subject: Re: importing users from standalone coppermine into cpg

Ah! Thanks Sarah. I was looking for a reply here, and didn't see it in my quick scan. *goes to other thread*


magicalobizuth's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33 (Unix)/ 4.0.25-standard (client: 4.0.27)/5.2.6/9.2.1
Back to top
View user's profile Visit poster's website
dawnwich
Silver Supporter
Silver Supporter

Offline Offline
Joined: Feb 08, 2005
Posts: 21
Location: Boston
PostPosted: Wed Jun 22, 2005 11:41 am
Post subject: Re: importing users from standalone coppermine into cpg

Just to add to this a bit: apparently, coppermine allowed usernames with spaces and punctuation in them, and dragonfly does not. So, importing users from coppermine will give potential illegal usernames in the new system. I've been cleaning them up one at a time as I notice them, but I thought I'd mention it so other people would know to look for them. It might be nice to change the script so that it cleaned them all up.


dawnwich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Dragonfly
Back to top
View user's profile Visit poster's website
baraduojag
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2005
Posts: 3
Location: Sweden
PostPosted: Sat Aug 06, 2005 12:54 pm
Post subject: Re: importing users from standalone coppermine into cpg

It did't work out for me. I could transfer all my 200 members from my stand alone Coppermine into CPGNuke but all passwords was lost! (Or didn't work)Even my own admin pw! Deleted the database and reinstalled CPGNuke. Still couldn't login now because I had done to many login attempts. I had no idea where to find out what file to edit to overcome that so I had to delete all cpg files and upload hole cpg again and install. Now I can login of course, but I'm scared to try moving members from coppermine db into cpg db again. I probobly loose all passwords again. Has it anything to do with encryption of pw or can anyone explain whats wrong and what to do about it please?


baraduojag's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
cpgnuke / coppermine st al
Back to top
View user's profile Visit poster's website
djdevon3
Gold Supporter
Gold Supporter

Offline Offline
Joined: Aug 05, 2004
Posts: 4363

PostPosted: Fri Aug 12, 2005 4:22 am
Post subject: Re: importing users from standalone coppermine into cpg

you want to delete everything in your cache folder except .htaccess. that's how you get more login attempts. doing so will not harm your site in anyway but never ever delete .htaccess.


djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/1.3.33/4.4/4.3.11
Back to top
View user's profile Visit poster's website Photo Gallery
dawnwich
Silver Supporter
Silver Supporter

Offline Offline
Joined: Feb 08, 2005
Posts: 21
Location: Boston
PostPosted: Fri Aug 12, 2005 12:11 pm
Post subject: Re: importing users from standalone coppermine into cpg

There is an encryption on the passwords. In the script that I posted, note the "md5" on the password line. That's crucial. If you copy over raw passwords, then you will get the behavior that you described.


dawnwich's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Dragonfly
Back to top
View user's profile Visit poster's website
baraduojag
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2005
Posts: 3
Location: Sweden
PostPosted: Sun Sep 11, 2005 6:43 pm
Post subject: Re: importing users from standalone coppermine into cpg

Thanks! Works fine. Any luck with script for tranfer pics, albums from standalone?


baraduojag's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
cpgnuke / coppermine st al
Back to top
View user's profile Visit poster's website
baraduojag
Newbie
Newbie

Offline Offline
Joined: Aug 06, 2005
Posts: 3
Location: Sweden
PostPosted: Sat Sep 17, 2005 9:59 pm
Post subject: Re: importing users from standalone coppermine into cpg

Ok. Not much help or action here. I soleved it myself. It wasn't very hard. It all works fine.


baraduojag's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
cpgnuke / coppermine st al
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ⇒  Add-Ons & BlocksCoppermine :: Archives
Page 1 of 1
All times are GMT

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.
 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

devamı...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy