forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: DJKat on August 11, 2011, 09:20:27 am

Title: Problem with Plugin "External tracker"
Post by: DJKat on August 11, 2011, 09:20:27 am
Hi @ all!

I just updated my gallery to the current 1.5 Coppermine Version and found out, that my bbclone does not work as it did with 1.4.
So I installed the external tracker plugin. It seems to work well, but only when I'm logged in as admin.
Where can I change this?

Regards, Dany
Title: Re: Problem with Plugin "External tracker"
Post by: Αndré on August 11, 2011, 04:18:05 pm
Have you looked at the source code as each admin, regular user and guest to find out that the tracker works just for the admin? Please post a link to your gallery.
Title: Re: Problem with Plugin "External tracker"
Post by: DJKat on August 11, 2011, 05:02:21 pm
I haven't looked at the source code yet for I dont know where exactly to look at,  but I noticed the effect by looking at the bbclone stats...

the gallery: http://fotos.danyalexander.de
bbclone: http://fotos.danyalexander.de/bbclone
Title: Re: Problem with Plugin "External tracker"
Post by: Αndré on August 11, 2011, 05:46:50 pm
Please have a look at codebase.php. There's a line that reads
Code: [Select]
    if (!GALLERY_ADMIN_MODE) {
        $stats = 'yes';
    }
which usually tells the script to execute for every non-admin user. You could try to debug that variables by adding
Code: [Select]
    var_dump(GALLERY_ADMIN_MODE);
    var_dump($stats);
below that code.
Title: Re: Problem with Plugin "External tracker"
Post by: DJKat on August 11, 2011, 09:41:57 pm
Tried your lines but the problem is still there.
BBclone still counts only me when I'm logged in.  :-\

Any more hints?
Title: Re: Problem with Plugin "External tracker"
Post by: Αndré on August 12, 2011, 09:09:19 am
Of course the debug code won't fix anything. I can now see the content of the variables, which is
Quote
bool(false) string(3) "yes"

So everything should work fine from the plugin side. I'm not the author of the plugin nor use it myself, so I cannot help you further with that issue.
Title: Re: Problem with Plugin "External tracker"
Post by: DJKat on August 12, 2011, 10:23:28 am
I think it all occurs because of the new coppermine version...  :-\

Restored my old gallery which was 1.4.23 and restore also my bbclone call I added manually to displayimage.php, index.php and thumbnails.php.

Now everything works fine again.

Thanks anyway for your work and help André!!!

Regards Dany