Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Sun Nov 19, 2006 11:58 pm Reply with quote

Has anyone used Nuke Video 2.2? I have some flv videos that I want to my members to view but not download.

I own The Wimpy Player but I really like how NukeVideo did the whole Module. Has anyone used it?

Dawg


Last edited by Dawg on Thu Nov 23, 2006 8:25 pm; edited 1 time in total 
View user's profile Send private message
Dawg







PostPosted: Tue Nov 21, 2006 8:42 am Reply with quote

After Viewing the options I settled on HTTP Video Stream Module

It's Free...It's GPL and they support it.
[ Only registered users can see links on this board! Get registered or login! ]

Install went easy. Couple of Small tweaks later....it works like a champ.

There was not much to offer in the way of blocks....so I made a bunch. If anyone wants them just let me know.
 
Dawg







PostPosted: Thu Nov 23, 2006 8:34 pm Reply with quote

Raven, If you do not mind I am going to post these blocks here. The support site for these blocks has issues with posting code. (It does not work right) and I am getting hit with requests.

Save this to a file call block-whatever. Upload to your blocks dir. Go to Block admin and add to you list of blocks and then activate them.

So here goes.....

Center Block with Most Viewed, Highest Rated and Latest Video with thumbnails



Code:


<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify     //
// it under the terms of the GNU General Public License as published by     //
// the Free Software Foundation; either version 2 of the License, or        //
// (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //

//----------------------------------------//
//
//Center Block by Dawg//
//Based on The Random video block by Q @ [ Only registered users can see links on this board! Get registered or login! ] //
//----------------------------------------//


//Center Block to show Latest Video, Highest Rated and Most Viewed//

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
global $prefix, $prefix, $db;

$limit = 1;

//Views
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (views) DESC LIMIT $limit");

while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }    

      $content .="<td>";
        $content .="<center><b>Most Viewed Video<b></center>\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><center><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a></center></td>";

}
//Latest Added
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT $limit");
while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      $content .="<td>";
      $content .="<center><b>Latest Video<b></center>\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><center><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a></center></td>";

}
 //Rated
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (rating/rates) DESC LIMIT $limit");
while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      $content .="<td>";
      $content .="<center><b>Highest Rated Video<b></center>\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><center><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a></center></td>";

}
   
?>


Side Block with Most Viewed, Highest Rated and Latest Video with thumbnails




Code:



<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify     //
// it under the terms of the GNU General Public License as published by     //
// the Free Software Foundation; either version 2 of the License, or        //
// (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //

//----------------------------------------//
//
//Block by Dawg//
//Based on The Random video block by Q @ [ Only registered users can see links on this board! Get registered or login! ] //
//----------------------------------------//


//Side Block to show Latest Video, Highest Rated and Most Viewed//

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
define('NO_HEADER', true);
global $prefix, $prefix, $db;
$limit = 1;
$content = "<p align=\"center\">";
//Most Views
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (views) DESC LIMIT $limit");

while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      //$content .= "<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";
      $content .="Most Viewed Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br><br>";

}
//Latest Added
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT $limit");
while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      //$content .= "<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";
      $content .="Latest Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br><br>";

}
 //Rated
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (rating/rates) DESC LIMIT $limit");
while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      //$content .= "<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";
      $content .="Highest Rated Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br><br>";

}
?>


Side Block Highest Rated with thumbnail....

Code:


<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify     //
// it under the terms of the GNU General Public License as published by     //
// the Free Software Foundation; either version 2 of the License, or        //
// (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //

//----------------------------------------//
//Block by Dawg//
//Based on The Random video block by Q @ [ Only registered users can see links on this board! Get registered or login! ] //
//----------------------------------------//


//Side Block to show Highest Rated//

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
define('NO_HEADER', true);
global $prefix, $prefix, $db;
$limit = 1;
$content = "<p align=\"center\">";
//Rated
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (rating/rates) DESC LIMIT $limit");


while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      //$content .= "<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";
      $content .="Highest Rated Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";

}

 ?>


Side Block Most Views with thumbnail



Code:


<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify     //
// it under the terms of the GNU General Public License as published by     //
// the Free Software Foundation; either version 2 of the License, or        //
// (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //

//----------------------------------------//
//Block by Dawg//
//Based on The Random video block by Q @ [ Only registered users can see links on this board! Get registered or login! ] //
//----------------------------------------//


//Side Block to show Most Views//

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
define('NO_HEADER', true);
global $prefix, $prefix, $db;
$limit = 1;
$content = "<p align=\"center\">";
//Views
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (views) DESC LIMIT $limit");

while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      $content .="Most Viewed Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";

}
?>


Latest Video Added with thumbnail

Code:


<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify     //
// it under the terms of the GNU General Public License as published by     //
// the Free Software Foundation; either version 2 of the License, or        //
// (at your option) any later version.                                      //
// ------------------------------------------------------------------------- //

//----------------------------------------//
//Block by Dawg//
//Based on The Random video block by Q @ [ Only registered users can see links on this board! Get registered or login! ] //
//----------------------------------------//


//Side Block to show Latest Video//

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
define('NO_HEADER', true);
global $prefix, $prefix, $db;
$limit = 1;
$content = "<p align=\"center\">";
//Latest Added
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT $limit");

while ($row = $db->sql_fetchrow($result)) {
  $imsrc = $row['imgurl'];
        if ($row['vidname'] != '') {
            $thumb_title = $row['vidname'];
        } else {
            $thumb_title = substr($row['imgurl'], 0, -4);
        }
      $content .="Latest Added Video\n";
      $content .="<a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."><img src=".$row['imgurl']." border=\"0\" width=145 alt=".$row['vidname']."></a>\n";
      $content .= "<br><a href=modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id'].">".$row['vidname']."</a><br>";

}
?>


If you have any questions....feel free to ask and I will try to help.

Those of you here that KNOW WAY more than me.....if you see something here that needs work...Please tell me so I can learn more.....I hear the music....just sometimes I can not carry the tune!

Dawg
 
redhairz
Worker
Worker



Joined: Nov 17, 2006
Posts: 222

PostPosted: Mon Nov 27, 2006 6:25 pm Reply with quote

hmmm interesting it can help to boost up ur visitor. bring U tube into your site cool. what about the site secruity is it safe? does the sentinel have trouble dealing with member submiit link or script?
 
View user's profile Send private message
stickygreen
New Member
New Member



Joined: Jan 13, 2006
Posts: 8

PostPosted: Mon Nov 27, 2006 7:47 pm Reply with quote

This is a good module that still needs some work. Its not completly finished but its pretty functional imo.
 
View user's profile Send private message
Dawg







PostPosted: Mon Nov 27, 2006 9:54 pm Reply with quote

I have not looked at the Upload stuff. You would have to ask Raven about that. I do not use the upload features on my site so I did not bother. I run a regional site where most of the folks know one another to some exist. Overall it seems to work well...but still has some growing to do.

Dawg


Last edited by Dawg on Wed Nov 29, 2006 6:38 am; edited 1 time in total 
srhh
Involved
Involved



Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Nov 28, 2006 2:34 pm Reply with quote

I got pointed to this module from Dawgs posts and installed it and has been running for about a week. Its easy to use and install; I have come across a few minor bugs here and there, but have been able to resolve them without too much headache.
As far as security goes, i don't know for sure.
It gives members two ways to submit videos, either by the URL or by the embed code. While testing as a regular member, I did get banned by Sentinel trying to submit a video through the embed code. Although others have not had that problem.
But submitting by the video url is fine, although you then have to chose either media player or real player as the medium instead of the default for YouTube or MySpace.
All "uploads" (linking really) have to be approved by the admin and you can chose if you even want to have member upload. So there do seem to be safeguards in that respect.
As for other security vulnerabilities, well, you would have to ask Raven to look at it Wink *hint hint wink wink* But after 2.10 comes out. Smile
It has really upped my visitors and return members, I should add.

P.S. Dawg, thanks for the block codes!
 
View user's profile Send private message
Dawg







PostPosted: Wed Nov 29, 2006 6:46 am Reply with quote

Srhh,
No Prroblem. I try to help when I can. I have a couple things I would like to try with this Mod. I would like to see Banners included in it. Most of my vids are from local sources so I have to host all of them. Bandwidth coast s money....so I want some way to get revenue from them. I also need to do some more work to the center block. I have a couple cool ideas for it.

Hopefully when Raven and Team get done with 2.10 we can talk them into takeing a look at it.

Dawg
 
onasre
New Member
New Member



Joined: Nov 29, 2006
Posts: 1

PostPosted: Wed Feb 14, 2007 11:28 pm Reply with quote

is there any way to show the
Center Block with Most Viewed, Highest Rated and Latest Video with two column instaed of one?

i want to show two clips from each catgeory i edited the limit from 1 to 2 but the center block got ugly so it has to be two column
 
View user's profile Send private message
echopros
New Member
New Member



Joined: Oct 04, 2007
Posts: 22

PostPosted: Thu Oct 04, 2007 7:02 pm Reply with quote

i can help you with the nuke video im using it but i modify a lot of things you can view it here [ Only registered users can see links on this board! Get registered or login! ]

and i creat a block in the index [ Only registered users can see links on this board! Get registered or login! ] you can view it here
 
View user's profile Send private message
fresh
Regular
Regular



Joined: Mar 12, 2008
Posts: 74

PostPosted: Wed May 14, 2008 10:25 pm Reply with quote

I am just curious if anyone have a center block for the latest video? coz i am using latest 3 videos and since slide block shows 3 videos in vertical line i can't use it in the center block.
If anyone have it please share it or is there a way i can edit the above??
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©