Results 1 to 8 of 8

Thread: Videos Watched total not incrementing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2008
    Posts
    1,019

    Default

    That is actually being set from the view_video.php file. In the file, line's 156-162, it states:

    PHP Code:
     if ($_SESSION['UID'] != $video_info['video_user_id'])
            {
                
    $sql "UPDATE `users` SET
                       `user_video_viewed`=`user_video_viewed`+1 WHERE
                       `user_id`='" 
    . (int) $video_info['video_user_id'] . "'";
                
    mysql_query($sql) or mysql_die($sql);
            } 
    If your total isn't increasing (and the user is logged in, watching videos), then this line is either commented out or missing altogether.

    Also, make sure that in your user.tpl file, you have something similiar to:

    PHP Code:
    Videos Watched <b>{$user_info.user_video_viewed}</btimes<br /> 
    And not something like:

    PHP Code:
    Videos Watched <b>0</btimes<br /> 
    Because that would do it too.
    Last edited by bplex; 12-30-2010 at 04:37 AM.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •