Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #11  
Old 03-17-2006, 12:35 PM
hs-l Offline
forum loafer
 
Join Date: Aug 2005
Location: Holland
Posts: 16
nice!

this was where i was waiting for, but..
one thing doesn't work:

if i put this in my html: <SC_CAT_NAME>
it doesn't give me any output.


does anyone have a solution?
Reply With Quote
  #12  
Old 03-17-2006, 02:39 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
It only provides output if there is a "&category=x" in the URL, so this tag is only useful when you have entered restricted browsing mode by some means. I imagine that ot would be possible to code the tag to display the cetgory of the current image, as opposed to what is in the URL, but that is beyond my capabilities.
Reply With Quote
  #13  
Old 03-17-2006, 02:55 PM
hs-l Offline
forum loafer
 
Join Date: Aug 2005
Location: Holland
Posts: 16
Ah than it doesn't do wat i want

do you know if it's possible to make it possible to select a catagorie on the frontpage?

here's my example (not in the final design)
http://www.poezebeesten.nl

it's about 3 cats, i want to be able to view the front page for only one of the cats. could that be possible?

thx,

Harold
Reply With Quote
  #14  
Old 03-17-2006, 03:03 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
At weekend there will be quite important update.

Till it please write here all your suggestions about this addon - Ill try take a look on them and maybe put into this (weekends) release.
__________________
photoblog | portfolio | addons | Donate
Reply With Quote
  #15  
Old 03-17-2006, 04:28 PM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile

Quote:
Originally Posted by hs-l
Ah than it doesn't do wat i want

do you know if it's possible to make it possible to select a catagorie on the frontpage?

here's my example (not in the final design)
http://www.poezebeesten.nl

it's about 3 cats, i want to be able to view the front page for only one of the cats. could that be possible?

thx,

Harold
insert the following codes at the begining of codes, you will find what you want:

/*****************/
/* CODE of ADDON */
/*****************/
if (!isset($_GET['showimage']) && !is_numeric($_GET['showimage']) && !isset($_GET["category"]))
{
if(!isset($_GET["category"])) $_GET["category"] = 2;
}

remember to change your category id.
by now, the first image will be the latest image of all images, the second starts to perform the category you want.

It's only a substitute. I think GeoS will give us a suprise soon.
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
  #16  
Old 03-17-2006, 04:52 PM
hs-l Offline
forum loafer
 
Join Date: Aug 2005
Location: Holland
Posts: 16
Quote:
Originally Posted by GeoS
At weekend there will be quite important update.

Till it please write here all your suggestions about this addon - Ill try take a look on them and maybe put into this (weekends) release.
cool!

Well, in short:
i want a button to view only one category at a time (or all)
I'll put a menu in my site to show what i exactly want

but that, later tonight.

jdleung: looks nice, but i guess i'll wait for the update first.

thx!
Reply With Quote
  #17  
Old 03-17-2006, 07:04 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
hs-l, if you only have three categories (one for each cat) and don't intend to change them often, then you could hard code three buttons on the template with URLs that include the category ID (i.e, ...index.php?category=1, etc. and a fourth button that resets the URL to not have a category.

You can also use the category drop down tag (<SC_BROWSE_CATEGORIES>)that GeoS developed to be able to limit your browsing.

But as you say, I expect that GeoS update will make all of this even easier.

GeoS, two things come to my mind for suggestions, the first of which I mentioned earlier so you may already have it covered:

1) a <SC_THUMBNAILS> replacement for the browse_template that passes the category ID selected in the browse template to the image_template;

2) I have put the <SC_BROWSE_CATEGORY> on my main page, but I wanted also to tell viewers that they were in fact browsing a limited set. I have currently hard coded in the template beside the drop down: "You are currently browsing <SC_CAT_NAME>.", which works fine when one has actually selected a category. When no category is selected, since <SC_CAT_NAME> is blank, my sentence remains unfinished. Code in the tag that results in "all images" or "All" or "all categories" when no category is selected would be nice.

That is all I can think of right now. Thanks again.

Rob

Last edited by RobbieMc; 03-17-2006 at 07:56 PM.
Reply With Quote
  #18  
Old 03-17-2006, 07:40 PM
hs-l Offline
forum loafer
 
Join Date: Aug 2005
Location: Holland
Posts: 16
Quote:
Originally Posted by RobbieMc
You can also use the category drop down tag (<SC_BROWSE_CATEGORIES>)that GeoS developed to be able to limit your browsing.
this is what i also wanted, but it doesn't work
Reply With Quote
  #19  
Old 03-17-2006, 08:42 PM
RobbieMc Offline
pp veteran
 
Join Date: Feb 2006
Location: Canada
Posts: 78
Two thoughts: I misquoted the tag name above: it is <SC_BROWSE_CATEGORY>, not categorIES;

Also, I suspect it must be on the image_template to work properly, and you have to change the "next" and "previous" buttons for them to pass the category to the next image.

Beyond that, I don't have access to my code right out to confirm.

Good luck.
Reply With Quote
  #20  
Old 03-18-2006, 03:06 AM
jdleung Offline
pixelpost guru
 
Join Date: Feb 2006
Location: Foshan, China
Posts: 553
Smile

Quote:
Originally Posted by hs-l
this is what i also wanted, but it doesn't work
1.set $cat_form = 1;(in addon codes)
2.don't forget to insert a form tag in image_template.html : <form><SC_BROWSE_CATEGORY></form>

have fun.
__________________
jdleung's.com @ flickr @ fotoblogs.cn & Addons:Month Calendar & Slideshow & Flickr comment & Modified Addon: Calendar
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 05:27 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs