• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How do i Fix my View count

Started by demonguru18,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

demonguru18Topic starter

I have issues with my views. when i add videos and watch it once the views increase to 23 then i refresh the page the views increase to 154 and so on how can i fix this. I did not have any problems on my website which had 3.5 installed. I have updated the website to 3.6 and it works fine.
when installed php vibe 3.6 fresh copy on a new domain I am having issues with views, cannot see the full description and also have issue with subcategory display
I have installed the Brasil Theme on both the websitesplz have a look at the attached Image. :mad: :mad: :mad: :mad: :mad: :mad:
I am fan of PHP Vibe
  •  

Marius P.

Did use the search and applied the solutions existing already? I think there are 4-5 threads about this.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

demonguru18Topic starter

Yes I did but could not find any answer. I optimized my database but it did not work. Can yo let me know if the brasil theme has any issue. the views dont increase and the description is not full.
I am fan of PHP Vibe
  •  

Marius P.

The views increase is in com/com_video.php , not in the theme so has no connection with what theme you use.

//Track this view
 if(is_user()) {
 /* Look if he's watched it before*/
  if(!has_activity('3', $video->id)) {
 $db->query("UPDATE ".DB_PREFIX."videos SET views = views+1 WHERE id = '".$video->id."'");
 add_activity('3', $video->id);
 }
 } else {
 /* Track visitors trough a session */
 $track_it = true; /* Start with positive */
 
 if(isset($_SESSION['seen']) && !empty($_SESSION['seen'])) {
$watched_list = (array) explode(',', $_SESSION['seen']);
if ( in_array($video->id, $watched_list))    {  $track_it = false; /* Seen before */ }
}
if($track_it){
/* Add to session and update views count */
$_SESSION['seen'] = $video->id;
$db->query("UPDATE ".DB_PREFIX."videos SET views = views+1 WHERE id = '".$video->id."'");
}
//End visitor
}
//End tracking
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

You clicked repair database after selecting all tables, and after optimized, right?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

demonguru18Topic starter

yes i did follow the steps but still my vies are stuck. help please  :-\ :-\ :-\
I am fan of PHP Vibe
  •  

Marius P.

Quote from: demonguru18 on
yes i did follow the steps but still my vies are stuck. help please  :-\ :-\ :-\

Send me something, an panel, something, I can't help otherwise.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

demonguru18Topic starter

how do i send you my cpanel info to have a look. I cant PM you
I am fan of PHP Vibe
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

demonguru18Topic starter

I did send you cpanel details in your inbox
I am fan of PHP Vibe
  •  

Marius P.

Quote from: demonguru18 on
I did send you cpanel details in your inbox

I've went to one of your videos which had 4 views, and it got to 5 views on the index (on the video page that's cached and won't update in real time).
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Marius P.

I can't see any issue, it behaves normal, increases with 1 on a singular visit, then no longer increases.
And the database is fine...
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)