Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Admin tools  (Read 12707 times)

0 Members and 1 Guest are viewing this topic.

enquirer64

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
Admin tools
« on: November 13, 2006, 03:05:43 PM »

Default might be 'No action...' would avoid accidental deletion of all viewer stats.
« Last Edit: November 13, 2006, 03:11:38 PM by GauGau »
Logged
Negative karma and proud of it...

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Admin tools
« Reply #1 on: November 13, 2006, 03:12:31 PM »

Would you mind telling what happened. I use Admin Tools regularly but never had trouble
with user viewer stats being deleted by accident.

Cheers!
Hein
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Admin tools
« Reply #2 on: November 13, 2006, 06:09:53 PM »

Code: [Select]
function reset_views()
{
        global $CONFIG, $lang_util_php;

        $albumid = (isset($_POST['albumid'])) ? $_POST['albumid'] : 0;
        $albstr = ($albumid) ? "WHERE aid = $albumid" : '';

        if (cpg_db_query("UPDATE {$CONFIG['TABLE_PICTURES']} SET hits ='0' $albstr")) echo 'Reset successful';

}

Indeed this function is selected automaticly, i did not check good enough (my bad). Is the above code adjustable to turn the radio button into a box which you can tick if you want to delete views ?

Cheers!
Hein
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Admin tools
« Reply #3 on: November 13, 2006, 06:47:47 PM »

I marked this thread as being "valid" and moved it to the "scheduled for cpg1.5.x" sub-board, which means that the admin tools will be overhauled in future versions.
Please keep in mind that there's no support on the feature requests board. It should be pretty straightforward though to hack the file util.php to have no default action pre-selected.
Logged

enquirer64

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 21
Re: Admin tools
« Reply #4 on: November 13, 2006, 09:37:11 PM »

Thanks some helpful input for which I lost 2 Karma points though.

The thing is this:

We all try and be vigilant when using Admin Tools. The thing is that sometimes one is tired or, I admit, not concentrating fully - baby crying or whatever - and instead of hitting a back button one hits 'Submit' knowing that one has engaged nothing and changed nothing. Then suddenly - hey presto - all one's stats are zeroed....

Explained in this post: http://forum.coppermine-gallery.net/index.php?topic=34002.0

I intend to hack the file... as a human failing is that one forgets... one is tired... and then... all one's views are lost which could be very depressing to say the least/ Thanks for the input.
Logged
Negative karma and proud of it...

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Admin tools
« Reply #5 on: November 14, 2006, 12:05:30 AM »

You didn't get negative karma rating for starting this thread, but for your postings on other threads. Karma rating is a tool for supporters to mark users who do not respect board rules. It's entirely up to us to give karma rating - after all, you're a guest here who gets free support and who is allowed to voice your opinion if you respect board rules. Cluttering this thread with a meta discussion about karma will not improve your karma, nor is it helpful to improve Coppermine. Review the threads that contain previous karma discussions if you're interessted to find out more about it, but please leave this discussion out of this thread.
I understand that you want to see the behaviour of the admin tools changed and I already told you that your request is valid and the behaviour is going to be changed in future versions. What else could I possibly say? As suggested, there's no support on the feature requests board. You request got noted and approved, that's it. Locking.
Logged

TranzNDance

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Female
  • Posts: 6148
    • Take Thu! Gallery
Re: Admin tools
« Reply #6 on: November 15, 2006, 05:03:45 AM »

Personally, I see this as a flaw in the html code, so could the fix not be implemented in 1.4?
Logged
Pages: [1]   Go Up
 

Page created in 0.079 seconds with 20 queries.