Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   youtube.php edit... (http://www.bvlist.com/showthread.php?t=9386)

Giorgatzelos 6th August 2013 14:59

youtube.php edit...
 
1 Attachment(s)
Hi i edited a bit my youtube.php so it shows everything table under table...as you can see in the picture but i have a small problem, it needs to auto set width to auto so it shows as in the picture, if a computer has a screen with higher resolution it does not stretch to the right so it reaches the right column blocks...i tried width=auto than numbers but failed, i believe it misses somewhere a


PHP Code:

<?php
/*
*----------------------------phpMyBitTorrent V 2.0.4---------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.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, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/
if (defined('IN_PMBT'))die ("You can't include this file");
define("IN_PMBT",true);
include(
"header.php");
if (
$_GET["id"] != ""){
$id =$_GET["id"];
if (
checkaccess('can_add_uttube')){
$db->sql_query("DELETE FROM ".$db_prefix."_youtubevideo WHERE id= $id") or sqlerr(__FILE____LINE__);
}
else{
bterror(_btauthorized,_btsorry);
}

if (
$_SERVER["REQUEST_METHOD"] == "POST")
{
if (
$link == "" || $name == "")bterror(_btmissing,_btsorry);
if(!
checkaccess('can_add_uttube')){
        
bterror(_btprivelages,_btsorry);
}
    
$name $_POST["name"];
    
$user $user->name;
    
$link "http://youtube.com/v/".$_POST[link]."";
    
$db->sql_query("INSERT INTO ".$db_prefix."_youtubevideo (link, name, addedby, addtime) VALUES('$link', '$name', '$user',NOW())") or sqlerr(__FILE____LINE__);
                        echo 
"<meta http-equiv=\"refresh\" content=\"0;url=youtube.php\">";
  }
if (!
checkaccess('can_view_utube')){
OpenErrTable(_btaccdenied);
echo 
"<p>You do not have Permissions to Access Utube Videos at this time</p>";
CloseErrTable();
die();
}else{
$showvid "";
if (
$op == "show"){
//$showvid = $video;
$showvid "<object width=\"480\" height=\"295\"><param name=\"movie\" value=\"".$video."&hl=en&fs=1&rel=0\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"".$video."&hl=en&fs=1&rel=0\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"480\" height=\"295\"></embed></object>";
}else{
$showvid "";
}
print(
"\n\n\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr>\n");
print(
"<td width=\"auto\" valign=\"top\">\n");
print(
"<table width=\"auto\"><tr><td align=\"center\">\n");
echo
"<tr><td align=\"center\">\n";
Opentable(_btvid_clip);
echo
"<div><center>\n";
echo
"<span class=\"style3\"><font color=\"#4c88cc\">"._btvid_choose."</font></span>\n";
echo
"</center></div>\n";
if(
$showvid !="")echo $showvid;
echo
"<span class=\"style3\"><iframe src=\"\" name=\"games\" width=\"905\" height=\"570\" scrolling=\"no\"></iframe></span>\n";
CloseTable();




//print("</td></tr></table>\n\n\n\n");
//print("<td width=\"300\" valign=\"top\">\n\n\n");
//print("<table border=\"1\"><tr><td align=\"center\">\n");




OpenTable(_btvid_list);
echo
"<div><center>\n";
//echo "<span class=\"style3\"><font color=white>"._btvid_fun."</font></span>\n";
echo"</center></div>\n";
$query "SELECT * FROM ".$db_prefix."_youtubevideo ORDER BY name";
$sql $db->sql_query($query);
while (
$row $db->sql_fetchrow($sql)) {
$link $row['link'];
$name $row['name'];
print(
"<div><a href=".$link." target=games>".$name."</div>\n");
}
CloseTable();



print(
"\n\n\n</td></tr></table></td></tr><tr><td>\n");




if (
checkaccess('can_add_uttube')){
OpenTable(_btvid_add);
echo 
"<table align=center cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#D6D9DB\" width=\"100%\" border=\"1\">";
?>
<form method="post" action="youtube.php">
<div align=center><p>
<?=_btvid_url?>"http://youtube.com/watch?v=qppuuQrklHg"<?=_btvid_link?>

</p></div>
<tr><td class="tableb"><?=_btvid_link1?></td><td class="tablea"><input type="text" name="link" size="60"></td></tr>
<tr><td class="tableb"><?=_btvid_name?></td><td class="tablea"><input type="text" name="name" size="60"></td></tr>
<tr><td class="tablea" colspan="2" style="text-align:center"><input type="submit" value="<?=_btsubmitok1?>" class="btn"></td></tr>
</form>
<?php
echo "</table>";
CloseTable();



OpenTable(_btvid_info);
echo 
"<table align=center cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#D6D9DB\" width=\"100%\" border=\"1\">";
?>
<tr>
 <td width="5%" class="tablecat"><div align="center"><?=_btvid_id?></div></td>
 <td width="45%"class="tablecat"><div align="center"><?=_btvid_name?></div></td>
 <td width="15%"class="tablecat"><div align="center"><?=_btvid_link1?></div></td>
 <td width="20%"class="tablecat"><div align="center"><?=_btvid_addedby?></div></td>
 <td width="10%"class="tablecat"><div align="center"><?=_btvid_added?></div></td>
 <td width="5%"class="tablecat"><div align="center"><?=_btvid_delete?></div></td>
</tr>
<?php
$query 
"SELECT * FROM ".$db_prefix."_youtubevideo ORDER BY id";
$sql $db->sql_query($query);
    while (
$row2 $db->sql_fetchrow($sql)){
     
$link str_replace("http://youtube.com/v/","",$row2["link"]);
     
$name $row2["name"];
     
$id $row2["id"];
     
$addedby $row2["addedby"];
     
$addtime $row2["addtime"];
?>
<tr>
 <td width="5%" class="tablea"><div align="center"> <?=$id?></div></td>
 <td width="45%" class="tablea"><div align="left"> <?=$name?></div></td>
 <td width="15%" class="tablea"><div align="center"> <?=$link?></div></td>
 <td class="tablea"><div align="center"> <?=$addedby?></div></td>
 <td class="tablea"><div align="center"> <?=$addtime?></div></td>
 <td class="tablea"><div align="center"><?=pic("drop.gif","youtube.php?id=".$id,_btvid_remove);?></div></td>
</tr>
<?php
$nr 
$nr+1;
}
echo 
"</table>\n\n\n\n";
CloseTable();
}
}
echo 
"</td></tr></table>";
include (
"footer.php");
?>


joeroberts 6th August 2013 15:53

I need to see the generated source code from your browser


               
               
       
       
Giorgatzelos 6th August 2013 16:29

Code:



       


Archectypo Anime Fansub Tracker























hold this











               
               
       
       


                               
                       

Θέμα


Γλώσσα



               
               
       
       
 Αλλαγή Θέματος 



                               
                       

2.35 GB953.67 MB 2.52
Torrents που διαμοιράζετε0
Torrents που λαμβάνετε0



Καλωσορίσατε


Mavros Xaros



Δείκτης Διαμοιρασμού: 0.0


               
               
       
       
 Στατιστικά 





                               
                       









 Δημοσκοπήσεις 

Τί γνώμη έχετε για τον ιχνηλάτη μας;



Υπέροχος   29%
Πάρα Πολύ Καλός   29%
Πολύ Καλός   14%
Καλός   29%
Μέτριος   0%
Όχι Καλός   0%
Κακός   0%
Πολύ Κακός   0%
Χείριστος   0%

Ψήφοι:  7
[Δείτε τα αποτελέσματα]














                               
                       

Παρακαλώ επιλέξτε ένα βίντεο απο τη λίστα.



               
               
       
       
 Βίντεο 



                               
                       










               

               

       

       
 Λίστα 







                               
                       
 Κατηγορίες 





ΟλοκληρωμέναΜεταγλωττισμέναΑγγλικά/ΕλληνικάΆλλη Γλώσσα/Ελληνικά Σε ΕξέλιξηΑρχείο Υποτίτλων .ass



               
               
       
       


                               
                       

               
               
       
       
 RSS 



                               
                       











               
               
       
       
 Ώρα 



                               
                       











               
               
       
       
 Διαφημίσεις 





Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.
Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.
Ιχνηλάτης phpMyBitTorrent (c) 2005-2013. phpMyBitTorrent Team.
Με επιφύλαξη παντός δικαιώματος. (c) 2009-2013. http://giorgatzelos.cwahi.net
Δημιουργήθηκε σε 0.23 δευτερόλεπτα.





























joeroberts 6th August 2013 17:17

You problem lies here where you have 2 tables
PHP Code:

print("\n\n\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\"><tr>\n");
print(
"<td width=\"auto\" valign=\"top\">\n");
print(
"<table width=\"auto\"><tr><td align=\"center\">\n");
echo
"<tr><td align=\"center\">\n"

You well need to make sure you set your table size in all tables

Giorgatzelos 6th August 2013 18:26

Thanks Joe, after a bit editing i managed to make it show the way i want...can you also provide the divx mod of btmanager for pmbt?

joeroberts 6th August 2013 18:33

no
BT.Manager and phpmybitotrrent work completely defrent

Giorgatzelos 6th August 2013 18:56

Any idea how i could succeed it Streamcloud maybe?

daffy 30th April 2016 23:24

looking for this mod is it around anywhere? also the divx if its around cheers :ok:

joeroberts 1st May 2016 14:38

I do have both but they have not been converted to BT.Manager

daffy 2nd May 2016 19:08

iv got the youtube one now im working with, cant find the divx one tho if you fancy sharing it bud?


All times are GMT +2. The time now is 12:30.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.