Clan Adverts

Sponsors

CT on Facebook

Latest Product

User Box

Anonymous
38.107.179.216
Nickname:

Password:

Security Code
Security Code
Type Security Code


PND Downloads Feed

Phpnuke Downloads
How to Delete or Reset yo...
How to Delete or Reset your PHPNuke Admin Account
Lost your admin password ?  Cant login to your admin account ? This s...
Back Online & Stuff
Back Online & Stuff
Look at us with our nifty website back up and running… Seriously...
How to edit the admins in...
How to edit the admins in the forums
Here is a way to make someone admin in your forums on your Evo site. I...
Demo Splash Screen
Demo Splash Screen
Ped @ Clan Themes has released a simple splash screen entrance hack. ...
Free Phpnuke Business The...
Free Phpnuke Business Theme 6
This is the 6th Business theme for Phpnuke that Clan Themes has releas...
Tricked Out Slider
Tricked Out Slider
We have seen some great new things come out of Tricked Out News and th...

Custom Work

PHP Nuke Custom Work

www.clanthemes.com :: View topic - Video_stream module layout.php
Video_stream module layout.php

5 Replies / 1298 Views


Post new topic   Reply to topic  

   www.clanthemes.com Forum Index » Modules

View previous topic :: View next topic


areamike
Reputation: 4.5 Add RepSubtract Rep
Local time: 1:19 AM
Location: Cornfields of Indiana
usa.gif

Noob
Noob

0.02 posts per day
Medals: 0

Joined: Dec 27, 2010
Last Visit: 09 Apr 2011
Posts: 8
Points: 244 

Post Video_stream module layout.php Posted: Wed Apr 06, 2011 10:16 pm

Hello,

I'm using the modified layout.php that came with my Video_Stream module.

The new layout looks better than the original and I have even tweaked it more to my liking. However, there is one small thing I'd like to figure out how to change.

The current layout shows two columns of videos and 5 rows. I'd like to change that to 3 columns and 5 rows.

Here's my layout.php:

Code:
<?php
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Video Stream Module for PHP-Nuke with many features                  */
/*                                                                      */
/* Copyright (c) 2006 by Scott Cariss (Brady)                           */
/* http://PHPNuke-Downloads.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";
echo "<link href=\"http://www.barefootski.com/themes/iCGstation/style/style.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);
$result3 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream ".$sortby2." ".$sortby1."");
$rowvid3 = $db->sql_numrows($result3);


//////////////////////////////////////////////
// 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 )) {
   
   $qvidid = $row['vidid'];
   $qcomments = $db->sql_query("SELECT * FROM ".$prefix."_comments where vidid = ".qvidid." LIMIT $sqld,$limit");
   $rowvid = $db->sql_numrows($qcoments);


   /////////////////////
   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=\"0\" class=\"bodyline\"><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&amp;page=watch&amp;id=".$row['id']."&amp;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&amp;page=watch&amp;id=".$row['id']."&amp;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&amp;page=watch&amp;id=".$row['id']."&amp;d=".$d."\"><span class=\"storytitle\">".$row['vidname']."</span></a>";
//      echo "<br><span class=\"small_text\">Posted by ".$row['user']." [<a href=\"modules.php?name=Video_Stream&amp;page=search&amp;search=user:".$row['user']."\">"._MOREFROMUSER."</a>]\n";
//      echo "<br><strong>".$row['date']."</strong></span>";

      echo "<br><b>" .$row['description']. "</b>" ;
      echo "<br><br>"._VIEWS.": ".$row['views']." \n";
      echo "<br><br><span class=\"small_text\">";
      category($id);
      echo "</span>";
   //   $image = $row['imgurl'];
   //  echo "<td width=\"100\"><span class=\"small_text\">";
   //   category($id);
   //   echo "</span></td></td></tr></table>";
      echo "</td></tr></table>";
      ///////
      if ($qn == 1) {   echo "</td>"; }
   }

   echo "</tr></table>";
////////////////////////////////////////////////////
//ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ

   $pages   = ceil($rowvid3 / $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 "       \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 " \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";
echo "<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
echo "<div align=\"center\">";
echo "<img src=\"modules/Video_Stream/images/custom.png\" alt=\"Custom Video Link\"> ";
echo "<img src=\"modules/Video_Stream/images/flash.png\" alt=\"Flash video\"> ";
echo "<img src=\"modules/Video_Stream/images/gvideo.png\" alt=\"Google Video\"> ";
echo "<img src=\"modules/Video_Stream/images/quicktime.png\" alt=\"Quicktime Video\"> ";
echo "<img src=\"modules/Video_Stream/images/real.png\" alt=\"RealPlayer Video\"> ";
echo "<img src=\"modules/Video_Stream/images/winamp.png\" alt=\"Winamp Video\"> ";
echo "<img src=\"modules/Video_Stream/images/wmplayer.png\" alt=\"Windows Media Video\"> ";
echo "<img src=\"modules/Video_Stream/images/youtube.png\" alt=\"Youtube Video\">";
echo "</div></table>";
echo "<br>\n";
stats();

//***************************************************************
// IF YOU WANT TO LEGALY REMOVE ANY COPYRIGHT NOTICES PLAY FAIR AND CHECK: http://PHPNuke-Downloads.com/modules.php?name=Commercial_License
// COPYRIGHT NOTICES ARE GPL SECTION 2(c) COMPLIANT AND CAN'T BE REMOVED WITHOUT PHPNuke-Downloads' AUTHOR WRITTEN AUTHORIZATION
// YOU'RE NOT AUTHORIZED TO CHANGE THE CODE UNTIL YOU ACQUIRE A COMMERCIAL LICENSE
// (http://PHPNuke-Downloads.com/modules.php?name=Commercial_License)
//***************************************************************
echo "<br>\n";
//OpenTable();
echo "HTTP Video Stream Module<br>By <a href=\"http://PHPNuke-Downloads.com\">PHPNuke-Downloads</a>\n";
CloseTable();
// END OF COPYRIGHT

include('footer.php');
?>


I cannot figure out where to make the change so that i have 3 columns of videos.
 

 
View user's profileSend private message Reply with quote

Ped
Reputation: 94 Add RepSubtract Rep
votes: 37
Local time: 7:19 AM
Location: Great British Empire
uk.gif

Site Founder
Site Founder

1.82 posts per day
Medals: 2 (View more...)
Super Dedicated User (Amount: 1)
Theme Guru
Theme Guru
Joined: Nov 13, 2006
Last Visit: 25 May 2012
Posts: 3675
Points: 191987 

Post Re: Video_stream module layout.php Posted: Thu Apr 07, 2011 6:53 am

Shop Purchases:
Clan Roster 2.0 · Bad Company 2 Vietnam Xtreme Theme

Is it not defined in the admin preferences or a config file ?

Dont you just HATE thief's !!

HTTP Video Stream Module<br>By <a href=\"http://PHPNuke-Downloads.com\">PHPNuke-Downloads</a>

What a dirty rotten scum of the earth thief, please can you remove that link back because he certainly did NOT make this module.

Id http://www.barefootski.com/ your site ? I tried to visit it to see the layout and it banned me from trying to access the admin area ! lmao

Ped
 

 
View user's profileSend private messageSend e-mail Reply with quote

5STAR
Reputation: 1213 Add RepSubtract Rep
votes: 3
Local time: 12:19 AM
Location: Missouri
usa.gif



0.19 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Respected Member
Respected Member
Joined: Nov 06, 2007
Last Visit: 26 May 2012
Posts: 322
Points: 38619 

Post Video_stream module layout.php Posted: Fri Apr 08, 2011 12:23 am

Shop Purchases:
Multi-T3 Multi Gaming Theme · Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0 · Call of Duty 5 World at War Splash · Topsites Manager V1 PhpNuke Module

YES, I hate a thief too. That scumbag has been doing this forever it seams like. Here is the original copyrights

Code:
//***************************************************************
// 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";


For future references STAY AWAY FROM THAT PUNKS SITE.
 

 
View user's profileSend private message Reply with quote


areamike
Reputation: 4.5 Add RepSubtract Rep
Local time: 1:19 AM
Location: Cornfields of Indiana
usa.gif

Noob
Noob

0.02 posts per day
Medals: 0

Joined: Dec 27, 2010
Last Visit: 09 Apr 2011
Posts: 8
Points: 244 

Post Re: Video_stream module layout.php Posted: Fri Apr 08, 2011 1:34 am

Ped wrote:
Is it not defined in the admin preferences or a config file ?

Dont you just HATE thief's !!

HTTP Video Stream Module<br>By <a href=\"http://PHPNuke-Downloads.com\">PHPNuke-Downloads</a>

What a dirty rotten scum of the earth thief, please can you remove that link back because he certainly did NOT make this module.

Id http://www.barefootski.com/ your site ? I tried to visit it to see the layout and it banned me from trying to access the admin area ! lmao

Ped


Crap Sorry! I was doing some stuff probably when you got banned.

Can you give me your IP so I can UNBAN you? Or try it again.

As for the Copyright, I've removed that reference from every single file in that module package. I have the correct info in the copyright.php pop-up which he changed as well. I wish I had noticed that sooner. I too hate thieves.
I used to port phpBB templates over to PHP-Nuke for nukemods.com back in the day and I hated it when someone would remove our copyright...nothing worse than a lazy thief.

EDIT: Nope, no setting in config or admin to change the table structure. That is controlled by layout.php.
 

 
View user's profileSend private message Reply with quote

areamike
Reputation: 4.5 Add RepSubtract Rep
Local time: 1:19 AM
Location: Cornfields of Indiana
usa.gif

Noob
Noob

0.02 posts per day
Medals: 0

Joined: Dec 27, 2010
Last Visit: 09 Apr 2011
Posts: 8
Points: 244 

Post Video_stream module layout.php Posted: Fri Apr 08, 2011 4:26 pm

You know what';s worse. The jerkoff over at phpnuke downloads makes you PAY to download that Video module that isn't even his. What an ass-bag
 

 
View user's profileSend private message Reply with quote

areamike
Reputation: 4.5 Add RepSubtract Rep
Local time: 1:19 AM
Location: Cornfields of Indiana
usa.gif

Noob
Noob

0.02 posts per day
Medals: 0

Joined: Dec 27, 2010
Last Visit: 09 Apr 2011
Posts: 8
Points: 244 

Post Video_stream module layout.php Posted: Fri Apr 08, 2011 5:00 pm

FYI guys:

Your Video Module download has that guy's copyright info littered in it as well...

And actually, I downloaded the module from here. Retard
 

 
View user's profileSend private message Reply with quote

Post new topic   Reply to topic  
   www.clanthemes.com Forum Index » Modules


 
5 Replies / 1298 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum