Thread: Categories
View Single Post
  #12  
Old 02-12-2007, 11:37 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
Quote:
Originally Posted by neilwin View Post
OK, when I hover the mouse over a photo I can see the URL for the next photo as shown above. I can understand that I need to add the extra information for the category.

But WHERE do I make the changes so that the category is included in the URL? Do I have to edit one of the files and if so which one?
in image_template.html replace as follows:

original: <a href="index.php?showimage=<IMAGE_PREVIOUS_ID>">
replace: <a href="index.php?showimage=<SC_IMAGE_PREVIOUS_ID>&a mp;category=<SC_CAT_ID>">

original: <IMAGE_THUMBNAIL_ROW>
replace: <SC_THUMB_ROW>

original: <IMAGE_PREVIOUS_LINK>
replace: <SC_IMAGE_PREVIOUS_LINK_TXT>

original: <IMAGE_NEXT_LINK>
replace: <SC_IMAGE_NEXT_LINK_TXT>

original: <a href="<SITE_BROWSELINK>">Browse Archive</a>
replace: <a href="<SITE_BROWSELINK>&amp;category=<SC_CAT_ID>" title="Browse <SC_CAT_NAME>">Browse Archive</a>

<SC_BROWSE_CATEGORY> gives you a select menu with all categories which leads to the current image of chosen category.

in browse_template.html replace as follows:

original: <THUMBNAILS>
replace: <SC_THUMBNAILS>

if you want page navigation in archive page (= browse template), use <SC_THUMBNAILS_NAV>

Quote:
And how do I get it to show all photos if I am not bothered about the category?
if category in URL is empty, all images should be shown

KArin
__________________
Uh!log Photoblog
My Addons
Reply With Quote