[RC] phpBB Gallery

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Thu Dec 10, 2015 5:05 pm

petereeles wrote:I seem to have the same problem (specifically when looking at the users personal albums). I downloaded the zip mentioned here:

http://lab.anavaro.com/forum/viewtopic.php?f=4&t=3

I copied all the files into ext/phpbbgallery, restarted the server and purged the cache. Do I need to do anything else?

Image

Cheers,

- Pete
OK ... this should not be ... could you give me dimensions of the polaroid elememts for those with images and those without?

But first - try refreshing the browser request - ctrl + f5 few times.
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.

petereeles
Registered User
Posts: 151
Joined: Wed Jan 18, 2006 9:43 pm

Re: [BETA] phpBB Gallery

Post by petereeles » Thu Dec 10, 2015 5:13 pm

Going clockwise from top left, giving width x height, for the first 3 rows:

160 x 160
240 x 159
160 x 160
240 x 160
222 x 160
106 x 160
213 x 160
213 x 160
213 x 160

Cheers,

- Pete

Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Thu Dec 10, 2015 5:46 pm

petereeles wrote:Going clockwise from top left, giving width x height, for the first 3 rows:

160 x 160
240 x 159
160 x 160
240 x 160
222 x 160
106 x 160
213 x 160
213 x 160
213 x 160

Cheers,

- Pete
Not the images, but the DIV size ...

And ... you could update and test the new fix.
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.

petereeles
Registered User
Posts: 151
Joined: Wed Jan 18, 2006 9:43 pm

Re: [BETA] phpBB Gallery

Post by petereeles » Thu Dec 10, 2015 5:49 pm

Satanasov wrote:Not the images, but the DIV size ...
How do I find that? The page source just has <div> tags with no dimensions.
Satanasov wrote:And ... you could update and test the new fix.
Have you changed it again?

Cheers,

- Pete

petereeles
Registered User
Posts: 151
Joined: Wed Jan 18, 2006 9:43 pm

Re: [BETA] phpBB Gallery

Post by petereeles » Thu Dec 10, 2015 5:52 pm

Not sure if this helps - here's the page code for the first 5 images:

<div class="polaroid">
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<a href="/ukbutterflies.co.uk/phpBB/app.php/gallery/album/2015?sid=c36e7dd334f5fa58d0a28b5ca68402d0" style="font-weight: bold; font-size: 1.2em;">AdamArmitage</a>
</p>
<hr />
<img src="/ukbutterflies.co.uk/phpBB/app.php/gallery/image/0/mini?sid=c36e7dd334f5fa58d0a28b5ca68402d0" alt="" title="" />

<hr />
Images: <strong>0 </strong><br />

<span><div style="height: 47.1px;"></div></span>


<br/>
</div>




<div class="polaroid">
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<a href="/ukbutterflies.co.uk/phpBB/app.php/gallery/album/2047?sid=c36e7dd334f5fa58d0a28b5ca68402d0" style="font-weight: bold; font-size: 1.2em;">Ade H</a>
</p>
<hr />
<img src="/ukbutterflies.co.uk/phpBB/app.php/gallery/image/7739/mini?sid=c36e7dd334f5fa58d0a28b5ca68402d0" alt="" title="" />

<hr />
Images: <strong>1 </strong><br />

<span>
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;">Last Image by: <a href="./../../memberlist.php?mode=viewprofile&u=10235&sid=c36e7dd334f5fa58d0a28b5ca68402d0" class="username">Ade H</a> </p>
<p>Sat Sep 11, 2010 5:12 pm</p>
</span>


<br/>
</div>




<div class="polaroid">
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<a href="/ukbutterflies.co.uk/phpBB/app.php/gallery/album/2050?sid=c36e7dd334f5fa58d0a28b5ca68402d0" style="font-weight: bold; font-size: 1.2em;">Adrianuk</a>
</p>
<hr />
<img src="/ukbutterflies.co.uk/phpBB/app.php/gallery/image/0/mini?sid=c36e7dd334f5fa58d0a28b5ca68402d0" alt="" title="" />

<hr />
Images: <strong>0 </strong><br />

<span><div style="height: 47.1px;"></div></span>


<br/>
</div>




<div class="polaroid">
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<a href="/ukbutterflies.co.uk/phpBB/app.php/gallery/album/49?sid=c36e7dd334f5fa58d0a28b5ca68402d0" style="font-weight: bold; font-size: 1.2em;">Autumn 2008</a>
</p>
<hr />
<img src="/ukbutterflies.co.uk/phpBB/app.php/gallery/image/2499/mini?sid=c36e7dd334f5fa58d0a28b5ca68402d0" alt="" title="" />

<hr />
Images: <strong>42 </strong><br />

<span>
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;">Last Image by: <a href="./../../memberlist.php?mode=viewprofile&u=3733&sid=c36e7dd334f5fa58d0a28b5ca68402d0" class="username">Alan</a> </p>
<p>Sun Aug 23, 2009 10:39 pm</p>
</span>


<br/>
</div>




<div class="polaroid">
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<a href="/ukbutterflies.co.uk/phpBB/app.php/gallery/album/48?sid=c36e7dd334f5fa58d0a28b5ca68402d0" style="font-weight: bold; font-size: 1.2em;">Algol</a>
</p>
<hr />
<img src="/ukbutterflies.co.uk/phpBB/app.php/gallery/image/17715/mini?sid=c36e7dd334f5fa58d0a28b5ca68402d0" alt="" title="" />

<hr />
Images: <strong>15 </strong><br />

<span>
<p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;">Last Image by: <a href="./../../memberlist.php?mode=viewprofile&u=3729&sid=c36e7dd334f5fa58d0a28b5ca68402d0" class="username">Algol</a> </p>
<p>Mon Apr 21, 2014 3:30 pm</p>
</span>


<br/>
</div>

Cheers,

- Pete

Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Thu Dec 10, 2015 6:07 pm

If you use chrome or firefox - right click on the element -> Inspect element. When you mark the div with class polaroid you should see a box around it with dimensions ...

And yes - there is a new change.
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.

petereeles
Registered User
Posts: 151
Joined: Wed Jan 18, 2006 9:43 pm

Re: [BETA] phpBB Gallery

Post by petereeles » Thu Dec 10, 2015 6:39 pm

The dimensions of all of the 9 polaroids (according to Firefox) is 264 x 269 and the problem doesn't appear.

I still have a problem using Safari (on a Mac, with the most recent update) and have found out how to inspect the elements there. The dimensions of the 9 polaroids are all 264 x 265, except for the missing images which are 264 x 266.

Cheers,

- Pete

Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Thu Dec 10, 2015 6:53 pm

petereeles wrote:The dimensions of all of the 9 polaroids (according to Firefox) is 264 x 269 and the problem doesn't appear.

I still have a problem using Safari (on a Mac, with the most recent update) and have found out how to inspect the elements there. The dimensions of the 9 polaroids are all 264 x 265, except for the missing images which are 264 x 266.

Cheers,

- Pete
This is why I hate CSS ... 1px ...

OK ... I just don't see from where I can get that 1px ... I will think about it ... but I can't promise a fix ...
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.

petereeles
Registered User
Posts: 151
Joined: Wed Jan 18, 2006 9:43 pm

Re: [BETA] phpBB Gallery

Post by petereeles » Thu Dec 10, 2015 8:03 pm

No worries - this can get fixed any time. I'd much rather we get the gallery into use; I'm sure other things will arise but we won't know until the masses start using it :)

But I appreciate you looking into this - great service!

Cheers,

- Pete

herewego
Registered User
Posts: 9
Joined: Tue Nov 24, 2015 1:59 pm

Re: [BETA] phpBB Gallery

Post by herewego » Fri Dec 11, 2015 9:50 am

Hi,

that did the trick for me with firefox also, thanks.

When I looking at the users personal albums, I can see if someone got a subalbum.
If i click on the subalbum, the subalbum name pop-up.
The Hover( mouse over subalbum) show the Title NO_UNREAD_IMAGES.

Could not found out what this should be, it is line 47 of albumlist_polaroid.html

core

Code: Select all

<a href="{albumrow.subalbum.U_SUBALBUM}" class="subforum<!-- IF albumrow.subalbum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF albumrow.subalbum.UNREAD -->{L_UNREAD_IMAGES}<!-- ELSE -->{L_NO_UNREAD_IMAGES}<!-- ENDIF -->">{albumrow.subalbum.SUBALBUM_NAME}</a><!-- IF not albumrow.subalbum.S_LAST_ROW --><br /><!-- ENDIF -->
and in forum

Code: Select all

<a href="/forum/app.php/gallery/album/16?sid=0535814126e7f7acbf81ac771b0428aa" class="subforum unread" title="NO_UNREAD_IMAGES">Test-me</a>
I also have this php-warning

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_logs.php on line 49: constant(): Couldn't find constant LOG_GALLERY
The Gallery-Log are also empty, althoug I create a subfolder Test-me with a picture.

Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Fri Dec 11, 2015 11:52 am

herewego wrote:Hi,

that did the trick for me with firefox also, thanks.

When I looking at the users personal albums, I can see if someone got a subalbum.
If i click on the subalbum, the subalbum name pop-up.
The Hover( mouse over subalbum) show the Title NO_UNREAD_IMAGES.

Could not found out what this should be, it is line 47 of albumlist_polaroid.html

core

Code: Select all

<a href="{albumrow.subalbum.U_SUBALBUM}" class="subforum<!-- IF albumrow.subalbum.S_UNREAD --> unread<!-- ELSE --> read<!-- ENDIF -->" title="<!-- IF albumrow.subalbum.UNREAD -->{L_UNREAD_IMAGES}<!-- ELSE -->{L_NO_UNREAD_IMAGES}<!-- ENDIF -->">{albumrow.subalbum.SUBALBUM_NAME}</a><!-- IF not albumrow.subalbum.S_LAST_ROW --><br /><!-- ENDIF -->
and in forum

Code: Select all

<a href="/forum/app.php/gallery/album/16?sid=0535814126e7f7acbf81ac771b0428aa" class="subforum unread" title="NO_UNREAD_IMAGES">Test-me</a>
I also have this php-warning

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_logs.php on line 49: constant(): Couldn't find constant LOG_GALLERY
The Gallery-Log are also empty, althoug I create a subfolder Test-me with a picture.
So ... the unread thing... there should be a feature, that should show you by some way which images you have seen ... this is still unimplemented (and I don't know if I will make it work).

About this constant thingy ... are you sure you have deleted all old modules and you are not using the old gallery one?
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.

User avatar
Siava
Registered User
Posts: 135
Joined: Wed Jan 26, 2005 10:07 am
Contact:

Re: [BETA] phpBB Gallery

Post by Siava » Fri Dec 11, 2015 8:14 pm

petereeles wrote:I seem to have the same problem (specifically when looking at the users personal albums).
I changed css-file for fix this. See example from my forum:

/ext/phpbbgallery/core/styles/prosilver/theme/gallery.css

Code: Select all

.polaroid img {
	max-height: 160px;
	max-width: 240px;
}

.polaroid
{
	width: 240px;
	height: 280px;
	background: #FFFFFF;
	display: block;
	float: left;
	margin: 9px;
	min-height: 185px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
	transition: all .15s linear;
	border: 1px solid #EFEFEF;
}

Satanasov
Registered User
Posts: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Fri Dec 11, 2015 8:46 pm

Siava wrote:
petereeles wrote:I seem to have the same problem (specifically when looking at the users personal albums).
I changed css-file for fix this. See example from my forum:

/ext/phpbbgallery/core/styles/prosilver/theme/gallery.css

Code: Select all

.polaroid img {
	max-height: 160px;
	max-width: 240px;
}

.polaroid
{
	width: 240px;
	height: 280px;
	background: #FFFFFF;
	display: block;
	float: left;
	margin: 9px;
	min-height: 185px;
	padding: 10px;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
	transition: all .15s linear;
	border: 1px solid #EFEFEF;
}
This is fixed now. And the height can't be fixed.
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: 1180
Joined: Sun Jul 29, 2012 5:48 am
Name: Stanislav Atanasov
Contact:

Re: [BETA] phpBB Gallery

Post by Satanasov » Sat Dec 12, 2015 8:27 pm

So ... I've added coverage statistics ... bellow 10% of the code are tested ... but hey - I have a mark ...
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.

User avatar
Siava
Registered User
Posts: 135
Joined: Wed Jan 26, 2005 10:07 am
Contact:

Re: [BETA] phpBB Gallery

Post by Siava » Mon Dec 14, 2015 7:07 am

Satanasov, you make great work, thank you!

I found one....
When search in album (/gallery/search) using username field (search by author) getting SQL-error.

Locked

Return to “Extensions in Development”