k3v
08-16-2006, 01:56 PM
I installed pixelpost as a group photoblog. I know it doesn't yet have this functionality, but I hacked it a bit to make it behave better for a group photoblog.
Actually, to be precise, we're simply sharing one admin account to post photos, but what I wanted it to do was to have a separate "photoblog" view (i.e. not a browse view) for only my photos. Same for all the other contributers to the photoblog.
How our group photoblog works is that whenever a group member posts, we add a specific category to that photo (in addition to any other ones), so when I post I make sure all my photos are tagged with #k3v.
Then I changed the index.php to accept another parameter which lets me specify which category I only want to view. It works based on the ID of the category (may have to dig in the database to find this). In my case, my #k3v category is category ID 1 so when I go to http://HotPhotatoes.photoquickies.com/?browseCat=1 it will load up only my photos. I've attached my modified index.php below, you can see which sections I modified by searching for "k3v mod".
What I've changed:
Only show photos from 1 category in photoblog view
Navigate (previous, next) within category
Browse defaults to currently viewing category
Custom title for each category (this requires a bit of hacking on your part)
What I haven't changed
Default Home link and link from Site title. These will send you back to the original category-less page. If you want to change this, you need to edit your template.
Only works for sites without MOD_Rewrite enabled (I'm on Dreamhost, so I configured for that). You can fix this by looking at where $showlink is first defined
Probably more, can't remember right now.
How do you attach files on this forum? I can't find it in the post options. Anyways, you can download it from my server for now (http://www.photoquickies.com/HotPhotatoes/index.phps)
Actually, to be precise, we're simply sharing one admin account to post photos, but what I wanted it to do was to have a separate "photoblog" view (i.e. not a browse view) for only my photos. Same for all the other contributers to the photoblog.
How our group photoblog works is that whenever a group member posts, we add a specific category to that photo (in addition to any other ones), so when I post I make sure all my photos are tagged with #k3v.
Then I changed the index.php to accept another parameter which lets me specify which category I only want to view. It works based on the ID of the category (may have to dig in the database to find this). In my case, my #k3v category is category ID 1 so when I go to http://HotPhotatoes.photoquickies.com/?browseCat=1 it will load up only my photos. I've attached my modified index.php below, you can see which sections I modified by searching for "k3v mod".
What I've changed:
Only show photos from 1 category in photoblog view
Navigate (previous, next) within category
Browse defaults to currently viewing category
Custom title for each category (this requires a bit of hacking on your part)
What I haven't changed
Default Home link and link from Site title. These will send you back to the original category-less page. If you want to change this, you need to edit your template.
Only works for sites without MOD_Rewrite enabled (I'm on Dreamhost, so I configured for that). You can fix this by looking at where $showlink is first defined
Probably more, can't remember right now.
How do you attach files on this forum? I can't find it in the post options. Anyways, you can download it from my server for now (http://www.photoquickies.com/HotPhotatoes/index.phps)