Who did What with Pictures..who can code it? I think it's simple... Who did What with Pictures..who can code it? I think it's simple...
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Who did What with Pictures..who can code it? I think it's simple...

Started by jacek_roch, May 29, 2005, 03:18:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jacek_roch

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

Joachim Müller

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.

jacek_roch

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

Joachim Müller

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.

jacek_roch

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

Joachim Müller

your script will have to read the cookie information (that already exists and resides in a var) and store the user name.

jacek_roch

Hmmm....How shall I make my script read that information? (I know, Lame, Lame, Lame...)

Regards
J

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots