printRandomImages and dynamic album + pagination error

Hi guys,
I use :
Zenphoto 1.4.6
Theme : zpskeleton (the adapted one for 1.4.6 by Fretzl in the Github unsupported directory)
PHP : 5.3.28
MySQL : 5.1.67
rewrite mod : on

1. Using this theme, I've noticed that the pagination works fine if the gallery.php is on the home page (http://www.site.com/page/1, http://www.site.com/page/2, http://www.site.com/page/3, etc.) but it gives 404 errors everywhere else, even using it in a gallery page :

http://www.site.com/page/gallery/2 > 404
http://www.site.com/page/gallery/3 > 404
etc.

Can you reproduce that ?

2. I want to print 10 random images from the dynamic album called "example"
this way :
<?php printRandomImages (10, 'slide', 'example.alb', '' , '630', '200', true); ?>
But Zp sends me an error saying that this album doesn't exist (but it does...)
Could you confirm that the function syntax above is correct or point me in the right direction ?

Thanks.

Comments

  • fretzl Administrator, Developer
    #2
    Use `<?php printRandomImages (10, 'slide', 'album', 'example.alb' , '630', '200', true); ?>`

    Trying to reproduce #1
  • flu Member
    #2 : it works. Thank you fretzl.
  • fretzl Administrator, Developer
    I can reproduce #1 but I don't have a clue right now. Sorry.
    I'll report back if I find something.
  • gjr Member
    Maybe the new pagination out of bounds checks. See the 1.4.6 release notes about needed theme changes. Probably need to add checks on the function.php similar to included themes. Just a guess
  • flu Member
    Thank you Fretzl, I'll have a look too and post here if I find something.

    Hi gjr, I'd like to thank you for this great theme (and the other ones too).
    Just a question : why did you leave it ?
  • If you want a supported version of this theme you might want to try ZenPhoto20. Just visit GitHub and type that ZenPhoto20/ZenPhoto20 into the search field at the top of the page. (I'd give you a link, but the spam filter will just kick me out.)

    If it does not work I will fix it.
  • Google search for ZenPhoto20 will give you the direct link to the repository.
  • trisweb Administrator
    Please refrain from posting advertisements for other projects. Thank you.
  • So then you do not have your user's best interests at heart then. Your user seems to want a supported version of the theme, and there is one. It is pretty hard to tell them where to find it without mentioning the project.
  • fretzl Administrator, Developer
    Thanks @gjr, that was it.

    @flu:
    I updated the theme's `functions.php`. It should work now.
  • flu Member
    Hi Fretzl, thank you.
    If it works great on the gallery pages, it doesn't work anymore on the index pages : 404 error (but I don't need the gallery to be displayed on them anyway).
  • fretzl Administrator, Developer
    Sorry. Forgot to test on the index pages.
    I modified the theme's `functions.php` again and for me it now works on both gallery and index pages.
  • flu Member
    It works for me too.
    Thank you so much Fretzl !
Sign In or Register to comment.