Zoom Media Gallery to Phoca gallery converter
I have:
Zoom Media Gallery ver 2.5 beta3
Phoca gallery 2.1.0 RC
What this converter does not do:
- - convert images' statistics (Because in ZMG each image has statistics, but in Phoca Gallery the statistics concerns only Categories)
- convert image comments (because of the same reason, as statistics)
- user permissions and so on
What this converter does:
- - converts category structure, images and descriptions
To convert ZMG to Phoca Gallery you need to pass several steps.
Let's imagine you have 2 sites - 1.0.x with ZMG (
http://www.old.com) and 1.5 with Phoca Gallery fresh install (no categories and images) (
http://www.new.com)
0.
Backup everything. Twice.
Better make all tries at a local copy of your web-site.
1.
Copy all image directories from old site (the directories have names like BXNTIO, NXTSWM, YRSTWK)
www.old.com/images/zoom/
to
www.new.com/images/phocagallery/
2.
OPTIONAL
Open every directory in
www.new.com/images/phocagallery/
(something like
www.new.com/images/phocagallery/YRSTWK)
and manually delete there 2 Zoom Gallery directories with all files in them (you don't need them anymore)
www.new.com/images/phocagallery/YRSTWK/thumbs
www.new.com/images/phocagallery/YRSTWK/viewsize
3.
Extract the attached script to a directory at you old website (e.g.
www.new.com/converter/index.php)
Edit the script to enter correct database connect options (at the top of the file )
Code: Select all
$dbname_old="plast";
$dbuser_old="root";
$pwd_old="12345";
$table_prefix_old="jos_";
$table_prefix_new="jos_";
Run link
http://www.new.com/converter/index.php in you browser and copy the content of textarea. It's the needed SQL-script.
4.
Open new web-site's database in PhpMyAdmin or any other MySQL editor and execute the SQL-script.
5.
Open
www.new.com's backend administration and enter
Components - Phoca Gallery - Images
This will start thumbnail creation for all the added images. Wait and after the process ends,
it's DONE
NOTE: If it doesn't start thumbnail creation, go to, Components - Phoca Gallery - Images and open Settings button at the right-top of the window. In the newly opened modal window choose Thumbnail creation settigns and enable them. Then go to Components - Phoca Gallery - Images once more to start thumbnal creation.
That's all.
If have any questions ir troubles, ask me. Always glad to help.
My ICQ 21971586
P.S. I think it's possible to write a conveter component for joomla 1.0.x to make a migration SQL-script and a component for joomla 1.5 to import the migration SQL-script (I have not done it only because I needed to convert only one gallery).
I'm not sure how to copy the images other than manually.