Page 1 of 1

[user gallery] No 'Next page' link

Posted: Mon Aug 28, 2006 4:11 pm
by Guillaume
Running Serendipity v1.0.1, I've recently updated the user gallery plugin to v1.94. Although it warned me about incompatibility issues, I found out it's not to be compatible with v1.1, but should work correctly with v1.0.1, so to get it working I changed the version comparison.

Now all is working well, except the fact that on a thumbnails page with a restricted number of thumbnails per page, I get no link to the next page, even though there are more photos in the gallery than shown on the first page.

Could this please be corrected? If anyone could post an older version of the plugin (v1.9), that would also suffice for the moment.

Posted: Mon Aug 28, 2006 5:41 pm
by mgroeninger
You can download the 1.9 version from CVS here:
http://php-blog.cvs.sourceforge.net/*ch ... ision=1.24

However, if you would like me to fix the bug, can I try to clarify the problem a little?

You are running a Serendipity version of 1.0.1? And the 1.94 version of the Usergallery gave you an error telling you it was incompatible?

And once you fixed the version comparison it no longer complained about the compatiability, but then it didn't display the "next page" navigation on the thumbnail page, correct?

Are you using directory navigation at all (the "Show a directory listing" option)? If so, are the numbers being output correctly?d

Do you have mulitple directory levels? And what version of php are you running?

I'll take a look at the plugin, but I have it running fine on my 1.0.1 install, so unless I can recreate what you are seeing, (including the version compare problems) I'm not quite sure what I can do...

Posted: Mon Aug 28, 2006 6:03 pm
by mgroeninger
Ahhh... I spoke too soon, sorry...

I was not running 1.0.1, just 1.0... so I have updated and I should generate a fix pretty soon...

I have a feeling that the problem is just because of the multiple version checks I am doing in the code... I'll post here when I have a fix...

Posted: Mon Aug 28, 2006 7:09 pm
by mgroeninger
Ok, a new version is available which should fix the issues...

http://php-blog.cvs.sourceforge.net/*ch ... ision=1.28

I did increase the version so spartacus should pick it up whenever we get updates back...

Thanks for finding the bug and for posting about it!

Posted: Tue Aug 29, 2006 12:51 am
by Guillaume
mgroeninger wrote:You are running a Serendipity version of 1.0.1? And the 1.94 version of the Usergallery gave you an error telling you it was incompatible?
Yes, it did.
mgroeninger wrote:And once you fixed the version comparison it no longer complained about the compatiability, but then it didn't display the "next page" navigation on the thumbnail page, correct?
Correct.
mgroeninger wrote:Are you using directory navigation at all (the "Show a directory listing" option)? If so, are the numbers being output correctly?
Yes, I'm using directory navigation. What numbers do you mean? The numbers of images per directory? Yes, that's correct.
mgroeninger wrote:Do you have mulitple directory levels? And what version of php are you running?
There are currently no directories within the main directory (/uploads/). PHP version: 4.3.11.
mgroeninger wrote:I have a feeling that the problem is just because of the multiple version checks I am doing in the code... I'll post here when I have a fix...
All I did was change the "1.0" to "1.0.1" two times in serendipity_event_usergallery.php.

Oh... :oops: Only after answering all your questions, I saw you'd made an update: it's working :lol:

Thanks for your fast replies and for fixing!

Posted: Tue Aug 29, 2006 1:21 am
by mgroeninger
*laugh* Sorry about that... I should have taken a look at everything before I responded, then you wouldn't have had to answer all those questions...

:D

Glad to hear it is working!