Number of hits under the video on the videos page
|
30-03-2011, 06:24 AM
(This post was last modified: 30-03-2011 12:14 PM by Punktured.)
Post: #1
|
|||
|
|||
Number of hits under the video on the videos page
To do this, we one have to exchange two lines of code.
This code is in the functions file, which is located at /include/functions.php The two lines we change in functions.php are the same, so once you find the first one, the second one is just a bit further down in the code. Find this line, in the function "tablo()": Code: $data=$data.'<td valign="top"><a href="'.$root_url.$linki.'"><div align="center"><img multiple_thumbnail_url="g" class="video-thumb" border="0" src="'.$root_url.'img/thumb/'.$row['v_id'].'_0.jpg" num="'.$row['num'].'" id="thumb'.($i+1).'" alt="'.urldecode($row['title']).'" width="160" height="120" /></div>'.urldecode($row['title']).'</a></td>'; simply change the last part of that line: Code: </td>'; to this: Code: <br>Views: '.$row['hit'].'</td>'; NOTE: Be sure to clear your cache files for the changes to take effect. Custom HTML/CSS/PHP http://theorderofindividualacceptance.co...p.php?id=1 |
|||
30-06-2012, 11:55 AM
Post: #2
|
|||
|
|||
RE: Number of hits under the video on the videos page
I don't think this works anymore. I've done it, cleared cache, checked on another computer, no views
|
|||
18-07-2012, 04:31 PM
Post: #3
|
|||
|
|||
RE: Number of hits under the video on the videos page
I dont this this works either, I've cleared the cache files, it is showing a line under the videos, but not counting any views,
|
|||
« Next Oldest | Next Newest »
|