Page 38 of 85

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 3:27 pm
by ejenner
1. Dump database to backup file
2. Use a text editor on the dump to Find and Replace link
3. Restore database

^^^^ do you think that would work?

Easy to try and if it does not work can always restore the unmodified backup.

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 4:05 pm
by Satanasov
ejenner wrote:1. Dump database to backup file
2. Use a text editor on the dump to Find and Replace link
3. Restore database

^^^^ do you think that would work?

Easy to try and if it does not work can always restore the unmodified backup.
Yeah! This will work ... my issue is that my base is ... 1.7 G

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 4:55 pm
by lupus77
ejenner wrote:Ok, that's part of the way there.

I have to say it's great work you're doing here. I'm very glad to get my gallery back after the upgrade to 3.1

The problem I have now is that I can see the images in the gallery but all the links in the old postings don't link to the images yet.

For example:

This old link in an old post: http://www.saabsforum.com/gallery/image ... age_id=802

Should go to: http://www.saabsforum.com/app.php/galle ... 802/source

Is there a way to adjust the path in the gallery software or do I have to run some sort of update on the database to change all the old links?
I had the same problem. Looks like old pictures in the old gallery were using the [album]xxx[/album] tag. Just go to bbcodes and copy the code from [image]xxx[/image], that fixed the "no route found" for me.

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 5:48 pm
by GoBieN
You could use rewrite rules in the htaccess file.

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 8:25 pm
by ejenner
Ok, got it working. The 'find & replace' operation is slightly more complicated than I originally thought but here is what I did.

1. Download a backup to your PC in text format.
2. Use a good quality text editor to open the backup file.
3. Find and Replace has to be done in two stages:


- a. FIND: gallery/image.php?album_id=xxx&image_id=
>>>> REPLACE WITH: app.php/gallery/image/

- b. FIND: [/img:
>>>> REPLACE WITH: /source[/img:

xxx = your album numbers... I repeated this step 30 times for my own gallery as I have around 30 albums.

4. Upload the modified .sql file to the phpbb server and restore the backup.


WARNING: This will break img links where the image isn't hosted in your gallery. In my case that is fine as the images which are important are the ones in my gallery. The rest are probably all pointing to broken links anyway. I allow editing on all posts with no time constraint so if any my users want to go back and edit past posts then they can go ahead. I could probably run another find and replace to find .jpg/source[/img] and replace with .jpg[/img] but I'll come back to that another day.

Re: [BETA] phpBB Gallery

Posted: Mon Jun 22, 2015 9:16 pm
by GoBieN
You could use a regex find/replace do do all in 1 go without messing up the normal IMG's.

Re: [BETA] phpBB Gallery

Posted: Wed Jun 24, 2015 5:35 pm
by mj1985
Hey,

when I try to delete an album in the backend I get an error message

Code: Select all

PHP Catchable fatal error:  Argument 2 passed to phpbbgallery\\core\\user::__construct() must be an instance of phpbb\\event\\dispatcher, integer given, called in /var/customers/***/ext/phpbbgallery/core/album/manage.php on line 893 and defined in /var/customers/***/ext/phpbbgallery/core/user.php on line 56, referer: http://www.drhouse-forum.de/adm/index.php?i=-phpbbgallery-core-acp-albums_module&sid=***&mode=manage&parent_id=63&a=87&action=delete

Re: [BETA] phpBB Gallery

Posted: Wed Jun 24, 2015 7:51 pm
by Satanasov
mj1985 wrote:Hey,

when I try to delete an album in the backend I get an error message

Code: Select all

PHP Catchable fatal error:  Argument 2 passed to phpbbgallery\\core\\user::__construct() must be an instance of phpbb\\event\\dispatcher, integer given, called in /var/customers/***/ext/phpbbgallery/core/album/manage.php on line 893 and defined in /var/customers/***/ext/phpbbgallery/core/user.php on line 56, referer: http://www.drhouse-forum.de/adm/index.php?i=-phpbbgallery-core-acp-albums_module&sid=***&mode=manage&parent_id=63&a=87&action=delete
Bug fix pushed. Please update and it should be fixed.

Re: [BETA] phpBB Gallery

Posted: Thu Jun 25, 2015 12:02 am
by Satanasov
Guys, I'm working on the EPV comparability. Please be advised that you could have some issues with UCP and some ACP panels. If you have any - just report them to me and I will fix it.

Re: [BETA] phpBB Gallery

Posted: Thu Jun 25, 2015 6:49 am
by Kinsman
Is this your way of saying put it on our live sites and we will fix the rest as we go? :mrgreen:

Re: [BETA] phpBB Gallery

Posted: Thu Jun 25, 2015 1:02 pm
by mj1985
Thanks for the fix Lucifer, I'll try :)

Have you seen my pull-request?
This was the first time I tried this, so I be kind if I've done something wrong :oops:

Re: [BETA] phpBB Gallery

Posted: Thu Jun 25, 2015 4:01 pm
by Satanasov
Kinsman wrote:Is this your way of saying put it on our live sites and we will fix the rest as we go? :mrgreen:
I'm using it in live site ... :D and I fix it as I go. But no, I will not propose you to put it in production if you don't know what you are doing ...

Re: [BETA] phpBB Gallery

Posted: Sat Jun 27, 2015 3:37 am
by donsenilo
Dear Lucifer ...

I'm very thankfull for your extension, but it is absolutely necessary that it works with highslide oder similar.

Re: [BETA] phpBB Gallery

Posted: Sat Jun 27, 2015 6:00 am
by Satanasov
donsenilo wrote:Dear Lucifer ...

I'm very thankfull for your extension, but it is absolutely necessary that it works with highslide oder similar.
As I have said - you will have to wait for this kind of visualization.

Re: [BETA] phpBB Gallery

Posted: Tue Jun 30, 2015 3:30 pm
by jeromedusud
nice mod