Admin tools Admin tools
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Admin tools

Started by enquirer64, November 13, 2006, 02:05:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

enquirer64

Default might be 'No action...' would avoid accidental deletion of all viewer stats.
Negative karma and proud of it...

Hein Traag

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

Hein Traag

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

Joachim Müller

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.

enquirer64

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.
Negative karma and proud of it...

Joachim Müller

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.

Tranz

Personally, I see this as a flaw in the html code, so could the fix not be implemented in 1.4?