ZenphotoCMS Forum
Prev and Next buttons showing incorrect URLs - please help - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Prev and Next buttons showing incorrect URLs - please help (/thread-2841.html)



Prev and Next buttons showing incorrect URLs - please help - Lanman - 08-05-2008

Hi,

I'm nearly finished integrating ZenPhoto into a new site. I have integrated the nav bar, header etc into the album.php file in a new theme.

I then link straight into the different galleries with links of the form:

http://www.mywebsite.com/gallery/index.php?album=my-gallery-name&page=1

At the bottom of each album page, there are Prev and Next buttons to move between the pages of thumbnails.

Problem:

At the bottom of each album page the Next and Prev buttons link to the previous and next pages in the form:

http://www.mywebsite.com/gallery/my-gallery-name/page/2/

This links to a messed-up page which I haven't integrated into the look-and-feel of my site.

What I would like is the Prev and Next buttons to use links in the form:

http://www.mywebsite.com/gallery/index.php?album=my-gallery-name&page=2

Does anyone know how to do this please? I have seen this done in some of the Zenphoto Showcase sites - but of course I can't see the PHP code there ;-)

Many thanks,

Alan




Prev and Next buttons showing incorrect URLs - please help - acrylian - 09-05-2008

http://www.mywebsite.com/gallery/my-gallery-name/page/2/ and http://www.mywebsite.com/gallery/index.php?album=my-gallery-name&page=2 are the same, the first one is the mod_rewrite generated link, the second the pure one without it.
Just disable mod_rewrite in the admin options and you have it.