coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: jacek_roch on May 29, 2005, 03:18:39 PM

Title: Who did What with Pictures..who can code it? I think it's simple...
Post by: jacek_roch on May 29, 2005, 03:18:39 PM
Hi,

I was wondering...there must be a possibility of creating a special feature to allow the admin to see which user saw which pictures (their intermediate versions) and which user saw the original picture (downloaded it). The second feature - who saw full size pictures - is even more important than the first one...

I think it needs a new MySQL "user activity" table, where records will be organized like this:

ID - auto increment INT, to have order in the table records
USER - field where the user's username will ba placed when he click on the thumbnail picture to see the intermediate version and when he clicks on a special "download picture" button
PICTURE - the name and path to the picture seen
DATE - when user saw the picture

It will need a script to put these data into the "user activity" table. The script will run when a user clicks on a thumbnail and when he clicks on the intermediate picture or on the button "download picture".

I'm not a good PHP coder, I've tried to do it by myself  but without any result. I think that for an advanced coder it would take maximum 1h to do it...maybe somebody can write it and post it on the forum? Or, maybe I'm wrong and it's not as simple as i imagine?

Best regards
J
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: Joachim Müller on May 30, 2005, 07:01:14 AM
Is this a request for paid support? Are you trying to hire someone to do this for you? If yes, post your budget and a moderator will move this thread for you into the proper section.
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: jacek_roch on May 30, 2005, 06:51:24 PM
Hi,

I was just wondering if my way of thinking was good. I don't know Coppermine or PHP very well, but as I saw some threads on this forum about the detailed statistics, I was curious why nobody wrote the solution here - it seems to be simple (in theory, of course).

If the detailed stats would be necessary for me, I'll write a message in the proper section. But...how much would it cost to write such a thing?

Regards
J
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: Joachim Müller on May 31, 2005, 05:58:45 AM
I consider myself to be a medium-skilled coder, but I'd need more than 1 hour ::). If your coding skills are not that good, I recommend that you don't claim that it's easy if you can't tell for sure.
There are no fixed prices for coding, that's why I suggested you post your budget.
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: jacek_roch on June 01, 2005, 12:20:51 AM
Ok, I'll try to do it by myself :-)

BUT I have a little problem... how shall I enable the "logging" script to write the username of the logged in user who downloaded a picture into the "detailed statistics" table in the MySQL database? I don't know much about logging users and I have no idea how Coppermine (and other scripts) remember that I'm logged in?   (Remember: I'm on the lame+ level :-) )

If the URL were like: www.website.com/showpictures?login=mylogin it would be simple - I'll just have to make the script write the $login into the "detailed statistics" table in the database, but as there is no $login variable, I have no idea how to do it :(

Help me please. If I manage to do it, I'll post the entire solution here :-)

Thanks and Regards
J
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: Joachim Müller on June 01, 2005, 08:21:46 AM
your script will have to read the cookie information (that already exists and resides in a var) and store the user name.
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: jacek_roch on June 01, 2005, 10:54:01 AM
Hmmm....How shall I make my script read that information? (I know, Lame, Lame, Lame...)

Regards
J
Title: Re: Who did What with Pictures..who can code it? I think it's simple...
Post by: kegobeer on June 01, 2005, 12:54:57 PM
Buy a good PHP book.