Phoca

Phoca extensions are free extensions and are made and supported in freetime. Because of time issue, please accept the following "rules":
  • • Before you ask, try to read documentation or search this forum, as many questions are answered repeatedly
  • • Check if your server meets all the necessary requirements
  • • Sometimes, topics in this forum cannot be answered immediately
  • • Some questions are answered shortly as the information can be found in documentation (Phoca or Joomla! documentation)
  • • If you have problem on your site, please paste the link to your site or link a screenshot of your site (with help of imageshack, etc.)
  • • If you get blank page or error 500 on your site, please try to enable error reporting on or see your error log and paste this error message into the topic (see How to enable displaying php errors on site, try to check your SEF
  • • If you think, you found a bug, try to describe it or suggest a fix for such bug
  • • If you miss some feature of Phoca extension, please paste a topic on feedback site, if some of Phoca extensions, you have downloaded and installed, doesn't fit your needs, just uninstall it.
  • Thank you for understanding, Jan

ZOOM to Phoca II ?

Before you ask see the Phoca Gallery User Manual

ZOOM to Phoca II ?

Postby ep98 on 20 Oct 2008, 11:08

Wondering is it planned a Import script from unsupported galleries like ZOOM/ICE, Datso, Pony, slowly developed (almost with state frozen) RSGallery, buggy and ugly like Morpheo show ?

Or to make Phoca Gallery II number 1 option for Gallery for Joomla 1.5, should be good if support import/conversion from everything Native/Legacy to Phoca II :)
ep98
Phoca Member
Phoca Member
 
Posts: 16
Joined: 12 May 2008, 12:00

Google Ads


Re: ZOOM to Phoca II ?

Postby Jan on 21 Oct 2008, 20:34

Hi, no planned yet, Phoca Gallery has utils to add images into the system very fast, just save your images on your PC, create folder tree and move it to the server, the go to Multiple Add and Phoca Gallery will automatically make categories and subcategories from folders (subfolders) and will create thumbnails at once...

I don't know the previous galleries, so it is not possible for me to do some transformation scripts ... :(

Jan
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 14397
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Re: ZOOM to Phoca II ?

Postby ep98 on 22 Oct 2008, 01:38

But for some advanced users here will be possible, such Import scripts will prevent people from picking anything else. Your way is good, when there is no tons of description which each photo. Datso for example gives users ability to type unlimited number of lines as content in the description box. Also several stupid and abandoned galleries already, convert images during the upload and the 'picture_of_my_new_car.jpg' becomes _abc234.jpg, and who will know what the hell is what :).
Also yesterday I've noticed bug which is present from 1.3.0 when I've start translating Phoca Gallery and it's extensions, the upgrade script is not working on MySQL 5.0.x the full bug and debug info will be posted in another topic.
ep98
Phoca Member
Phoca Member
 
Posts: 16
Joined: 12 May 2008, 12:00

Re: ZOOM to Phoca II ?

Postby Jan on 22 Oct 2008, 16:00

ok
If you find some Phoca extensions useful, please vote for them on: extensions.joomla.org
User avatar
Jan
Phoca Hero
Phoca Hero
 
Posts: 14397
Joined: 10 Nov 2007, 18:23
Location: Czech Republic

Zoom Media Gallery to Phoca gallery converter

Postby Gruz on 27 Dec 2008, 01:28

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.
Gruz
Phoca Member
Phoca Member
 
Posts: 26
Joined: 26 Dec 2008, 19:09

Re: ZOOM to Phoca II ?

Postby ep98 on 27 Dec 2008, 22:41

Thanks a lot, I'll give it a try next weekend and will report any issues
ep98
Phoca Member
Phoca Member
 
Posts: 16
Joined: 12 May 2008, 12:00

Re: ZOOM to Phoca II ?

Postby ostry on 09 Aug 2009, 23:40

Hello,
first of all thank you for the great gallery that I started using on my website.

I just finished changing over from Zoom to the latest Phoca so I'd like to share my way of doing this transition:
When I had to convert from Zoom Media Gallery I decided to use the above script. The only thing that suprised me a little was the fact that the script did not run with current version of Phoca. I noticed that SQL table structure has changed since Phoca ver. 2.1.0 were in use. To resolve this issue I have installed ver. 2.1.0 which is available for download over here: http://joomlacode.org/gf/project/phocag ... ge_id=3942
Then I ran the script and successfully transferred all the data. Next step was just an upgrade to the latest version and here we go - everything works perfect :D
When I entered gallery for the first time it has re-created all thumbnails (this takes a good while depending on amount of pictures in gallery so have to be patient).

One thing you need to be aware - make sure you did not used any single apostrophes ( ' ) in the picture/category descriptions that you wish to import. I had few and SQL was giving errors so I simply deleted them and re-entered into the database directly. You can also replace them with two single apostrophes - should work ok ( '' )

THANKS AGAIN!
ostry
Phoca Newbie
Phoca Newbie
 
Posts: 1
Joined: 09 Aug 2009, 22:42

Re: ZOOM to Phoca II ?

Postby sneakyX on 13 Nov 2009, 14:06

Hey,
I just wanted to thank You for the migration-script from zoom-phoca-gallery.
I just had one problem. The categories were migrated, but not the pictures.

I thought that it might be a problem with my provider. It seems that the script thinks the pictures are not there (maybe there are wrong directory permissions) .
I changed line 81 in Your script to

Code: Select all
if (file_exists($file)) $flag="OK"; else $flag="OK";


and everythink worked.
Thanks again for Your script and for the tipp with installing the old version

Yours

sneakyX
sneakyX
Phoca Newbie
Phoca Newbie
 
Posts: 1
Joined: 13 Nov 2009, 13:55

Re: ZOOM to Phoca II ?

Postby Gruz on 08 Apr 2010, 11:39

Hi. Does anybody have the converter? It's gone from the forum because of the migration. I have no the file at my comp. Maybe someone else has?
Gruz
Phoca Member
Phoca Member
 
Posts: 26
Joined: 26 Dec 2008, 19:09


Return to Phoca Gallery

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 4 guests