|
Event Views Counter
This modification is in the archives.
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:
($hook = vBulletinHook::fetch_hook('calendar_start')) ? eval($hook) : false;
PHP Code:
// Event Views Counter - by Robert_2004
STEP 3 - template modification edit template "calendar_showeventsbit" FIND: Code:
</td> </tr> </table> </form> </div> $spacer_close Code:
</td>
</tr>
<tr>
<td>
<!-- // Event Views Counter - by Robert_2004 -->
<!-- // index.php?t=1067471 -->
<strong>Viewed</strong>: $eventinfo[hits] times
Code:
</td>
</tr>
<tr>
<td>
<strong>Viewed</strong>: $eventinfo[hits] times
</td>
</tr>
</table>
</form>
</div>
$spacer_close
if you use - please click INSTALL Download No files for download. Screenshots
|
|||||||||
Similar Mods
| Forum Home Enhancements Forum Views Counter - Track the number of forum views | Modification Graveyard |
| Profile Views Counter | vBulletin 2.x Full Releases |