Quote:
Originally Posted by Naijasite
Your mod is really nice and i really appreciate your response. Though i wont mind if the views is been increase whe guest view videoes. Because this will attract other guest to click other video based on the many views.
Please if you can tell me what code to edit so views and like will be increased when guest view or click on like a video, just the same way it works on thread.
Because more views or likes will attract more video click.
Thanks in advance.
|
For Views: Open file video.php
Find (Lines 845-849):
Code:
// Count View
if ($userid > 0 && $userid <> $item["userid"])
{
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."videoclub_items SET views=views+1 WHERE id=$itemid");
}
Replace with:
Code:
// Count View
$vbulletin->db->query_write("UPDATE ".TABLE_PREFIX."videoclub_items SET views=views+1 WHERE id=$itemid");
For Votes, sorry but there are many variables to edit, not only to php but also to template. Also modifying the code it will brings database errors when a guests tries to vote:
1.- During saving vote
2.- When tries to get the list of voters