PDA

View Full Version : Categories


neilwin
02-03-2007, 01:56 PM
I have looked at the Wiki etc but cannot find any help. So please can someone explain about categories in PP?

I can create a new category and I can put a photo in a particular category. When I click on Browse I can select a particular category and then I see just those thumbnails that are in that category. . But when I go back to looking at the photos full size I still see all of them again.

What is the purpose of categories in PP? Is it just to be used when browsing? I would like to be able to look at just one category of photos when looking at them full size, but that does not appear to be available.

Thenks

Neil

Connie
02-03-2007, 04:44 PM
you mix 2 things in one

the categories are there for categorizing photos, what else ;=)

the situation, which you describe after selecting a category in the archive and then load one, that navigation will lead to photos of all categories in that case is a very much discussed feature here in the forum

do a search!

Vernon.Trent
02-03-2007, 08:42 PM
geos' category addon can show all images from the same category.
check out his link
http://pixelpost.org/v1/index.php?x=downloads&details=156

neilwin
02-05-2007, 04:26 PM
geos' category addon can show all images from the same category.
check out his link
http://pixelpost.org/v1/index.php?x=downloads&details=156

I have downloaded and unzipped this addon. I can see the extra php file to go in the addons directory. However there is also a new templates and folder. If I upload that it will overwrite the original templates folder. That cannot be right, surely.

Neil

Dkozikowski
02-05-2007, 04:36 PM
The new template file is probably included to show you the new template tags the addon uses. Check out the source code of the template to see how the new tags are used and impliment them into your current design.

neilwin
02-06-2007, 01:59 PM
I am beginning to understand. I have downloaded and unzipped the addon file to show categories on the front page. There is a new addon "geos_show_category.php" which I can upload to the addons directory.

There is a new templates folder which has a new folder in it, "pixelpost_show_cats." I can upload this as a new folder in the templates directory. This folder contains "pixelpost_light.css, browse_template.html and image_template.html".

The help file with the addon says that I can then run PP as normal or I can show just a particular set of photos (a category) on the front page. To decide which is which I have to change the URL as per the following instruction.

"To do so you need to add extra variable to standard URL - category=CAT_ID."

I am not sure how to do that. Any help appreciated. Thanks

Neil

austriaka
02-06-2007, 08:09 PM
Standard URL: {pixelpost_root}/index.php?showimage=123
Changed URL: {pixelpost_root}/index.php?showimage=123&amp;category=<CAT_ID>

Have a look at my blog, there it is working fine
KArin

Marx
02-06-2007, 09:16 PM
K, and the changed url where do i adjust that one?
Cant get it workin either..

austriaka
02-06-2007, 10:03 PM
what do you mean by "adjust"?
Just replace it exactly like I wrote it above

K

neilwin
02-07-2007, 10:57 AM
Standard URL: {pixelpost_root}/index.php?showimage=123
Changed URL: {pixelpost_root}/index.php?showimage=123&amp;category=<CAT_ID>

Have a look at my blog, there it is working fine
KArin

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?

And how do I get it to show all photos if I am not bothered about the category?

Sorry to be so thick!!

Neil

neilwin
02-12-2007, 10:21 AM
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?

And how do I get it to show all photos if I am not bothered about the category?

Sorry to be so thick!!

Neil

I have not had an answer to this question so I ask again please.

Neil

austriaka
02-12-2007, 11:37 AM
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>&amp;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>

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

neilwin
02-12-2007, 02:47 PM
Thanks to austriaka for the instructions. This is not mentioned at all with the original addon. Are people expected to know all this? I would never have been able to work out what to do.

I think that sometimes these clever people who create addons expect too much knowledge from everyone. They can write the programs but they do not always realise how little is known by most users.

Many thanks. I will now have a go at making it work.

Neil

austriaka
02-12-2007, 05:24 PM
Neil,
those clever people writing addons assume that people have already dealt with Pixelpost template structure and know what they do when installing an addon.

Those clever people do a lot of work with their addons just for people like you who are not capable of hacking the files.

Those clever people have not the time to write big documentation books about things one can expect people find out by themselves.


Those clever people are not payed for their work, the only remuneration they may receive is a small "thank you" or "that's great".

And those clever people usually are more than willing to help you get it work.

KArin

neilwin
02-12-2007, 09:31 PM
Neil,
those clever people writing addons assume that people have already dealt with Pixelpost template structure and know what they do when installing an addon.

Those clever people do a lot of work with their addons just for people like you who are not capable of hacking the files.

Those clever people have not the time to write big documentation books about things one can expect people find out by themselves.


Those clever people are not payed for their work, the only remuneration they may receive is a small "thank you" or "that's great".

And those clever people usually are more than willing to help you get it work.

KArin

I think you misunderstood me when I referred to "clever people". I was not being impolite, I really think that they are clever and I admire them for what they do. I have had this experience in the past many times when programmers assume too much knowledge. I have done it myself sometimes no doubt. ( I used to create databases for small businesses.)

And I do realise that they are not paid (note the spelling) for all their work, and I am very grateful for it. As I said I will now go away and try to make it all work. If I fail then I will give up and accept PP in its original form and be happy.

Neil

Dkozikowski
02-12-2007, 10:04 PM
As I said I will now go away and try to make it all work. If I fail then I will give up and accept PP in its original form and be happy.

Neil

Don't give up! You will get it working :) Just keep trying.

Do as Karin pointed out above and you should be all set. Just a little note about Karin's outline,

Where it says:

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>">

make sure this is no space in between &a mp; you want it to look like &amp;

austriaka
02-13-2007, 05:47 AM
I think you misunderstood me when I referred to "clever people". I was not being impolite...
Since english is not my native tongue I thought you were sarcastic, sorry
(note the spelling)thanks for improving my english ;)
no space in between &a mp;
Sorry for that, no idea how it came in there

KArin