Warning: The author of this contribution does not provide support for it anymore.

phpBB Gallery

phpBB2 to phpBB3 conversion. - phpBB Gallery

phpBB2 to phpBB3 conversion.

by M.O.B. » Sun Dec 01, 2013 10:58 pm

I need someone to clarify this to me, here are the instructions I don't quite understand:

• Access the install/-folder and go directly to the "Convert phpBB2"/"Convert TS Gallery" Tab, >>WITHOUT<< installing the Gallery before!


Do you mean I must not install the gallery before I try the conversion process?

I did install the MOD, but do I have to start from scratch again? I don't have any pictures in the Gallery as of yet.
Image
User avatar
M.O.B.
Registered User
Posts: 927
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Re: phpBB2 to phpBB3 conversion.

by 5hocK » Mon Dec 02, 2013 7:47 am

It means convert first and install the gallery second. I'd do it that way - uninstall it and do it the way it says ;)
A thread is pretty much a topic. Stop with the pedantics will ya.
User avatar
5hocK
Registered User
Posts: 3011
Joined: Wed Nov 23, 2011 7:00 pm
Location: England

Re: phpBB2 to phpBB3 conversion.

by M.O.B. » Mon Dec 02, 2013 3:04 pm

Thanks. What I ended up doing is do this on a test site with a fresh new database and no other MODs installed. Did the conversion and then imported the SQL of just the phpBB Gallery tables to my main site and copied (FTP) over the images and etc. Got it working. :)
Image
User avatar
M.O.B.
Registered User
Posts: 927
Joined: Tue Jan 04, 2005 1:07 am
Location: San Diego CA USA
Contact:

Convert Smartor Album MOD to phpBB Gallery extension 3.1/3.2

by Galixte de EzCom » Sun Aug 30, 2015 3:43 am

Hi,

Does phpBB Gallery MOD preserves the BBCode [ImgAlbum] ? I think of all the links to the photos of the “phpBB2 Smartor Photo Album” in the messages, in the form: [siteimg]photo_ID[/siteimg], how did you do ?

EDIT: sorry this BBcode doesn’t comes from this Smartor Album MOD, but from an other MOD that the name is: “Album Forum Image Links v1.1.0p” (source). To solve it’s simple, read step 2 below.

It seems, that the correct method to migrate a phpBB2 board (+ Smartor Album MOD) to a phpBB 3.1.x/3.2.x board (+ phpBB Gallery extension) is:
  1. to install phpBB 3.0.14,
  2. to add our BBCodes that we used on phpBB 2.0.23, like mine [siteimg]photo_ID[/siteimg]. Go in ACP, “POSTING” tab, “BBCodes” section ans click on the “Add a new BBCode” button:
    1. for “BBCode usage”, enter: [siteimg]{NUMBER}[/siteimg],
    2. for “HTML replacement”, enter: <a href="./gallery/image_page.php?image_id={NUMBER}"><img src="./gallery/image.php?mode=thumbnail&amp;image_id={NUMBER}" alt="Image {NUMBER}" title="Image {NUMBER}" /></a>,
    3. for “Help line”, enter: BBCode to link the images from the album: [siteimg]photo_ID[/siteimg], where photo_ID is only in number.,
  3. to convert (update) phpBB 2.0.23 to 3.0.14,
  4. to install AutoMOD v1.0.2,
  5. to import the “Smartor Photo Album MOD” tables from phpBB2 DB to phpBB3 DB,
  6. to launch the install of phpBB Gallery MOD v1.1.8 with AutoMOD, in final step on the ./install/ page do not launch the INSTALLATION, choose CONVERT. The conversion procedure will convert and install the phpBB Gallery MOD v1.1.8 (don’t install the MOD after, it will already installed),
  7. to update phpBB 3.0.14 to phpBB 3.1.x/3.2.x,
  8. to convert phpBB Gallery MOD v1.1.8 to phpBB Gallery extension v1.2.
Sources of information:
Last edited by Galixte de EzCom on Sun Jun 02, 2019 11:54 pm
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
User avatar
Galixte de EzCom
Registered User
Posts: 1031
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact:

Re: phpBB2 to phpBB3 conversion.

by Galixte de EzCom » Tue Mar 05, 2019 2:30 pm

If anavaro board disappears this is the instructions from this topic:http://lab.anavaro.com/forum/viewtopic.php?f=4&t=4
Satanasov wrote:
Wed Jan 07, 2015 4:26 pm
So ... you have old gallery (1.1.6 or something older) and you want to migrate from phpBB 3.0.x to 3.1.x?

This can not be done automatically, so you will need to do some things by yourself.

Before starting the upgrade of your board you will need some preparation. phpBB 3.0 and 3.1 have different file structure and different way of handling extensions. This is why in 3.0 it's called a MOD (short for modification) and in 3.1 it's called EXT (short for extension). This is why the file structure is different.

Before everything else copy the images. Create a new directory $phpbb_root_path/files/phpbbgallery with same security parameters as your files directory. Then create $phpbb_root_path/files/phpbbgallery/core (with the same parameters) and then $phpbb_root_path/files/phpbbgallery/core/source (basically you are creating a part of the file structure that the extension will create later).

Copy the content of $phpbb_root_path/gallery/images/upload to $phpbb_root_path/files/phpbbgallery/core/source.

Change owner of the files in $phpbb_root_path/files/phpbbgallery/core/source

Save your configuration from ACP -> phpBB Gallery -> Configure

Upgrade your board. Best is to follow the official upgrade guide. Delete the gallery directory in the root of your board.

Open your database (either using phpMyAdmin or mysql from console) and execute the following SQL:

Code: Select all

DELETE FROM tableprefix_modules WHERE module_basename LIKE '%gallery%'
tableprefix by default is phpbb.

Install the extension. Follow the installation instructions.

Install EXIF add-on (this is mandatory). You could remove the extension later, but in versions prior to 1.2.0 the EXIF was a core feature and table is changed.

Restore your settings from the saved ones.

Have fun!

P.S.: If by some random chance you see images missing, and you can see their files in source dir ... you will have to execute the following sql statement:

Code: Select all

UPDATE tableprefix_gallery_images SET image_filemissing = 0 WHERE image_filemissing = 1
This is happening primly when you try to view the gallery before copying the images ...
Communau EzCom
📖 « Traductions d’extensions & styles pour phpBB 3.1.x & 3.2.x ».
📋 Lists of all extensions identified for phpBB 3.1.x & 3.2.x.
📋 Lists of all styles identified for phpBB 3.1.x & 3.2.x.
Image Tu as un forum et tu veux aussi un site web ? Regarde par ici.
User avatar
Galixte de EzCom
Registered User
Posts: 1031
Joined: Mon Oct 04, 2004 11:14 pm
Location: France
Name: Raphaël M.
Contact: