I've checked but I haven't seen an option to ignore picture views when logged into the admin account...I don't want to increment my counters when I'm doing admin stuff.....Thanks!
this option hasn't been implemented yet. Will be considered for future versions.
GauGau
I second that one... I'm constantly toying around with my gallery and hate that it increments the view counter when I view a pic. I'd like to see that make it into 1.4.
A very quick and dirty solution to this would be to do the following.
In file: displayimage.php
Replace
if ($album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
if (!USER_IS_ADMIN && $album != "lasthits" && !in_array($pid, $USER['liv']) && isset($HTTP_COOKIE_VARS[$CONFIG['cookie_name'] . '_data'])) {
And all should be fine (haven't tested it but I am pretty sure it works) as I said it is a diry little trick but the simplest way of doing it.
I second RatKing's solution - simplest way to do it
Tested it... works great. Thanks!
@devs: Should we add this to the devel code?
Joachim
This was a great suggestion and solution! :) I also minimized viewing my images because I didn't want to inflate the view counter.
oh, by the way... I tested it on the 1.4 CVS I downloaded about a week or so ago. I've not bothered to download the latest CVS which appears to be about 4 days old. But I can verify that it does work as expected on 1.4. No idea about 1.3 though.
@Joachim: Yes, add it to devel.
committed @ devel displayimage.php v.1.61
*heads over to CVS* :P