Author Topic: Videos Being Watched  (Read 3568 times)

0 Members and 1 Guest are viewing this topic.

Offline Panda

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Videos Being Watched
« Reply #15 on: April 06, 2010, 04:05:53 AM »
It doesn't link to the correct video url when you click the video being watched.

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Videos Being Watched
« Reply #16 on: April 06, 2010, 02:18:13 PM »
In recent.php replace the code with:
Code: [Select]
<?php

ob_start
'ob_gzhandler' );

require( 
"header.php" 

?>
 
<ut_response status="ok">

    <video_list>

<?

$sql = "SELECT * FROM pp_files WHERE approved = '1' ORDER BY RAND() limit 20"; //Limitation
$result = mysql_query($sql);
while($row = mysql_fetch_assoc($result)){
$beingwatched[] = $row;
?>



         <video>
<title><?=$row['name']; ?></title>
                <run_time><?=$row['views']; ?></run_time>
 

      <url>videos.php?id=<?=$row['id']; ?></url>



<thumbnail_url><?=$row['picture']; ?></thumbnail_url>


         </video>





<?
}
?>
    </video_list>


</ut_response>

<?php
$smarty 
-> assign 'beingwatched' $beingwatched ); 
$smarty -> display 'index.tpl' ); 
?>



Try that.

Offline Panda

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Videos Being Watched
« Reply #17 on: April 06, 2010, 11:49:26 PM »
Yes that worked! Thanks  ;D

Offline Panda

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Videos Being Watched
« Reply #18 on: April 09, 2010, 11:01:11 PM »
It shows up fine in FireFox but it's not showing in Internet Explorer. Do you know why?

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Videos Being Watched
« Reply #19 on: April 10, 2010, 12:06:07 AM »
No idea, sorry,