Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Closed Thread
  #11  
Old 7th September 2009, 06:15
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
nope code u give is even worse +62 line shoud be
Code:
print("<tr><td align=left><a href=".$link." rel=nofollow target=games>".$name."</td></tr>");
either u got only blank page with error
Attached Thumbnails
Ekranattels.png   Ekranattels-1.png  
  #12  
Old 7th September 2009, 06:55
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
I well look at code in the morning
see what I can do
can I see your OpenTable and CloseTable please?
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
  #13  
Old 7th September 2009, 07:01
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
PHP Code:
function OpenTable($title = "title", $tablewidth = "") { 
        global $tableopen, $siteurl; 
        if ($tableopen) return; 
        if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\""; 
        else $stylewidth = '';
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">"; 
       ?> 
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
  <tr>  
    <td height="37" colspan="2" valign="top"><img src="themes/theme/pics/ttl.jpg" width="22" height="37"></td> 
    <td width="100%" valign="top" background="themes/theme/pics/tt.jpg"><img name="tm" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="2" valign="top"><img src="themes/theme/pics/ttr.jpg" width="22" height="37"></td> 
  </tr> 
  <tr> 
    <td width="13" height="42" valign="top" background="themes/theme/pics/tl.jpg"><img name="left" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="3" valign="top" bgcolor="#2F2F2F"> 
      <? 
            
    $tableopen 
true

 
function 
CloseTable() { 
        global 
$tableopen$siteurl
        if (!
$tableopen) return; 
          
?> 
     </td> 
  <td width="13" valign="top" background="themes/theme/pics/tr.jpg"><img name="right" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td> 
  </tr> 
  <tr>  
    <td height="61" colspan="2" valign="top"><img src="themes/theme/pics/tbl.jpg" width="22" height="61"></td> 
    <td valign="top" background="themes/theme/pics/tb.jpg"><img name="btm" src="themes/theme/pics/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="2" valign="top"><img src="themes/theme/pics/tbr.jpg" width="22" height="61"></td> 
  </tr> 
  <tr>  
    <td height="0"></td> 
    <td width="9"></td> 
    <td></td> 
    <td width="9"></td> 
    <td></td> 
  </tr> 
  <tr>  
    <td height="1"><img src="spacer.gif" alt="" width="13" height="1"></td> 
    <td><img src="spacer.gif" alt="" width="9" height="1"></td> 
    <td></td> 
    <td><img src="spacer.gif" alt="" width="9" height="1"></td> 
    <td><img src="spacer.gif" alt="" width="13" height="1"></td> 
  </tr> 
</table> 
<?
echo "</div>"
        
$tableopen false
}
  #14  
Old 7th September 2009, 15:47
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
ok I see your error now that I had sleep
you missed eather adding
PHP Code:
        echo "<div class=\"mainbox\" ".$stylewidth."> "
before
PHP Code:
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">"
or failed to remove
PHP Code:
echo "</div>"
before
PHP Code:
        $tableopen false

eather add the line I posted or remove the line eather way should fix it!!
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
  #15  
Old 7th September 2009, 17:55
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
whell didn't work but any way this framing is too much makes page look like bloob and big mess
  #16  
Old 7th September 2009, 19:34
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
ok this is what I got and I used your table functions to test it
PHP Code:
<?php

include("header.php");
if (
$_GET["id"] != ""){
$id =$_GET["id"];
if (
checkaccess('can_add_uttube')){
mysql_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]."";
    
mysql_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=\"502\" valign=\"top\">\n");
print(
"<table width=\"502\"><tr><td align=\"center\">\n");
//echo"<tr><td align=\"center\">\n";
Opentable(_btvid_clip);
echo
"<div><center>\n";
echo
"<span class=\"style3\"><font color=\"blue\">"._btvid_choose."</font></span>\n";
echo
"</center></div>\n";
if(
$showvid !="")echo $showvid;
echo
"<span class=\"style3\"><iframe src=\"\" name=\"games\" width=\"570\" 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=blue>"._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"<br /><?=_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="<?=_btokay?>" 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 mysql_query($query);
    while (
$row2 mysql_fetch_array($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");
?>
I used this from you
PHP Code:
function OpenTable($title = "title", $tablewidth = "") {
        global $tableopen, $siteurl;
        if ($tableopen) return;
        if($tablewidth !="") $stylewidth = "style=\"width: ".$tablewidth."px;\"";
        else $stylewidth = '';
echo "<span class=\"mainbox-title\">".$title."</span><div style=\"margin: 0 auto;\">"; 
       ?> 
<table border="0" cellpadding="0" cellspacing="0" width="100%"> 
  <tr>  
    <td height="37" colspan="2" valign="top"><img src="http://pegasus.woano.lv/themes/theme/pics/ttl.jpg" width="22" height="37"></td> 
    <td width="100%" valign="top" background="http://pegasus.woano.lv/themes/theme/pics/tt.jpg"><img name="tm" src="http://pegasus.woano.lv/images/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="2" valign="top"><img src="http://pegasus.woano.lv/themes/theme/pics/ttr.jpg" width="22" height="37"></td> 
  </tr> 
  <tr> 
    <td width="13" height="42" valign="top" background="http://pegasus.woano.lv/themes/theme/pics/tl.jpg"><img name="left" src="http://pegasus.woano.lv/images/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="3" valign="top" bgcolor="#2F2F2F"> 
      <?            
    $tableopen 
true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        
?>
        </td> 
  <td width="13" valign="top" background="http://pegasus.woano.lv/themes/theme/pics/tr.jpg"><img name="right" src="http://pegasus.woano.lv/images/spacer.gif" width="1" height="1" border="0" alt=""></td> 
  </tr> 
  <tr>  
    <td height="61" colspan="2" valign="top"><img src="http://pegasus.woano.lv/themes/theme/pics/tbl.jpg" width="22" height="61"></td> 
    <td valign="top" background="http://pegasus.woano.lv/themes/theme/pics/tb.jpg"><img name="btm" src="http://pegasus.woano.lv/images/spacer.gif" width="1" height="1" border="0" alt=""></td> 
    <td colspan="2" valign="top"><img src="http://pegasus.woano.lv/themes/theme/pics/tbr.jpg" width="22" height="61"></td> 
  </tr> 
  <tr>  
    <td height="0"></td> 
    <td width="9"></td> 
    <td></td> 
    <td width="9"></td> 
    <td></td> 
  </tr> 
  <tr>  
    <td height="1"><img src="http://pegasus.woano.lv/images/spacer.gif" alt="" width="13" height="1"></td> 
    <td><img src="http://pegasus.woano.lv/images/spacer.gif" alt="" width="9" height="1"></td> 
    <td></td> 
    <td><img src="http://pegasus.woano.lv/images/spacer.gif" alt="" width="9" height="1"></td> 
    <td><img src="http://pegasus.woano.lv/images/spacer.gif" alt="" width="13" height="1"></td> 
  </tr> 
</table> 
<?
        
echo "</div>";

        
$tableopen false;
}
you can see it here
phpMyBitTorrent 2.0.4
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
  #17  
Old 7th September 2009, 19:39
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
this one kinda works for old function too but i still can open 2 videos at same
btw i fixed login window for torrento so u can actualy see problem

Last edited by wMan; 8th September 2009 at 02:00.
  #18  
Old 13th September 2009, 01:23
Viperia Viperia is offline
Senior Member
 
Join Date: Jul 2008
Sweden
Posts: 46
Default
How is 2.0.4 of PMBT going? Stable to use for a live site or is it still some bugs etc in it?

Regards,
  #19  
Old 13th September 2009, 01:25
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
as u see it's still beta "1"
  #20  
Old 13th September 2009, 01:33
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
I am going to be moving to RC1 in a few days seems the errors are less then expected
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Closed Thread

Tags
beta1 , phpmybittorrent

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is phpMyBitTorrent joeroberts BT.Manager (phpMyBitTorrent) 0 14th October 2009 15:43
phpMyBitTorrent 2.0.3 joeroberts BT.Manager (phpMyBitTorrent) 54 21st September 2009 13:10
phpMyBitTorrent v2.0 joeroberts Downloads 126 12th January 2009 20:53
What I Think Of phpMyBittorrent dark_dragon BT.Manager (phpMyBitTorrent) 1 10th November 2008 07:43
phpMyBitTorrent v1.0 zenja7777 BT.Manager (phpMyBitTorrent) 8 27th October 2008 17:58



All times are GMT +2. The time now is 10:04. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.