phpBB Gallery

phpBB Gallery 1.2.1 - phpBB Gallery

Re: phpBB Gallery 1.2.1

by Daniel26 » Tue Aug 27, 2019 8:45 am

Ok, thanks. That worked.

I found some picture where onle the small preview is not available, but if I click on it the full size picture is shown.
How can I solve this?
Daniel26
Registered User
Posts: 16
Joined: Fri Jan 27, 2017 3:11 pm
Contact:

Re: phpBB Gallery 1.2.1

by Satanasov » Tue Aug 27, 2019 2:12 pm

That is one darn question ... you could delete the files/phpbbgallery/core/mini content and execute the sql again. It should rebuild the thumbnails.
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
Satanasov
Registered User
Posts: 1231
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: phpBB Gallery 1.2.1

by Daniel26 » Wed Aug 28, 2019 6:41 am

Thanks, will try it.
Daniel26
Registered User
Posts: 16
Joined: Fri Jan 27, 2017 3:11 pm
Contact:

Re: phpBB Gallery 1.2.1

by John Leeuwis » Wed Aug 28, 2019 9:10 am

Satanasov wrote:You could do that (it won't do any harm). But first deactivate the extension. Then download master branch from github (It's a bit newer then 1.2.1) and deply it as normal. If you still don't see images (AND YOU ARE SURE THEY EXIST) do this to your database:

UPDATE tableprefix_gallery_images SET image_filemissing = 0 WHERE image_filemissing = 1
I did all of the above, but it didn't work for me.
I get:
MySQL meldt:
#1146 - Tabel 'test.tableprefix_gallery_images' bestaat niet
(#1146 - Tabel 'test.tableprefix_gallery_images' doesn't exist)
John Leeuwis
Registered User
Posts: 20
Joined: Mon Sep 28, 2009 3:08 pm
Location: Netherlands
Name: John Leeuwis
Contact:

Re: phpBB Gallery 1.2.1

by Satanasov » Wed Aug 28, 2019 9:13 am

Please tell me you don't just copy random SQL queries from internet without understanding them ...
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
Satanasov
Registered User
Posts: 1231
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: phpBB Gallery 1.2.1

by John Leeuwis » Sat Sep 07, 2019 11:01 am

Satanasov wrote:Please tell me you don't just copy random SQL queries from internet without understanding them ...
Of course not :oops: :oops: :oops: :oops: (only when its late and I'm not thinking straight anymore :oops: :oops: :oops: )
I used UPDATE phpbb_gallery_images SET image_filemissing = 0 WHERE image_filemissing = 1 and some pictures came up.
Some, but the update created a lot of orphans, it seems.
John Leeuwis
Registered User
Posts: 20
Joined: Mon Sep 28, 2009 3:08 pm
Location: Netherlands
Name: John Leeuwis
Contact:

Re: phpBB Gallery 1.2.1

by uaellaen » Mon Sep 23, 2019 7:15 pm

hey! i have a question ... is there a possibility to call the galery "landing page" by its own? im asking because i want to load it on the frontpage with board3 portal ... and i dont really want to write an extension for it ... so i was hoping something like www.url.com/app.php/gallery/index.php or something to directly call the gallery without forum header / footer etc.?
uaellaen
Registered User
Posts: 18
Joined: Mon Sep 18, 2006 4:21 pm
Contact:

Re: phpBB Gallery 1.2.1

by Satanasov » Mon Sep 23, 2019 7:44 pm

Hmmm ... this is interesting question. You could load parts of it. But not the whole index.

Please view the way profile page is done.
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
Satanasov
Registered User
Posts: 1231
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: phpBB Gallery 1.2.1

by uaellaen » Mon Sep 23, 2019 8:54 pm

ahhh i just modified it and added a switch to display header or not ;) so if i call /app.php/gallery?boardtoken=1 it will not display header or footer, but load my CSS files only, if no token is given it will load the footer and header regulary ... so i just call it with the token from within board 3 in an iframe for now until i come up with something better :p

i edited 2 files for that, first /core/controller/index.php

first i added 2 lines before "$this->template->assign_vars(array("

Code: Select all

318                 $ip = $this->request->variable('boardtoken', ' ');
319 
320                 if ( $ip == "1"){ $noheader = '1'; } else { $noheader = '0'; }
and i also added line 322 " 'noheader' => $noheader,"

Code: Select all

321			$this->template->assign_vars(array(
322                         'noheader'              => $noheader,
323                         'TOTAL_IMAGES'          => ($this->gallery_config->get('disp_statistic'        )) ? $this->language->lang('TOTAL_IMAGES_SPRINTF', $this->gallery_config->get('num_images')) :         '',
then in the file /core/styles/prosilver/template/gallery/index_body.html i changed line 1 from

Code: Select all

<!-- INCLUDE gallery/gallery_header.html -->
to

Code: Select all

<!-- IF noheader -->
<link href="./../assets/css/font-awesome.min.css?assets_version=84" rel="stylesheet">
<link href="./../styles/HexagonReborn/theme/stylesheet.css?assets_version=84" rel="stylesheet">
<link href="./../styles/HexagonReborn/theme/de/stylesheet.css?assets_version=84" rel="stylesheet">
<link href="./../styles/HexagonReborn/theme/css/hexagon.css" rel="stylesheet">

<link href="./../ext/board3/portal/styles/prosilver/theme/portal.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/board3/portal/styles/prosilver/theme/portal_all.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/board3/portal/styles/prosilver/theme/portal_all_responsive.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/dmzx/whovisitedthistopic/styles/prosilver/theme/whovisitedthistopic.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/phpbb/pages/styles/prosilver/theme/pages_common.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/phpbbgallery/core/styles/prosilver/theme/gallery.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/phpbbgallery/core/styles/all/theme/default.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/steve/postreactions/styles/prosilver/theme/reactions.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />
<link href="./../ext/phpbb/ads/styles/all/theme/phpbbads.css?assets_version=84" rel="stylesheet" type="text/css" media="screen" />

<!-- ELSE -->
<!-- INCLUDE gallery/gallery_header.html -->
<!-- ENDIF -->
and the last line from

Code: Select all

<!-- INCLUDE gallery/gallery_footer.html -->
to

Code: Select all

<!-- IF noheader -->
<!-- ELSE -->
<!-- INCLUDE gallery/gallery_footer.html -->
<!-- ENDIF -->
uaellaen
Registered User
Posts: 18
Joined: Mon Sep 18, 2006 4:21 pm
Contact:

Re: phpBB Gallery 1.2.1

by Satanasov » Mon Sep 23, 2019 8:57 pm

Cool ... I will not edit the core or accept this modification but it's good to have it here.
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
Satanasov
Registered User
Posts: 1231
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: phpBB Gallery 1.2.1

by uaellaen » Mon Sep 23, 2019 9:26 pm

oh i was not expecting you to ... i just figured i post my "quick and dirty" solution, maybe in the future you want to add something similiar to a switch to display the gallery easily in board 3 or any other portal / iframe ... i also added a few additional switches to toggle off the statistics, moderation panel, topic tools, album list and comments if needed ... so for my use its perfect now ... love the gallery!
uaellaen
Registered User
Posts: 18
Joined: Mon Sep 18, 2006 4:21 pm
Contact:

Re: phpBB Gallery 1.2.1

by Satanasov » Mon Sep 23, 2019 9:28 pm

I'm glad you love it ... I have too little time to work on it ... but I have few hings to fix and add ...
For list of all my extensions go to https://github.com/satanasov
If you want custom functions in some of my products - PM me and we will discuss it.
Satanasov
Registered User
Posts: 1231
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: phpBB Gallery 1.2.1

by jlbintn » Tue Jun 09, 2020 6:38 pm

uaellaen wrote:it actualy requires to change 2 things in the URL file, so yeah doing the nginx location rewrite to fix it may be the better option ...

i have no issues with any other plugins thou, only gallery misses the "app.php"
The change you recommended here, is one change. You posted that there are two changes. Could you please post the other change? If you did post it, I missed it, and I don't think I'm suffering from CSS syndrome at the moment :lol:

Thanks
User avatar
jlbintn
Registered User
Posts: 56
Joined: Thu Apr 30, 2020 6:32 pm
Contact:

Re: phpBB Gallery 1.2.1

by jlbintn » Wed Jun 10, 2020 5:04 am

For a reference, this is what I see in UCP>Manage Subscriptions
ManageSubs.png
app.php is dropped from the thumbnail path name and from the MyPics link. The href's in Inspect, that surround the img src pathname do contain app.php in the pathname.
User avatar
jlbintn
Registered User
Posts: 56
Joined: Thu Apr 30, 2020 6:32 pm
Contact:


cron