Hi,
ich habe aus dem video-stream modul für php-nuke die layout.php in pragmamx integriert, klappt sogar, das einzige was irgendwie nicht richtig funktioniert ist das preview image... obwohl ich ein bild hinzugefügt habe sagt der mir immer no image... vllt kann mir jem helfen und sagen wie ich die php datei ändern muss um die blder richtig anzeigen zu lassen. Das hab ich soweit geändert...
alte layout.php:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Video Stream Module for PHP-Nuke with many features */
/* */
/* Copyright (c) 2006 by Scott Cariss (Brady) */
/* http://www.steezmatic-designs.com */
/* */
/* 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. */
/************************************************************************/
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
include('header.php');
include('modules/Video_Stream/javascript.php');
echo "<link href=\"modules/Video_Stream/css.css\" rel=\"stylesheet\" type=\"text/css\">\n";
vsnavtop();
OpenTable();
sortandsearch();
echo "<br><hr><br>\n";
if (($d == "") || ($d == 0)) {
$d = 1;
}
$sqld = $d - 1;
$sqld *= $limit;
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1." LIMIT $sqld,$limit");
$rowvid = $db->sql_numrows($result);
$result2 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1."");
$rowvid2 = $db->sql_numrows($result2);
// If videos are in the DB then they are displayed.
$qn=4;
if ($rowvid != "0") {
echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
while($row = $db->sql_fetchrow($result)) {
$userav = $row['user'];
if ($row['rating'] == "") {$rating = "0";} else {$rating = $row['rating'];}
$id = $row['id'];
$image = $row['imgurl'];
$plugin = $row['flash'];
$vidname = $row['vidname'];
if ($qn == 1) {
echo "<td width=\"50%\" valign=\"top\">";
$qn=0;
} else {
echo "<tr><td width=\"50%\" valign=\"top\">";
$qn=1;
}
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n";
echo "<tr>\n";
echo "<td valign=\"top\">\n";
echo "<table class=\"vstream\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
videoimageplugin($id, $image, $plugin, $d, $vidname);
echo "</tr>\n";
echo "<tr><td width=\"100%\" align=\"center\"><b>"._VIEWS.":</b> ".$row['views']." mal</td></tr>\n";
echo "</table>\n";
echo "</td>\n";
echo "<td class=\"vstream2\" width=\"100%\" valign=\"top\"><b><a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\">".$row['vidname']."</a></b><br /><br />"._POSTEDON0.":<br />".$row['date']."</td>\n";
echo "</tr>\n";
echo "</table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\"><tr><td class=\"vstream2\"><b>Beschreibung: </b>".$row['description']."</td></tr></table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n";
echo "<tr>\n";
echo "<td class=\"vstream\" valign=\"top\">\n";
avatars($userav);
echo "<a href=\"modules.php?name=Video_Stream&page=search&search=user:".$row['user']."\"> ["._MOREFROMUSER."]</a>\n";
echo "</td>\n";
echo "<td class=\"vstream2\" align=\"center\" valign=\"top\">\n";
category($id);
echo "</td>\n";
echo "</tr>\n";
echo "</table><br />\n";
}
echo "</tr></table>";
$pages = ceil($rowvid2 / $limit);
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr>\n";
echo "<td width=\"30%\">\n";
if ($d > 1) {
$p = $d - 1;
echo "<div align=\"left\"><a href=\"modules.php?name=Video_Stream&d=".$p."\">"._PREVIOUS."</a></div>\n";
} else {
echo " \n";
}
echo "</td>\n";
echo "<td width=\"40%\"><div align=\"center\">\n";
pagesnav($d, $pages);
echo "<br>"._PAGE." ".$d."/".$pages."</div>\n";
echo "</td>\n";
echo "<td width=\"30%\">\n";
if ($d < $pages) {
$d += 1;
echo "<div align=\"right\"><a href=\"modules.php?name=Video_Stream&d=".$d."\">"._NEXT."</a></div>\n";
} else {
echo " \n";
}
echo "</td>\n";
if ($qn == 1) {echo "</td>"; }
echo "</tr></table>\n";
} else {
// If no videos have been added then user is told no videos
echo "<center>"._NOVIDSINDB."</center>\n";
}
CloseTable();
stats();
//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://www.steezmatic-designs.com/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT STEEZMATIC DESIGNS' AUTHOR WRITTEN AUTHORIZATION
// YOU'RE NOT AUTHORIZED TO CHANGE THE CODE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://www.steezmatic-designs.com/modules.php?name=Commercial_License)
//***************************************************************
echo "<br>\n";
OpenTable();
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<tr><td align=\"right\">\n";
echo "HTTP Video Stream Module<br>By <a href=\"http://www.steezmatic-designs.com\" target=\"_blank\">Steezmatic Designs</a>\n";
echo "</td></tr></table>\n";
CloseTable();
// END OF COPYRIGHT
include('footer.php');
?>
und hier die neue layout.php von mir:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Video Stream Module for PHP-Nuke with many features */
/* */
/* Copyright (c) 2006 by Scott Cariss (Brady) */
/* http://www.steezmatic-designs.com */
/* */
/* 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. */
/************************************************************************/
///////////////////////////////////////////
/////Layout by Q @ www.3c0x1.net///////////
///////////////////////////////////////////
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
global $dbi, $user;
include('header.php');
include('modules/Video_Stream/javascript.php');
echo "<link href=\"modules/Video_Stream/css.css\" rel=\"stylesheet\" type=\"text/css\">\n";
vsnavtop();
OpenTable();
sortandsearch();
echo "<hr><br>\n";
if (($d == "") || ($d == 0)) {
$d = 1;
}
$sqld = $d - 1;
$sqld *= $limit;
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1." LIMIT $sqld,$limit");
$rowvid = $db->sql_numrows($result);
$result2 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1."");
$rowvid2 = $db->sql_numrows($result2);
//////////////////////////////////////////////
// If videos are in the DB then they are displayed.
$qn=0;
if ($rowvid != "0") {
echo "<table width=\"100%\" border=\"0\">";
while($row = $db->sql_fetchrow( $result )) {
$userav = $row['user'];
if ($row['rating'] == "") {$rating = "0";} else {$rating = $row['rating'];}
$id = $row['id'];
$image = $row['imgurl'];
$plugin = $row['flash'];
$vidname = $row['vidname'];
/////////////////////
if ($qn == 1) {
echo "<td width=\"50%\">";
$qn=0;
} else {
echo "<tr><td width=\"50%\">";
$qn=1;
}
/////////////////////
$userav = $row['user'];
if ($row['rating'] == "") {$rating = "0";} else {$rating = $row['rating'];}
$id = $row['id'];
echo "<table width=\"100%\" border=\"1\"><td width=\"175\">";
$image = $row['imgurl'];
if(getimagesize($image) == false) {
/////////
// echo "<table width=\"100%\" border=\"1\"><td>";
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\"><img src=\"modules/Video_Stream/images/noimage.gif\" border=\"0\" width=\"175\" height=\"150\" alt=\"".$row['vidname']."\"></a>\n";
} else{
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\"><img src=\"".$image."\" border=\"0\" width=\"175\" height=\"150\" alt=\"".$row['vidname']."\"></a>\n";
}
echo "</td><td>";
//category($id);
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\">".$row['vidname']."</a>";
echo "<br> Posted by ".$row['user']." <a href=\"modules.php?name=Video_Stream&page=search&search=user:".$row['user']."\">["._MOREFROMUSER."]</a>\n";
echo "<br><strong>".$row['date']."</strong>";
echo "<br><b>"._VIEWS.":</b> ".$row['views']." \n";
// $image = $row['imgurl'];
echo "<td width=\"100\">";
category($id);
echo "</td></td></tr></table>";
///////
if ($qn == 1) { echo "</td>"; }
}
echo "</tr></table>";
////////////////////////////////////////////////////
//ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
$pages = ceil($rowvid2 / $limit);
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td width=\"30%\">\n";
if ($d > 1) {
$p = $d - 1;
echo " <div align=\"left\"><a href=\"modules.php?name=Video_Stream&d=".$p."\">"._PREVIOUS."</a></div>\n";
} else {
echo " \n";
}
echo " </td>\n";
echo " <td width=\"40%\"><div align=\"center\">\n";
pagesnav($d, $pages);
echo " <br>"._PAGE." ".$d."/".$pages."</div>\n";
echo " </td>\n";
echo " <td width=\"30%\">\n";
if ($d < $pages) {
$d += 1;
echo " <div align=\"right\"><a href=\"modules.php?name=Video_Stream&d=".$d."\">"._NEXT."</a></div>\n";
} else {
echo " \n";
}
echo " </td></tr></table>\n";
} else {
// If no videos have been added then user is told no videos
echo "<center>"._NOVIDSINDB."</center>\n";
}
CloseTable();
echo "<br>\n";
stats();
//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://www.steezmatic-designs.com/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT STEEZMATIC DESIGNS' AUTHOR WRITTEN AUTHORIZATION
// YOU'RE NOT AUTHORIZED TO CHANGE THE CODE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://www.steezmatic-designs.com/modules.php?name=Commercial_License)
//***************************************************************
echo "<br>\n";
OpenTable();
echo "HTTP Video Stream Module<br>By <a href=\"http://www.steezmatic-designs.com\">Steezmatic Designs</a>\n";
CloseTable();
// END OF COPYRIGHT
include('footer.php');
?>
es geht um die richtige darstellung der bilder... hat irgendjem ein vorschlag?
JUHU habs gerade selber rausgefunden.. die neue layout.php muss wie folgt aussehen:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Video Stream Module for PHP-Nuke with many features */
/* */
/* Copyright (c) 2006 by Scott Cariss (Brady) */
/* http://www.steezmatic-designs.com */
/* */
/* 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. */
/************************************************************************/
///////////////////////////////////////////
/////Layout by Q @ www.3c0x1.net///////////
///////////////////////////////////////////
if (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) {
die ("You can't access this file directly...");
}
global $dbi, $user;
include('header.php');
include('modules/Video_Stream/javascript.php');
echo "<link href=\"modules/Video_Stream/css.css\" rel=\"stylesheet\" type=\"text/css\">\n";
vsnavtop();
OpenTable();
sortandsearch();
echo "<hr><br>\n";
if (($d == "") || ($d == 0)) {
$d = 1;
}
$sqld = $d - 1;
$sqld *= $limit;
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1." LIMIT $sqld,$limit");
$rowvid = $db->sql_numrows($result);
$result2 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1."");
$rowvid2 = $db->sql_numrows($result2);
//////////////////////////////////////////////
// If videos are in the DB then they are displayed.
$qn=0;
if ($rowvid != "0") {
echo "<table width=\"100%\" border=\"0\">";
while($row = $db->sql_fetchrow( $result )) {
$userav = $row['user'];
if ($row['rating'] == "") {$rating = "0";} else {$rating = $row['rating'];}
$id = $row['id'];
$image = $row['imgurl'];
$plugin = $row['flash'];
$vidname = $row['vidname'];
/////////////////////
if ($qn == 1) {
echo "<td width=\"50%\">";
$qn=0;
} else {
echo "<tr><td width=\"50%\">";
$qn=1;
}
/////////////////////
$userav = $row['user'];
if ($row['rating'] == "") {$rating = "0";} else {$rating = $row['rating'];}
$id = $row['id'];
echo "<table width=\"100%\" border=\"1\"><td width=\"175\">";
$image = $row['imgurl'];
if(getimagesize($image) == false) {
/////////
// echo "<table width=\"100%\" border=\"1\"><td>";
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\"><img src=".$row['imgurl']." border=\"0\" width=\"175\" height=\"150\" alt=\"".$row['vidname']."\"></a>\n";
} else{
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\"><img src=\"".$image."\" border=\"0\" width=\"175\" height=\"150\" alt=\"".$row['vidname']."\"></a>\n";
}
echo "</td><td>";
//category($id);
echo "<a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."&d=".$d."\">".$row['vidname']."</a>";
echo "<br> Posted by ".$row['user']." <a href=\"modules.php?name=Video_Stream&page=search&search=user:".$row['user']."\">["._MOREFROMUSER."]</a>\n";
echo "<br><strong>".$row['date']."</strong>";
echo "<br><b>"._VIEWS.":</b> ".$row['views']." \n";
// $image = $row['imgurl'];
echo "<td width=\"100\">";
category($id);
echo "</td></td></tr></table>";
///////
if ($qn == 1) { echo "</td>"; }
}
echo "</tr></table>";
////////////////////////////////////////////////////
//ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
$pages = ceil($rowvid2 / $limit);
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo " <tr>\n";
echo " <td width=\"30%\">\n";
if ($d > 1) {
$p = $d - 1;
echo " <div align=\"left\"><a href=\"modules.php?name=Video_Stream&d=".$p."\">"._PREVIOUS."</a></div>\n";
} else {
echo " \n";
}
echo " </td>\n";
echo " <td width=\"40%\"><div align=\"center\">\n";
pagesnav($d, $pages);
echo " <br>"._PAGE." ".$d."/".$pages."</div>\n";
echo " </td>\n";
echo " <td width=\"30%\">\n";
if ($d < $pages) {
$d += 1;
echo " <div align=\"right\"><a href=\"modules.php?name=Video_Stream&d=".$d."\">"._NEXT."</a></div>\n";
} else {
echo " \n";
}
echo " </td></tr></table>\n";
} else {
// If no videos have been added then user is told no videos
echo "<center>"._NOVIDSINDB."</center>\n";
}
CloseTable();
echo "<br>\n";
stats();
//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://www.steezmatic-designs.com/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT STEEZMATIC DESIGNS' AUTHOR WRITTEN AUTHORIZATION
// YOU'RE NOT AUTHORIZED TO CHANGE THE CODE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://www.steezmatic-designs.com/modules.php?name=Commercial_License)
//***************************************************************
echo "<br>\n";
OpenTable();
echo "HTTP Video Stream Module<br>By <a href=\"http://www.steezmatic-designs.com\">Steezmatic Designs</a>\n";
CloseTable();
// END OF COPYRIGHT
include('footer.php');
?>
Hallo,
Freut mich, daß du deinen Fehler gefunden, aber es reicht, wenn du nur die
betreffende Stelle im Code postest. Und bitte, versuche, Doppelposts zu vermeiden, danke.
Ein Blick in die Forenregeln (http://www.pragmamx.org/Content-pa-showpage-pid-48.html) kann auch nicht schaden. :)
Zitat· Das Posten von Quellcode:
Tut uns den Gefallen und postet nicht ungefragt endlos lange Codezeilen oder sogar ganz Scripte, es sei denn, man hat Euch dazu aufgefordert. Online kommt sowieso kaum einer damit zurecht, und es ist schwierig da Fehler zu finden. Es ist besser, das betroffene Script auf Eure Webseite zu stellen und hier den Downloadlink dazu zu posten. Damit tragt Ihr auch dazu bei unseren Traffic und die Datenbank zu entlasten.
Zitat von: ketza am 11 Oktober 2007, 13:05:18
ich habe aus dem video-stream modul für php-nuke die layout.php in pragmamx integriert, klappt sogar ...
Haste mal in unsere Downloads geschaut?
Dort gibt es genau dieses Modul, welches bereits komplett an pragmaMx angepasst (http://www.pragmamx.org/Downloads-op-view-lid-615.html) wurde. ;)
Der Quellcode ist geilo, schön was zu lesen... :cry
Wenn meine Maus das Jahr net überlebt, kriegst Du ne Rechnung wegen Abnutzung. :blaa:
Wo kann man sich das neue Template denn ma in Action anschauen ?
Magst mal nen Link zu Deinem Internet-Angebot texten ?
Neugierige Grüßé
Markus