![]() |
Event Views Counter
This addon allows you to display the number of hits/views a calendar event has received.
It also inserts the eventid into the user's session, so they cannot refresh multiple times to boost the view count. Thanks to tnguy3n with his post here STEP 1 - MySQL modification: Code:
ALTER TABLE event ADD hits INT(7) NOT NULL; FIND [line 134] PHP Code:
PHP Code:
STEP 3 - template modification edit template "calendar_showeventsbit" FIND: Code:
</td> Code:
</td> Code:
</td> if you use - please click INSTALL |
Can we see a screenshot or example?
Thanks... hugh |
screenshot added to orginal post.
It doesn't help much - as my event listing template is modified a great deal. |
Great have been looking for this for a long time..Can it be made conditional so only admin can see views ?
|
Yes, to only allow certain usergroups, use the following code:
usergroups 6 and 5 are admin and super moderators, respectively. Code:
<if condition="is_member_of($bbuserinfo, 6, 5) OR $show['admincplink']"> |
The database function works on 4.1.3.
|
All times are GMT. The time now is 03:44 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|