robert_2004
04 Sep 2006, 04:20
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 (http://www.vbulletin.org/forum/member.php?u=35159) with his post here (http://www.vbulletin.org/forum/showthread.php?t=78527)
STEP 1 - MySQL modification:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
STEP 2 - calendar.php
FIND [line 134]
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW, ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Save and upload.
STEP 3 - template modification
edit template "calendar_showeventsbit"
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BEFORE THIS, ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
so it should look like:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and that *should* be everything - i can't think of anything else that was needed.
if you use - please click INSTALL
It also inserts the eventid into the user's session, so they cannot refresh multiple times to boost the view count.
Thanks to tnguy3n (http://www.vbulletin.org/forum/member.php?u=35159) with his post here (http://www.vbulletin.org/forum/showthread.php?t=78527)
STEP 1 - MySQL modification:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
STEP 2 - calendar.php
FIND [line 134]
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BELOW, ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Save and upload.
STEP 3 - template modification
edit template "calendar_showeventsbit"
FIND:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
BEFORE THIS, ADD:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
so it should look like:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and that *should* be everything - i can't think of anything else that was needed.
if you use - please click INSTALL