Glockie
Well-known member
Hello all,
Just wondering if this is possible and if so, how?
I'd like to count visits to a page, I have read that it can cause extra queries though and possible performance implications? Is that so?
Anyway I have read here;
https://xenforo.com/community/threads/xenforo-log-and-count-visits-with-custom-xf-template.78215/
And read @Mike 's reply;
Just wondering if anyone knows how to actually implement this?
I added some code but didn't work sadly.. So not 100% sure if I have done it right and even if the correct code was even added.
Thanks in advance for your help.
Just wondering if this is possible and if so, how?
I'd like to count visits to a page, I have read that it can cause extra queries though and possible performance implications? Is that so?
Anyway I have read here;
https://xenforo.com/community/threads/xenforo-log-and-count-visits-with-custom-xf-template.78215/
And read @Mike 's reply;
Have a look at the pagenode_container template. The $page value is passed to you so you can use the same output in the template (provided you pass $page to it).
Just wondering if anyone knows how to actually implement this?
I added some code but didn't work sadly.. So not 100% sure if I have done it right and even if the correct code was even added.
Thanks in advance for your help.