You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Block-videos 1.2 - Help required [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
howarj
Nuke Cadet
Nuke Cadet


Joined: Jul 12, 2005
Posts: 2


PostPosted: Fri Sep 02, 2005 4:10 am Reply with quoteBack to top

Does anyone know anything about the above block, and how it works ? I have it installed but cannot play the files. I'm not too sure which parts of the php file to edit in order to customize it for my own site.


Code:
<?php

/************************************************************************/
/*                                                                      */
/* Video Player for Direct Upload Nuke 1.0                              */
/* Copyright (c) 2005 by Anthony Stewart owner@ParentalSkills.org       */
/* http://www.ParentalSkills.org                                        */
/*                                                                      */
/************************************************************************/

if (eregi("block-Modules.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
//$content.="<strong>Select file</strong><br>";

$content.="<form action=\"$PHP_SELF#vid\" name=\"videos\" method=\"post\">
<a name=\"vid\">
<select name=\"videos\" size=\"1\">";

$get_videos=mysql_query("SELECT * FROM nuke_downloads_downloads WHERE title LIKE '%.wmv%' OR title LIKE '%.wma%' OR title LIKE '%.avi%' OR title LIKE '%.wav%' OR title LIKE '%.mpg%' OR title LIKE '%.mpg%' OR title LIKE '%.mp3%' OR title LIKE '%.midi%' OR title LIKE '%.aiff%' OR title LIKE '%.au%' OR title LIKE '%.mov%' ORDER BY title ASC");
while($video_array=mysql_fetch_array($get_videos)) {
$content.="<option value=\"$video_array[title]\">$video_array[title]</option>";
}

$content.="
</select>
<select name=\"player\" size=\"1\">
<option value=\"w\">Windows Media Player</option>
<option value=\"q\">Quicktime Player</option>
</select>
<input type=\"Submit\" name=\"Submit\" value=\"Play this video\" /><p>";

$get_info = mysql_fetch_array(mysql_query("SELECT * FROM nuke_downloads_downloads WHERE title LIKE '%$_REQUEST[videos]%'"));

$content.="<table border=\"0\">
             <tr>
               <td colspan=\"2\"><strong>Now playing:</strong></td>
             </tr>
             <tr>
               <td>File name:</td><td><strong>$get_info[title]</strong></td>
             </tr>
             <tr>
               <td>Submitted by:</td><td><strong>$get_info[submitter]</strong></td>
             </tr>
             <tr>
               <td>Description:</td><td><strong>$get_info[description]</strong></td>
             </tr>
           </table>
          ";
if(isset($_REQUEST[Submit])){ $play_now = "true"; } else { $play_now="false"; }
if($_REQUEST[player]=="w" || (!isset($_REQUEST[player]))) {
$content.="<div align=\"center\">
  <p><OBJECT ID=\"mediaPlayer\" maxwidth=320 CLASSID=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" CODEBASE=\"http://activex.microsoft.com/activex/ controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" STANDBY=\"Loading Microsoft Windows Media Player components...\" TYPE=\"application/x-oleobject\">
<PARAM NAME=\"fileName\" VALUE=\"uploads/".$_REQUEST[videos]."\">
<PARAM NAME=\"animationatStart\" VALUE=\"true\">
<PARAM NAME=\"transparentatStart\" VALUE=\"true\">
<PARAM NAME=\"autoStart\" VALUE=\"$play_now\">
<PARAM NAME=\"showControls\" VALUE=\"true\">
</OBJECT></p>
</div>";
} else {
$content.="<div align=\"center\">
<p><object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" maxwidth=\"320\" standby=\"Data is loading...\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\">
<param name=\"src\" value=\"uploads/".$_REQUEST[videos]."\">
<param name=\"autoplay\" value=\"$play_now\">
<param name=\"controller\" value=\"true\">
<embed src=\"uploads/".$_REQUEST[videos]."\" maxwidth=\"320\" scale=\"1\" autoplay=\"$play_now\" controller=\"true\" type=\"video/quicktime\" pluginspage=\"http://www.apple.com/quicktime/download/\">
</embed>
</object><p>";
}
$content.="To upload your own videos click <a href=\"modules.php?name=Downloads&d_op=AddDownload\"><strong>here</strong></a>.<p>";
$content.="Your video or audio file must be less than 1MB in size and in one of the following formats: .wmv, .wma, .avi, .wav, .mp3, .midi, .aiff, .au., or QuickTime's .mov";
$content.="<center><a href=\"http://www.parentalskills.org\" target=\"_new\">&copy; www.ParentalSkills.org</a></center>";


Any help is much appreciated.
Find all posts by howarjView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.169 Seconds - 294 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::