Page 1 of 1

listing a total on frontpage (counter)

Posted: 15 May 2009, 12:47
by Token
Hi,

I'm using phoca gallerie for displaying more then 800 _ _. If people want to know how many shirts i've got, I now need to count all my shirts in the categories.

Now I can see a total of the shirts in each categorie but is it possible to show a total of all my shirts on my frontpage?

For example displaying on the frontpage: I have a total of 853 _ _!

Erik.

Re: listing a total on frontpage (counter)

Posted: 17 May 2009, 22:10
by Jan
Hi, there is no such option but this can be easily made e.g. in module, so there will be some sql query which will get information about count of images saved in Phoca Gallery and then it will display it.

Jan

Re: listing a total on frontpage (counter)

Posted: 05 Jun 2009, 09:51
by dougabc123
I have a Phoca gallery of more than 26,000 images in 450+ categories, and manually counting them isn't an option, but I would also like to put this counter somewhere on the site.

Re: listing a total on frontpage (counter)

Posted: 05 Jun 2009, 16:51
by PhyTonX
maybe somebody could make the counter module please cause it would be very usefull for most users :)

Re: listing a total on frontpage (counter)

Posted: 06 Jun 2009, 01:34
by dougabc123
The module or plug-in would be really small because all it would be is a short SQL query that asks the database to count the number of records in the images and categories tables, and return the result.

I don't think that it would be safe to put a SQL statement in to a web page. I'm not a web developer or programmer, but I understand the generalized database concepts. There are already SQL count query / statements that count the number of records in the Phoca suite of software, because it displays the number of images in an individual category.

Not a top priority, but this module / plug-in may only take a short amount of time.

Re: listing a total on frontpage (counter)

Posted: 06 Jun 2009, 13:43
by Jan
Hi, added into the feature request list. Yes you right, it should be easy, the problem is, before it there are a lot of tasks there which need to be done :( :( So I hope I find time for doing it

Jan