Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 4th June 2013, 22:55
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default add right collumn to theme...
In this theme, what do i have to add so it shows a right collumn with blocks/usercp2.php?

This is my main.php
PHP Code:
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-----------------------------*
*--- 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 27, 2008 8:37 PM   ---------------------*
*/

if (eregi("main.php",$_SERVER["PHP_SELF"])) die ("You can't access this file directly");

$tableopen false;
$errtableopen false;
$table2open false;
$btback1 "2C2C2C";
$btback2 "2C2C2C";
$btback3 "2C2C2C";
                   

function 
OpenTable($title "title"$tablewidth "") {
        global 
$tableopen$siteurl;
        if (
$tableopen) return;
        if(
$tablewidth !=""$stylewidth "style=\"width: ".$tablewidth."px;\"";
        else 
$stylewidth '';
        echo 
"<table class=\"tablebg\" width=\"100%\" cellspacing=\"0\">
    <caption><div class=\"cap-left\"><div class=\"cap-right\">&nbsp;"
.$title."&nbsp;</div></div></caption>";
        echo
"            <tr valign=\"middle\">
            <td  class=\"row3\" >"
;   
    
$tableopen true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        echo 
"</td></tr>
        <tr>
        <td class=\"cat\" colspan=\"7\" valign=\"middle\" align=\"center\"></td>
    </tr>
    </table>\n<br clear=\"all\" />"
;

        
$tableopen false;
}

function 
OpenTable2($title "") {
      global 
$tableopen2$siteurl;
        if (
$tableopen2) return;
        echo 
"<div id=\"messagebox\" > ";
    echo 
"<span class=\"messagebox-title\">".$title."</span><div style=\"margin: 0 auto;\">";
           
    
$tableopen2 true;
 }

function 
CloseTable2() {
          global 
$tableopen2$siteurl;
        if (!
$tableopen2) return;
        echo 
"</div></div>";

        
$tableopen2 false;
}

function 
OpenNewsTable($title "") {
      global 
$OpenNewsTable$siteurl;
        if (
$OpenNewsTable) return;
        echo 
"<div id=\"newsbox\" > ";
           
    
$OpenNewsTable true;
 }

function 
CloseNewsTable() {
          global 
$OpenNewsTable$siteurl;
        if (!
OpenNewsTable) return;
        echo 
"</div>";

        
$OpenNewsTable false;
}

function 
OpenMessTable($title "") {
      global 
$OpenMessTable$siteurl;
        if (
$OpenMessTable) return;
        echo 
"<div id=\"messagebox\"> ";
    echo 
"<span class=\"messagebox-title\">".$title."</span>";
           
    
$OpenMessTable true;
 }

function 
CloseMessTable() {
          global 
$OpenMessTable$siteurl;
        if (!
$OpenMessTable) return;
        echo 
"</div>";

        
$OpenMessTable false;
}

function 
OpenSuccTable($title "") {
      global 
$OpenSuccTable$siteurl;
        if (
$OpenSuccTable) return;
        echo 
"<div id=\"successbox\" > ";
    echo 
"<span class=\"successbox-title\">".$title."</span>";
           
    
$OpenSuccTable true;
 }

function 
CloseSuccTable() {
          global 
$OpenSuccTable$siteurl;
        if (!
$OpenSuccTable) return;
        echo 
"</div>";

        
$OpenSuccTable false;
}
function 
OpenErrTable($title) {
      global 
$OpenErrTable$siteurl;
        if (
$OpenErrTable) return;
        echo 
"<div id=\"errorbox\" > ";
    echo 
"<span class=\"errorbox-title\">".$title."</span>";
           
    
$OpenErrTable true;
 }

function 
CloseErrTable() {
          global 
$OpenErrTable$siteurl;
        if (!
$OpenErrTable) return;
        echo 
"</div>";

        
$OpenErrTable false;
}

function 
themechange(){
{
global 
$bttheme;
        
$themes = Array();
        
$thememaindir "themes";
        
$themehandle opendir($thememaindir);
        while (
$themedir readdir($themehandle)) {
                if (
is_dir($thememaindir."/".$themedir) AND $themedir != "." AND $themedir != ".." AND $themedir != "CVS")
                        
$themes[$themedir] = $themedir;
        }
        
closedir($themehandle);
        unset(
$thememaindir,$themedir);
}
        
$change '';
foreach (
$themes as $key=>$val) {
        
$change .= "<option ";
        if (
$bttheme == $key$change .="selected ";
        
$change .= "value=\"".$key."\">".$val."</option>\n";
}
unset(
$themes);
return 
$change;
}
function 
languagechange(){
{
global 
$language;
        
$languages = Array();
        
$langdir "language";
        
$langhandle opendir($langdir);
        while (
$langfile readdir($langhandle)) {
                if (
eregi("\.php$",$langfile) AND strtolower($langfile) != "mailtexts.php")
                        
$languages[str_replace(".php","",$langfile)] = ucwords(str_replace(".php","",$langfile));
        }
        
closedir($langhandle);
        unset(
$langdir,$langfile);
}
        
$change '';
foreach (
$languages as $key=>$val) {
        
$change .="<option ";
        if (
$language == $key$change .="selected";
        
$change .=" value=\"".$key."\">".$val."</option>\n";
}
unset(
$languages);
return 
$change;
}

function 
themeheader() {
global 
$db$db_prefix$theme$siteurl$user$upload_level$sitename$gfx_check$donations$INVITEONLY,$onlysearch$pivate_mode;
header("Content-Type: text/html; charset=utf-8");

if (
$user->user) {
        
//Update online user list
        
$pagename substr($_SERVER["PHP_SELF"],strrpos($_SERVER["PHP_SELF"],"/")+1);
        
$sqlupdate "UPDATE ".$db_prefix."_online_users SET page = '".addslashes($pagename)."', last_action = NOW() WHERE id = ".$user->id.";";
        
$sqlinsert "INSERT INTO ".$db_prefix."_online_users VALUES ('".$user->id."','".addslashes($pagename)."', NOW(), NOW())";
        
$res $db->sql_query($sqlupdate);
        if (!
$db->sql_affectedrows($res)) $db->sql_query($sqlinsert);
}
echo 
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo 
"<html>\n";
echo 
"<head>\n";
echo 
"<!--[if lt IE 7]>
<script defer type=\"text/javascript\" src=\"
$siteurl/pngfix.js\"></script><![endif]-->";
echo 
"<title>".$sitename."</title>\n";
?>
<script type="text/javascript">
pmbtsite_url = "<?php echo $siteurl?>";
tag_prompt = "<?php echo _bb_tag_prompt?>";
img_prompt = "<?php echo _bb_img_prompt?>";
font_formatter_prompt = "<?php echo _bb_font_formatter_prompt?>";
link_text_prompt = "<?php echo _bb_link_text_prompt?>";
link_url_prompt = "<?php echo _bb_link_url_prompt?>";
link_email_prompt = "<?php echo _bb_link_email_prompt?>";
list_type_prompt = "<?php echo _bb_list_type_prompt?>";
list_item_prompt = "<?php echo _bb_list_item_prompt?>";

</script>
<?php
if (is_readable("themes/$theme/favicon.png")) {
        echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.png\" TYPE=\"image/x-icon\">\n";
}

if (!
$onlysearch) {
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Last Torrents\" href=\"$siteurl/backend.php?op=last\">\n";
        echo 
"<link rel=\"alternate\" type=\"application/rss+xml\" title=\"Best Torrents\" href=\"$siteurl/backend.php?op=best\">\n";
}


if (
is_readable("themes/$theme/style.css")) {
        echo 
"<link rel=\"StyleSheet\" href=\"$siteurl/themes/$theme/style.css\" type=\"text/css\">\n<script type=\"text/javascript\" src=\"$siteurl/global.js\"></script>\n";
}
overlib_init();

echo 
"</head>\n\n";


$themepage false;
?><!--[if lt IE 7]><link rel="stylesheet" type="text/css" media="screen" href="themes/Pitch_Black/iestyle.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" media="screen" href="themes/Pitch_Black/iestyle.css">
<![endif]-->
<?php
if($user->user)echo "<body class=\"ltr\" onload=\"shoutthis_ajax()\">\n";
else

echo
"<tr>\n";
echo
"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" id=\"maintable\" align=\"center\">\n";
echo
"<td class=\" \" align=\"center\" width=\"\" >\n";
        echo
"<a href=\"./index.php\"><img src=\"./themes/Pitch_Black/pics/site_logo.png\"  alt=\"hold this\" title=\"\" /></a>\n";
    echo
"</div></div></td>\n";
echo
"</tr>\n";
echo
"</tr>\n";

echo
"<tr>\n";
    echo
"<td class=\"navrow\" align=\"center\">\n";
        echo
"<a href=\"./index.php\">"._btindex."</a> • \n";
        if (
$user->user)echo"<a href=\"./user.php?op=profile&id=".$user->id."\">Προφίλ</a> • ";
        if (
$user->user)echo"<a href=\"./pm.php\"><strong>0</strong> νέα μηνύματα</a> •         ";
        echo
"<a href=\"./faq.php\">Συχνές Ερωτήσεις</a>\n";
         echo
"• <a href=\"./search.php\">Αναζήτηση</a>";
         if (
$user->user)echo" • <a href=\"./memberslist.php\">Λίστα Μελών</a> • <a href=\"./user.php?op=logout\">Αποσύνδεση [ ".$user->name." ]</a>    </td>\n";

echo
"</tr>\n";
echo
"<tr>\n";
echo
"<td id=\"contentrow\">\n";
if(
$pivate_mode AND !$user->user AND !eregi("user.php",$_SERVER["PHP_SELF"])) loginrequired("user"true);


//echo "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/w/opensearch_desc.php\" title=\"Wikipedia (English)\" />";
$reason "";
if (
is_banned($user$reason)) {
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<h3 align=\"center\">".str_replace("**reason**",htmlspecialchars($reason),_btbannedmsg)."</p>\n";
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<p>&nbsp;</p>\n";
        include(
"footer.php");
        die();
}

$has_newpm false;
$sql "SELECT id FROM ".$db_prefix."_private_messages WHERE recipient = '".$user->id."' AND is_read = 'false' LIMIT 1;";
$res $db->sql_query($sql) or btsqlerror($sql);
$has_newpm = ($db->sql_numrows($res) > 0) ? true false;
$db->sql_freeresult($res);
if (
$has_newpm)
{
  echo 
"<script type=\"text/javascript\" language=\"JavaScript\">";
  echo 
"sPath = window.location.pathname;";
  echo 
"sPage = sPath.substring(sPath.lastIndexOf('/') + 1);";
  
  echo 
"if (sPage != \"pm.php\"){ var answer = confirm (\""._jscriptconfirmtext."\");";
  echo 
"if (answer) window.location=\"pm.php?op=inbox\";";
  echo 
"}";
  echo 
"</script>";

}

echo 
"<table width=\"100%\">\n";
echo 
"<tr>\n";
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"]))echo "<td width=\"20%\" valign=\"top\">\n";
else
echo 
"<td  valign=\"top\">\n";
echo 
"<div >";
if(!
eregi("phpBB.php",$_SERVER["PHP_SELF"]))
{
OpenTable('Αλλαγή Θέματος');
        echo 
"<p align=\"center\"><b>Θέμα</b></p>\n";
        echo 
"<form id=\"acp_styles\" type=\"hidden\" method=\"post\" action=\"#\">";
        echo 
"<p><select id=\"template_file\" name=\"theme_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".themechange()."</select></p>";
        echo 
"<p align=\"center\"><b>Γλώσσα</b></p>\n";
        echo 
"<p><select id=\"language_file\" name=\"language_change\" onchange=\"if (this.options[this.selectedIndex].value != '') this.form.submit();\">".languagechange()."</select></p>";
        echo 
" <input class=\"button2\" type=\"submit\" value=\"Επιλογή\" /></form>";
CloseTable();    
if (
$user->user)
{
OpenTable("Στατιστικά");
        
$sql "SELECT seedbonus, avatar, uploaded,  downloaded, invites, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';";
        
$res $db->sql_query($sql);
        list (
$seedbonus$avatar$uploaded$downloaded$invites$ratio) = $db->sql_fetchrow($res);
        
$db->sql_freeresult($res);
        echo 
"<p>".pic("pic_uploaded.gif").mksize($uploaded)."<br>";
        echo 
pic("pic_downloaded.gif").mksize($downloaded)."<br>";
        echo 
pic("pic_ratio.gif");
        echo 
"&nbsp;";
        if (
$downloaded == 0)
                echo 
"&infin;";
        elseif (
$ratio 0.1)
                echo 
"<font color=\"#ff0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.2)
                echo 
"<font color=\"#ee0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.3)
                echo 
"<font color=\"#dd0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.4)
                echo 
"<font color=\"#cc0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.5)
                echo 
"<font color=\"#bb0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.6)
                echo 
"<font color=\"#aa0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.7)
                echo 
"<font color=\"#990000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.8)
                echo 
"<font color=\"#880000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.9)
                echo 
"<font color=\"#770000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 1)
                echo 
"<font color=\"#660000\">" number_format($ratio2) . "</font>";
        else
                echo 
"<font color=\"#00FF00\">".  number_format($ratio2) . "</font>";
        echo 
"<br />\n";
        
#Numer of seeding Torrents
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'yes' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("upload.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureseeding);
        else echo 
pic("upload.gif",null,_btyoureseeding);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        
#Number of downloading Torrents
        
echo "<br />\n";
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'no' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("download.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureleeching);
        else echo 
pic("download.gif",null,_btyoureleeching);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        if(
$avatar=="blank.gif")$thavatar "themes/Pitch_Black/pics/noavatar.gif";
        else 
        
$thavatar "avatars/".$avatar;
        echo 
"</p>";
        echo 
"<br />\n";
        echo 
"<br />\n";
        echo 
"<p align=\"center\"><b>"._btwelcomebk."</b></p>\n";
        echo 
"<p align=\"center\"><b>".$user->name."</b></p>\n";        
        echo 
"<b><img  src=\"".$thavatar."\" alt=\"".$user->name."\"></b><br />";
        echo 
"<br />\n";
        print(
"<p>Δείκτης Διαμοιρασμού: <a href='mybonus.php'>".$seedbonus."</a></p>");

CloseTable();    
}
          
OpenTable("Μενού");
          echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\" class=\"forumline\" align=\"center\">\n";
          if (
$user->user)
          {
          echo 
"<tr><td class=\"row2\" width=\"100%\"><a href=\"index.php\">"._btindex."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"rules.php\">Κανόνες</a></td></tr>\n";
          echo 
"<tr><td class=\"row2\" width=\"100%\"><a href=\"faq.php\">"._btfaqs."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"phpBB.php\">Φόρουμ</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"chat.php\">"._btircchat."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"mytorrents.php\">"._btpersonal."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"upload.php\">"._btupload."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"torrents.php\">Προβολή Torrents</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"pm.php\"><span id=\"nopm_notif\">"._btpm."</span></a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"user.php?op=profile&id=".$user->id."\">"._btuserprofile."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"memberslist.php\">"._btmemlist."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"user.php?op=logout\">"._btlogout."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"games.php\">"._btgames."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"viewrequests.php\">"._btviewrqst."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"offers.php\">"._bttorofferd."</a></td></tr>\n";
          if (
$user->admin)echo "<tr><td class=\"row1\" width=\"100%\"><a href=\"admin.php\">"._btadmin."</a></td></tr>\n";
          }else{
          echo 
"<tr><td class=\"row2\" width=\"100%\"><a href=\"index.php\">"._btindex."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"rules.php\">Rules</a></td></tr>\n";
          echo 
"<tr><td class=\"row2\" width=\"100%\"><a href=\"faq.php\">"._btfaqs."</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"phpBB.php\">Forum</a></td></tr>\n";
          echo 
"<tr><td class=\"row1\" width=\"100%\"><a href=\"chat.php\">"._btircchat."</a></td></tr>\n";
          if (
$upload_level == "all") echo "<tr><td class=\"row1\" width=\"100%\"><a href=\"upload.php\">"._btupload."</a></td></tr>\n";
          }
          echo 
"</table>\n";
if (!
$user->user) {
        echo 
"<HR SIZE=1 NOSHADE>";
        echo 
"<p align=\"center\"><b>"._btlogin."</b></p>\n";
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n";    
        echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>";
        if (
$gfx_check) {
                
$rnd_code strtoupper(RandomAlpha(5));
                echo 
"<p align=\"center\">"._btsecuritycode."<br><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\"><br>\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">";
                echo 
"<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n";
        }
        echo 
"<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>";
        echo 
"<p><a href=\"user.php?op=register\">"._btsignup."</a><br />\n\n";
        echo 
"<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n";
 }      
          
CloseTable();
// invite block
if ($user->user AND $INVITEONLY)
{
    
        
        
OpenTable(_btinvites);
        echo 
"<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">\n";
        echo 
"<tr><td align=\"center\">"._btinfituh."<br></td></tr>\n";
        if (
$user->invites ){
        echo 
"<tr><td align=\"center\"><a href=invite.php>"._btsendiv."</a><br></td></tr>\n";
        }
        echo 
"</table>";
        
        
CloseTable();
    
}

if (
$donations){
include(
"./blocks/donation_block.php");
}

















//include("blocks/shoutbox.php");
//if (!$onlysearch) include("./blocks/syndicate.php"); #Deactivated until RSS syndication is complete

OpenTable("HTML");
echo 
"<p align=\"center\"><a href=\"http://validator.w3.org/check?uri=referer\"><img src=\"http://www.w3.org/Icons/valid-html401\" alt=\"Valid HTML 4.01 Transitional\" height=\"31\" width=\"88\" border=\"0\"></a></p>\n";
CloseTable();
}
include(
"poll.php");
echo 
"</div></td>\n";
echo 
"<td width=\"75%\" valign=\"top\">\n";
echo 
"<div id=\"rightcolumn\">";
$sql_profile "SELECT * FROM ".$db_prefix."_users where id = '".$user->id."' ;";
$res_profile $db->sql_query($sql_profile);
$userrow $db->sql_fetchrow($res_profile);
$db->sql_freeresult($res_profile);
// WARN things START
if ($user->user) {
if (
$user->downloaded 0){
include (
"./ratiowarn.php");
}
}
 if (
$userrow["warned"])
 {
$warn_kapta $userrow["warn_kapta"];
$warn_hossz $userrow["warn_hossz"];
$modcomment $userrow["modcomment"];

if (
$warn_hossz != -1) {
$warn $warn_kapta $warn_hossz;
$time_now strtotime(gmdate("Y-m-d H:i:s"time()));
if (
$warn $time_now)
{
$modcomment "[ " gmdate("Y-m-d H:i:s"time()) . " - WARN time expired ]\n" $modcomment;
$msg = ("Your WARN time expired, so we deleted it!");
     @
$db->sql_query("INSERT INTO ".$db_prefix."_private_messages (sender, recipient, subject, text, sent) VALUES(1, " .$user->id",'WARNING' '" $msg ."', NOW())") or die(mysql_error());  
$modcomment $modcomment;
$frissites $db->sql_query("UPDATE ".$db_prefix."_users SET modcomment=$modcomment, warned='0', warn_kapta='0', warn_hossz='0' WHERE id='".$user->id."'") or die(mysql_error());
}
}
}
// WARN things END
 //////////////////// Kommentera modd ////////////////////////
$res =  $db->sql_query("SELECT torrent FROM ".$db_prefix."_peers WHERE uid='".$user->id."'")or print(mysql_error());
while(
$row $db->sql_fetchrow($res)){
$kom $db->sql_fetchrow$db->sql_query("SELECT count(*) FROM ".$db_prefix."_comments WHERE user= '".$user->id."' AND torrent='$row[torrent]'"))or print(mysql_error());
$tor $db->sql_fetchrow$db->sql_query("SELECT name,owner FROM ".$db_prefix."_torrents WHERE id='$row[torrent]'"))or print(mysql_error());
if(!
$kom[0] && $tor[owner] !=  $user->id){
 
$komment .= "<a href=details.php?id=".$row[torrent].">".$tor[name]."</a><br>";
}
}
 
/////////////////////////////////////////////////////////////
if ($user->user) {
 if (
$komment){
 print(
"<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=green><tr><td style='padding: 50px; background: green'>\n");
 print(
"Please leave a comment on:<br>$komment");
 print(
"</td></tr></table></p>\n");
}
}
}

function 
overlib_init() {
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
        echo 
"<script type=\"text/javascript\" src=\"overlib/overlib_shadow.js\"><!-- overLIB (c) Erik Bosrup --></script>\n";
}
function 
themefooter(){
global 
$startpagetime;
echo
"</div></td></tr></table>";
echo
"";
echo
'<div id="wrapfooter">
    <span class="gensmall"> <!-- Feel free to add you custom disclaimer or copyright notice here -->
 <!-- YOU ARE NOT ALLOWED TO EDIT THE FOLLOWING COPYRIGHT NOTICE!!! -->
<font color=" grey">Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.<br>
 Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 Ιχνηλάτης phpMyBitTorrent (c)   2005-2012. <a href="http://phpmybittorrent.com"><font color=" white">phpMyBitTorrent Team.   </a><font color=" grey"><br>
 Με επιφύλαξη παντός δικαιώματος. (c)   2009-2012. <font color=" white"> www.archectypo.netii.net<font color=" black"><br>
 <font color=" grey">Δημιουργήθηκε σε ' 
abs(round(microtime()-$startpagetime,2)) . ' δευτερόλεπτα.
 
 <!-- END OF COPYRIGHT NOTICE -->

</span><br /><br />    <span class="copyright">

    
    </span>
</div>



    </td>
</tr>
</table>

</body>
</html>'
;
}
function 
help($name,$help,$title "") {
        echo 
"<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'";
        if (
$title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'";
        echo 
",FGCOLOR,'#3e7ebb',BGCOLOR,'#3d3f41',CAPICON,'themes/Pitch_Black/pics/help.png',SHADOW,SHADOWOPACITY,50,SHADOWCOLOR,'#3e7ebb',SHADOWX,3,SHADOWY,3,HAUTO,VAUTO);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}
?>
Bump: i have to add:
Code:
include("blocks/usercp2.php");
right?

but where exactly

Bump: i mean something like this in picture 2.....
Attached Thumbnails
1.jpg   demonoidtheme.jpg  

Last edited by Giorgatzelos; 5th June 2013 at 00:22.
Reply With Quote
  #2  
Old 5th June 2013, 02:50
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
PHP Code:
function themefooter(){
global 
$startpagetime;
echo
"</div></td>";
echo
"<td>":
include(
"blocks/usercp2.php");
echo 
"</td></tr></table>";
echo
"";
echo
'<div id="wrapfooter">
    <span class="gensmall"> <!-- Feel free to add you custom disclaimer or copyright notice here -->
 <!-- YOU ARE NOT ALLOWED TO EDIT THE FOLLOWING COPYRIGHT NOTICE!!! -->
<font color=" grey">Κανένα απο τα αρχεία που εμφανίζονται εδώ δεν φιλοξενούνται στον τρέχοντα διακομιστή.<br>
 Δεν φέρουμε ευθύνη για τις αναρτήσεις, ή οποιεσδήποτε πράξεις των χρηστών.<br>
 Ιχνηλάτης phpMyBitTorrent (c)   2005-2012. <a href="http://phpmybittorrent.com"><font color=" white">phpMyBitTorrent Team.   </a><font color=" grey"><br>
 Με επιφύλαξη παντός δικαιώματος. (c)   2009-2012. <font color=" white"> www.archectypo.netii.net<font color=" black"><br>
 <font color=" grey">Δημιουργήθηκε σε ' 
abs(round(microtime()-$startpagetime,2)) . ' δευτερόλεπτα.
 
 <!-- END OF COPYRIGHT NOTICE -->

</span><br /><br />    <span class="copyright">

    
    </span>
</div>



    </td>
</tr>
</table>

</body>
</html>'
;

__________________
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/

Last edited by Krypto; 5th June 2013 at 08:39.
Reply With Quote
  #3  
Old 5th June 2013, 03:19
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
replaced that but still no right collumn...
Reply With Quote
  #4  
Old 5th June 2013, 03:26
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
what do you have in
include("blocks/usercp2.php");
__________________
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/
Reply With Quote
  #5  
Old 5th June 2013, 03:32
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
PHP Code:
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-----------------------------*
*--- 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 access this file directly");


if (
$user->user) {
include(
"blocks/catlist.php");
}


?>

and it is read by other themes...

only on acidtech theme [this theme but a bit edited] for pmbt 2.04 cannot add right bar...
Reply With Quote
  #6  
Old 5th June 2013, 04:16
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
on
PHP Code:
function themefooter(){
global 
$startpagetime
make it
PHP Code:
function themefooter(){
global 
$startpagetime$user
__________________
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/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
Giorgatzelos (5th June 2013)
  #7  
Old 5th June 2013, 04:22
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
thanks Joe! worked!
Reply With Quote
Reply

Tags
add , collumn , theme

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



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