listing a total on frontpage (counter)

Phoca Gallery - image gallery extension
Token
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 15 May 2009, 11:58

listing a total on frontpage (counter)

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: listing a total on frontpage (counter)

Post 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
If you find Phoca extensions useful, please support the project
dougabc123
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Apr 2009, 03:38

Re: listing a total on frontpage (counter)

Post 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.
Last edited by dougabc123 on 06 Jun 2009, 04:37, edited 1 time in total.
PhyTonX
Phoca Member
Phoca Member
Posts: 11
Joined: 13 May 2009, 00:51

Re: listing a total on frontpage (counter)

Post by PhyTonX »

maybe somebody could make the counter module please cause it would be very usefull for most users :)
cool wallpapers site: http://www.wallpaperszone.ws with no ads.
dougabc123
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Apr 2009, 03:38

Re: listing a total on frontpage (counter)

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: listing a total on frontpage (counter)

Post 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
If you find Phoca extensions useful, please support the project
Post Reply