Video Stream

Begonnen von goop78, 27 April 2008, 23:51:18

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

goop78

Hallo!

Habe folgendes Problem:

wie kann ich bei videostream es änder das es nicht mehr so gequetscht aussieht?
siehe:

http://www.freakclip.de/modules.php?name=Video_Stream

sieht etwas hässlich aus und man kann mansches nicht so gut lesen.

danke für eure hilfe....

greetz

m-t

hi,

zeig mal deine layout.php

goop78

öhm :red: wo finde ich die?bei themes isse nich drin!
sorry!
Hoffe du kannst mir da helfen....

m-t

modules\Video_Stream\layout.php

goop78

Danke schön!!! :smile:

Also hier die 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');
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=0;
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 ($a == 0) { echo "<tr>";}
echo "<td width=\"33%\" valign=\"top\">";

   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\" style=\"padding-top:3px\"><b>"._VIEWS.":</b> ".$row['views']." x</td></tr>\n";
   echo "</table>\n";
   echo "</td>\n";

   echo "<td class=\"vstream2\" width=\"100%\" valign=\"top\">&nbsp;<b><a href=\"modules.php?name=Video_Stream&amp;page=watch&amp;id=".$row['id']."&amp;d=".$d."\">".$row['vidname']."</a></b><br /><br /></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><br />".$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 "<br /><a href=\"modules.php?name=Video_Stream&amp;page=search&amp;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><tr><td colspan=\"2\" class=\"vstream2\" width=\"100%\" valign=\"top\">hinzugef&uuml;gt am: ".$row['date']."</td>\n";

$a++;
if ($a == 3) { echo "</tr>"; $a = 0; }

   echo "</table><br />\n";
   }
   echo "</tr></table>\n";

   $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&amp;d=".$p."\">"._PREVIOUS."</a></div>\n";
   } else {
      echo "&nbsp;\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&amp;d=".$d."\">"._NEXT."</a></div>\n";
   } else {
      echo "&nbsp;\n";
   }
   echo "</td>\n";
   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');
?>


hoffe es weiß jemand rat!

m-t

das ist der ausschnitt aus meiner layout.php änder mal den teil:

Zitat
// 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=\"box\" 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']."&nbsp;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&amp;page=watch&amp;id=".$row['id']."&amp;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><br />".$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&amp;page=search&amp;search=user:".$row['user']."\">&nbsp;["._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&amp;d=".$p."\">"._PREVIOUS."</a></div>\n";
        } else {
                echo "&nbsp;\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&amp;d=".$d."\">"._NEXT."</a></div>\n";
        } else {
                echo "&nbsp;\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();

goop78

sieht schonmal besser aus!
Danke m-t!