Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #11  
Old 7th May 2010, 14:36
Hasan Hasan is offline
Senior Member
 
Join Date: Apr 2010
Denmark
Posts: 29
Default
Quote:
Originally Posted by joeroberts View Post
If your getting file not found then you put it in the wrong place have a chmod problem or you misslabled it.
hmm

Step1

I open include/bittorrent.php
found and added the code u said, so its loo lie this
PHP Code:
function torrenttable($res$variant "index"$user ""$block =  "") {
        global 
$db$name$search$user$download_level,  $torrent_global_privacy$onlysearch$db_prefix$autoscrape$theme,  $btback1$btback2$btback3$free_dl;
if(
function_exists('theme_torrenttable'))return theme_torrenttable($res,  $variant$user$block); 

Then I made the bittorrent.php and added to theme/1thank

Then I found main.php at the same folder and edited

this, so its looked like this

PHP Code:
include_once'themes/'.$theme.'/bittorrent.php'
function 
OpenTable
I did everything as u wrote, but did not do chmod? What file shuold i do 777 on then ?
Reply With Quote
  #12  
Old 7th May 2010, 14:54
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
post your main.php
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #13  
Old 7th May 2010, 22:27
Hasan Hasan is offline
Senior Member
 
Join Date: Apr 2010
Denmark
Posts: 29
Default
Quote:
Originally Posted by daffy View Post
post your main.php
sure here mate

But I did not edit anything on main.php because it gave error last time..

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 "ffffff";
$btback2 "ffffff";
$btback3 "ffffff";
                   

function 
OpenTable($title "title"$tablewidth "") {
        global 
$tableopen$siteurl;
        if (
$tableopen) return;
        if(
$tablewidth !=""$stylewidth "style=\"width: ".$tablewidth."px;\"";
        else 
$stylewidth '';
        echo 
'<div class="forabg">
            <div class="inner"><span class="corners-top"><span></span></span>
            
        
            <ul class="topiclist">
                <li class="header">
                    <dl class="icon">
                        <dt>'
.$title.'</dt>

                    </dl>
                </li>
            </ul>
<span class="corners-bottom"><span></span></span></div>    
</div>'
;
           
    
$tableopen true;
}

function 
CloseTable() {
        global 
$tableopen$siteurl;
        if (!
$tableopen) return;
        echo 
'<div style="height: 2px;"></div>';

        
$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$forumshare$shout_config$PHP_SELF;

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);
}
$who "".getusername($btuser)."";
$timestamp=time();                                                                                            
$timeout=$timestamp-$timeoutseconds=86400;  


$vtd "INSERT INTO 24hourvist VALUES ('$who','$timestamp','".getip()."','".$PHP_SELF."')"
$vtdud "UPDATE 24hourvist SET user = '$who', timestamp = '$timestamp', file = '".$PHP_SELF."' WHERE ip = '".getip()."'"
        
$restd $db->sql_query($vtdud);
        if (!
$db->sql_affectedrows($restd)) $db->sql_query($vtd);
$db->sql_query("DELETE FROM 24hourvist WHERE timestamp<$timeout");

echo 
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo 
"<html>\n";
echo 
"<head>\n";
echo 
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" >\n";
echo 
"<meta name=\"generator\" content=\"PMBT 2.0.2\" >\n";
echo 
"<meta http-equiv=\"Pragma\" content=\"no-cache\" >\n";
echo 
"<meta http-equiv=\"Expires\" content=\"-1\" >\n";
echo 
"<meta http-equiv=\"Cache-Control\" content=\"no-cache\" >\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?>";
_btshoutnowprivate = "<?php echo _btshoutnowprivate?>";
shoutrefresht = "<?php echo $shout_config['refresh_time']; ?>";
shoutidle = "<?php echo $shout_config['idle_time']; ?>";
</script>
<?php
if (is_readable("themes/$theme/favicon.ico")) {
        echo 
"<link REL=\"shortcut icon\" HREF=\"$siteurl/themes/".$theme."/favicon.ico\" 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();
$catmen '';
foreach (
catlist() as $cat){
$catmen .= "<div class = \"helpm\"><a class=\"forumtitle\" href=\"torrents.php?cat=".$cat['id']."\">".$cat['name']."</a></div>";
}
echo 
"</head>\n\n";

define("BT_SHARE",true);
$themepage false;
if(
$user->user)echo "<body onload=\"shoutthis_ajax()\">\n";
else
echo 
"<body>";
echo
"<noscript>
<center><h3><font color=red>Javascript is not available!</font></h3></center>
<center><h3><font color=red>This website cannot function correctly without JavaScript!</font></h3></center>
</noscript>\n"
;
echo 
"<div id=\"overDiv\" style=\"position:absolute; visibility:hidden; z-index:1000;\"></div>\n";
echo
'<div id="bodybg">
    <div id="pmbtwrapper">
        <div id="pmbshad-l">
            <div id="pmbshad-r">
                <div id="header">

                    <div id="head-l">

                        <div id="head-r">
                            <div id="userarea" class="smalltext"><p class="right">It is currently '
.date("D M j G:i:s T Y").'</p>

                            </div>
                            <div  class="smalltext">
                                    <div id="search-box">

                <form action="./search.php" method="post" id="search">
                

                    <input name="search" id="keywords" type="text" maxlength="128" title="Search for keywords" class="inputbox search" value="Search" onclick="if(this.value==\'Search\')this.value=\'\';" onblur="if(this.value==\'\')this.value=\'Search\';" >
                    <input class="button2" value="Search" type="submit" ><br >
                                     
                </form>
            </div>

        

                            </div>
                        <a href="./index.php" title=""><span id="pmbtlogo">&nbsp;</span></a>

                        </div>
                    </div>
                </div>
                <div id="toolbar">
                    
        <div id="topmenu">

            <ul>'
;
echo 
"            <li><a  href=\"./index.php\"><span>Index</span></a></li>\n";
echo 
"<li>";
help("<a  href=\"./torrents.php\"><span>Torrents</span></a>","<div class=\"forabg\"><div class=\"inner\"><span class=\"corners-top\"><span></span></span><ul class=\"topiclist\"><li class=\"header\"><dl class=\"icon\"><dt><span onclick=\"return nd();\">Menu(Close)</span></dt></dl></li></ul><span class=\"corners-bottom\"><span></span></span></div></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"torrents.php\">All Torrents</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"viewrequests.php\">View Requests</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"./offers.php\">Torrents Offered</a><div class=\"poptoolbar\">Category's</div></div>".$catmen."<div style=\"height: 2px;\"></div>",'test','test');
echo 
"</li>";
if (
$forumshare)echo "            <li><a  href=\"./phpBB.php\"><span>Forums</span></a></li>\n";
if(
$user->user)echo "            <li><a  href=\"./memberslist.php\"><span>Members</span></a></li>\n";
if(
$user->user) {
echo 
"            <li><a  href=\"./games.php\"><span>Games</span></a></li>\n";
echo 
"<li>";
help("<a  href=\"./user.php\"><span>My Profile</span></a>","<div class=\"forabg\"><div class=\"inner\"><span class=\"corners-top\"><span></span></span><ul class=\"topiclist\"><li class=\"header\"><dl class=\"icon\"><dt><span onclick=\"return nd();\">Menu(Close)</span></dt></dl></li></ul><span class=\"corners-bottom\"><span></span></span></div></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"mytorrents.php\">Your Torrents</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"pm.php\">Private Messages</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"./user.php?op=profile&id=" $user->id ."\">User Control Panel</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"./mybonus.php\">Seeding Bonus</a></div><div style=\"height: 2px;\"></div>",'test','test');
echo 
"</li>";
}
if(!
$user->user)echo "            <li><a  href=\"./user.php?op=register\"><span>Register</span></a></li>\n";
if(!
$user->user)echo "                <li><a  href=\"./user.php?op=profile\"><span>Login</span></a></li>\n";
if(
$user->user)echo "                <li><a  href=\"./user.php?op=logout\"><span>Logout</span></a></li>\n";
if((
$user->user OR $upload_level == "all"))echo "            <li><a  href=\"upload.php\"><span>Upload</span></a></li>\n";
if(
$user->admin)echo "            <li><a  href=\"admin.php\"><span>Admin</span></a></li>";
echo
"<li>\n";
help("<a  href=\"./chat.php\"><span>Help</span></a>","<div class=\"forabg\"><div class=\"inner\"><span class=\"corners-top\"><span></span></span><ul class=\"topiclist\"><li class=\"header\"><dl class=\"icon\"><dt><span onclick=\"return nd();\">Menu(Close)</span></dt></dl></li></ul><span class=\"corners-bottom\"><span></span></span></div></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"chat.php\">Chat</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"rules.php\">Rules</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"faq.php\">F.A.Q</a></div><div class = \"helpm\"><a class=\"forumtitle\" href=\"staff.php\">Staff</a></div><div style=\"height: 2px;\"></div>",'test','test');
echo 
'</li>';
echo 
'</ul>
        </div>
                </div>
<div id="bodyarea">
<br ><br >'
;
function 
newuserpage($page)
{
if(
eregi("user.php",$page))return true;
if(
eregi("takeconfirminvite.php",$page))return true;
if(
eregi("confirminvite.php",$page))return true;
return 
false;
}
if(
$pivate_mode AND !$user->user AND !newuserpage($_SERVER["PHP_SELF"])){
 
loginrequired("user"false);
include
'footer.php';
}
$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>";

}

}

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>";#right hand collom here
echo'<div id="footer">
                    <div id="foot-l">
                        <div id="foot-r">
                            <div id="footerarea">
                <span class="smalltext">
                
        <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif; color:#FFFFFF;">

<p>
 <!-- Feel free to add you custom disclaimer or copyright notice here -->
 <!-- YOU ARE NOT ALLOWED TO EDIT THE FOLLOWING COPYRIGHT NOTICE!!! -->

U-torrentz.org &copy; 2010 <a href="http://www.u-torrentz.org">U-torrentz</a>.<br>
Original Code and Design By <a href="http://www.phpmybittorrent.com" target="_blank">PhpMyBitTorrent</a> 
The Development Team cannot be held responsible in any way for the results of the use of this software.<br>

 <!-- END OF COPYRIGHT NOTICE -->
 Generated in ' 
abs(round(microtime()-$startpagetime,2)) . ' seconds
 </p>
        
        </span>
        </span>

        
                            </div>
                        </div>
                    </div>
                </div>
                <div>
    <a id="bottom" name="bottom" accesskey="z"></a>
    </div>
</div>
</div>
</div>
</div>
</body>
</html>'
;
}
function 
help($name,$help,$title "",$link "") {
        if (
$link != "") echo "<span class=\"overlib\" onclick=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'";
        if (
$link == "") echo "<span class=\"overlib\" onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array("","'"),$help)),"'";
        if (
$title != "" AND $link == "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'";
       
// if ($title != "" AND $link != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","'"),$title))."'";
        
if ($link == "") echo ",TEXTFONT,'Verdana',TEXTCOLOR,'#FFFFFF',CAPTIONFONT,'Lucida Console, Verdana',CENTER,FGCOLOR,'#000000',BGCOLOR,'#6F7578',CAPICON,'themes/1thank/pics/help.png',BORDER,2,SHADOW,SHADOWOPACITY,40,SHADOWCOLOR,'#030303',SHADOWX,2,SHADOWY,2);\" onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
        if (
$link != "") echo ",CELLPAD,'0',FOLLOWMOUSE,'0',TEXTFONT,'Verdana',TEXTCOLOR,'#FFFFFF',CAPTIONFONT,'Lucida Console, Verdana',CENTER,FGCOLOR,'#000000',BGCOLOR,'#6F7578',CAPICON,'themes/1thank/pics/help.png',SHADOW,SHADOWOPACITY,40,SHADOWCOLOR,'#030303',SHADOWX,2,SHADOWY,2);\"  >".$name."</span>";
}
Reply With Quote
  #14  
Old 7th May 2010, 23:48
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
take these. bittorrent.php into your theme/1thank/ and main.php into theme/1thank/

replace existing main and bittorrent.php if asked. screen below matey. wasnt keen on this theme at first buts its quite attractive lol.

edit. you may need images, if so il post what i use what you can see. or you can edit in theme/1thank/bittorrent.php
Attached Thumbnails
Image.jpg  
Attached Files
File Type: php bittorrent.php (15.8 KB, 6 views)
File Type: php main.php (18.7 KB, 5 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #15  
Old 8th May 2010, 12:01
Hasan Hasan is offline
Senior Member
 
Join Date: Apr 2010
Denmark
Posts: 29
Default
Quote:
Originally Posted by daffy View Post
take these. bittorrent.php into your theme/1thank/ and main.php into theme/1thank/

replace existing main and bittorrent.php if asked. screen below matey. wasnt keen on this theme at first buts its quite attractive lol.

edit. you may need images, if so il post what i use what you can see. or you can edit in theme/1thank/bittorrent.php
Thanks alot Daffy but I figured out why it did not work..

Im an IDOIT, if you ever see me kill me...

I looked at the codes again and saw that that php file did not have the same as mine, thats why it could not find it... LOL...



But there is a problem the width is to much, any idea how to make it smaller so it fit to my site lol ?

and you more then welcome to send the images u use :)!
Reply With Quote
  #16  
Old 8th May 2010, 17:13
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
for width alter how many display name charactors are shown.

Code:
echo "\"  title=\"".$dispname."\"><nobr>".((strlen($dispname) <= 37) ? search_word($dispname, $search): search_word(substr($dispname,0,36)."...", $search))."</a></p>";
whilst im here, anyway we can get users color to show on torrent table.
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details

Last edited by daffy; 8th May 2010 at 20:55.
Reply With Quote
  #17  
Old 9th May 2010, 10:13
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
Quote:
Originally Posted by daffy View Post
whilst im here, anyway we can get users color to show on torrent table.
yea open torrents.php and find
PHP Code:
        $sql "SELECT ".$db_prefix."_torrents.*, IF(".$db_prefix."_torrents.numratings < '".$minvotes."', NULL, ROUND(".$db_prefix."_torrents.ratingsum / ".$db_prefix."_torrents.numratings, 1)) AS rating, ".$db_prefix."_categories.name AS cat_name, ".$db_prefix."_categories.image AS cat_pic, U.username, IF(U.name IS NULL, U.username, U.name) as user_name, U.level as user_level FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON category = ".$db_prefix."_categories.id LEFT JOIN ".$db_prefix."_users U ON ".$db_prefix."_torrents.owner = U.id WHERE ".$viswhere.$catwhere.$passwhere.$orderby.$db_prefix."_torrents.added DESC LIMIT ".$from.",".$torrent_per_page.";"
and replace with
PHP Code:
        $sql "SELECT ".$db_prefix."_torrents.*, IF(".$db_prefix."_torrents.numratings < '".$minvotes."', NULL, ROUND(".$db_prefix."_torrents.ratingsum / ".$db_prefix."_torrents.numratings, 1)) AS rating, ".$db_prefix."_categories.name AS cat_name, ".$db_prefix."_categories.image AS cat_pic, U.username, IF(U.name IS NULL, U.username, U.name) as user_name, U.level as user_level, U.can_do as can_do FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON category = ".$db_prefix."_categories.id LEFT JOIN ".$db_prefix."_users U ON ".$db_prefix."_torrents.owner = U.id WHERE ".$viswhere.$catwhere.$passwhere.$orderby.$db_prefix."_torrents.added DESC LIMIT ".$from.",".$torrent_per_page.";"
__________________
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:
daffy (9th May 2010)
  #18  
Old 11th May 2010, 15:33
Hasan Hasan is offline
Senior Member
 
Join Date: Apr 2010
Denmark
Posts: 29
Default
Everything works fine in firefox, expect in IE, some IMAGE/name are not shown in IE ? ( using 1thank theme)

Comments/Ratings and Size is not showing... www.u-torrentz.org. take a look.

How to fix that?
Reply With Quote
  #19  
Old 11th May 2010, 15:42
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
The requested URL /themes/1thank/pics/icon_rating.png does not exist.


you dont have images. that is in ff
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #20  
Old 11th May 2010, 15:52
Hasan Hasan is offline
Senior Member
 
Join Date: Apr 2010
Denmark
Posts: 29
Default
Quote:
Originally Posted by daffy View Post
The requested URL /themes/1thank/pics/icon_rating.png does not exist.

you dont have images. that is in ff
why do it work on Firefox not in EI then? ( its not a image sorry, its just written lol down?
Reply With Quote
Reply

Tags
modded , table , torrent

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
Modded Torrent Table pwnage BT.Manager (phpMyBitTorrent) 1 10th February 2010 07:05
help Torrent Strike Fully Modded wMan Torrent Strike 8 3rd August 2009 00:37
help Torrent Strike Fully Modded wMan Community Cafe 0 2nd August 2009 01:56
New mod request torrent strike fully modded toontigger Torrent Strike 8 26th April 2009 14:27
Torrent Strike fully modded sql problem dragontear Torrent Strike 4 30th January 2009 22:23



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