Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

help making download counter

Quote Reply
help making download counter

I am attempting to make a simple download counter for post attachments in GForum. I would like to display this next to each post attachment...'Downloaded XX times'. I have never done this before, so please excuse my ignorance. Downloads are handled by gforum.cgi?do=post_attachment;posttid=XX I have added an integer field in gforum_PostAttachment called click_count with the value set to zero. My hope was to locate the code that calls the attachment and add a call to read click_count, increment by one and then save result, but am having trouble locating the code.

Can anyone point me in the right direction? Is this as straight forward as it seems or am I missing something? I was going to add a 3rd party cgi counter, but found that GF uses a cgi to download and thought I could do the mod.

Any assistance would be appreciated.

Quote Reply
Re: [bretzke] help making download counter In reply to
does nobody know how to do this? I would appreciate any assistance.
Quote Reply
Re: [bretzke] help making download counter In reply to

This should be possible. I don't know enough about GForum to point out where without poking around.

But you are on the right track.

Look at:


You should be able to call update on a successful database fetch.

PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.