![]() |
|
Total Pageviews - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Total Pageviews (/thread-13202.html) |
Total Pageviews - Ralf - 2019-05-28 Hi, cheers Total Pageviews - acrylian - 2019-05-28 Nothing except doing a db query to get all hitcounters. Total Pageviews - Ralf - 2019-05-30 Ok, thanks. Total Pageviews - acrylian - 2019-05-30 I just decided I will take a look if I can add something to the hitcounter plugin itself as that would probably be fitting. Something to choose what total hitcount you wish (all item types, only certain ones etc). A access check is probably not really needed I guess although not visible/protected items would also be counted. Total Pageviews - Ralf - 2019-05-30 That would be great Total Pageviews - acrylian - 2019-05-30 @ralf It's already in the support build now. Total Pageviews - Ralf - 2019-06-20 Cool :-) Total Pageviews - Ralf - 2019-06-20 Hi Acrylian, Total Pageviews - acrylian - 2019-06-20 As usual right within the code and the same here: Total Pageviews - Ralf - 2019-06-20 Hi, Putting this code in an codeblock does not work. Not working means: It does well with the normal hitcounter: I took the code frome here: It seems the problem is how the array is putted in: $h = getTotalHitcounter(); Will give a result of 0, which makes sense because the array is empty. Would be great if you can give me a hint. Total Pageviews - acrylian - 2019-06-20 You need to pass an array of the tables you wish to get the hitcounts from. This Total Pageviews - fretzl - 2019-06-20
Total Pageviews - Ralf - 2019-06-20 @fretzl : Thanks a lot! |