Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=93)
-   -   [PMBT 2.0] Acidtech (http://www.bvlist.com/showthread.php?t=1278)

joeroberts 28th October 2008 02:38

[PMBT 2.0] Acidtech
 
3 Attachment(s)
This is My first shot at a matching theme set Hope you like it

Attachment 544 Attachment 545

Krypto 28th October 2008 02:50

WOW Excellent Combo Joe :drink:

In style.css

Find
PHP Code:

* {
    
/* Reset browsers default margin, padding and font sizes */
    
margin0;
    
padding0;


Replace
PHP Code:

* {
    
/* Reset browsers default margin, padding and font sizes */
    
margin0;


Otherwise it throws the syndication bullet points out of line.

wMan 28th October 2008 18:43

so you using this as a default theme :relax:

joeroberts 30th October 2008 13:07

Quote:

Originally Posted by Krypto (Post 5990)
WOW Excellent Combo Joe :drink:

In style.css

Find
PHP Code:

* {
    
/* Reset browsers default margin, padding and font sizes */
    
margin0;
    
padding0;


Replace
PHP Code:

* {
    
/* Reset browsers default margin, padding and font sizes */
    
margin0;


Otherwise it throws the syndication bullet points out of line.

thanks I missid that :O

only for now while Im testing it clocktower.

Dragan3591 30th October 2008 13:08

Man this is really nice. Clean

movizdb 9th December 2008 21:37

thnaks but is it for witch version

Fynnon 9th December 2008 23:50

Quote:

Originally Posted by movizdb (Post 7307)
thnaks but is it for witch version

as the title of this topic says this skin is for v2 of PMBT
you can see a demo for this on www.guv2.com/pmbt

also there is a matching skin for the forum which is phpBB 3.0.3

Krypto 15th December 2008 00:18

Just noticed that when viewing the Peers on a torrent when you hover over the Trasnfer icon (exclamation mark) & Time Connected icon (blue icon) that the info is displayed behind the avatar instead of in front of it, how can I fix that?

joeroberts 15th December 2008 02:59

open ajax.php find
Code:

                case 'view_peers_page':{
                if(!$user->user)error("your not allowed to view peers with out being loged in");
                if ($_GET["tracker"] == "" AND $_GET["type"] != "link" AND $user->user) {
        OpenTable(_btsource);
        echo "\n";
        CloseTable();
}
                ob_end_flush();
$db->sql_close();
die();

and replace with
Code:

                case 'view_peers_page':{
                if(!$user->user)error("your not allowed to view peers with out being loged in");
                if ($_GET["tracker"] == "" AND $_GET["type"] != "link" AND $user->user) {
        OpenTable(_btsource);
                if (!isset($_GET['torrent']) OR !is_numeric($_GET['torrent']) OR $_GET['torrent'] < 1) error(_bterridnotset);
                $password = urldecode($password);
                $sql = "SELECT password FROM ".$db_prefix."_torrents WHERE id = '".$_GET['torrent']."' AND (password IS NULL OR password = '".$_GET["pass"]."') LIMIT 1;";
                $res = $db->sql_query($sql);
                if ($db->sql_numrows($res) < 1) die(); //Password is wrong or not set
                $db->sql_freeresult($res);
                $i = 0;
                $tropen = false;
                $sql = "SELECT P.id AS pid, P.peer_id AS peer_id, P.downloaded AS downloaded, P.uploaded AS uploaded, P.download_speed AS download_speed, P.upload_speed AS upload_speed, P.ip AS ip, P.real_ip AS real_ip, P.to_go AS to_go, P.seeder AS seeder, UNIX_TIMESTAMP(P.started) AS started_ts, UNIX_TIMESTAMP(P.last_action) AS last_action_ts, P.connectable AS connectable, P.client AS client, P.version AS clientversion, U.id AS uid, U.username AS username, U.name AS name, U.avatar AS avatar, U.level AS level, T.size AS torrent_size FROM ".$db_prefix."_peers P LEFT JOIN ".$db_prefix."_users U ON U.id = P.uid LEFT JOIN ".$db_prefix."_torrents T ON T.id = P.torrent WHERE P.torrent = '".$_GET['torrent']."' ORDER BY P.seeder ASC;";
                $res = $db->sql_query($sql) or print_r($db->sql_error());
                if ($db->sql_numrows($res) < 1) break;

                echo "\n";
                while ($row = $db->sql_fetchrow($res)) {
                        if (!$tropen) {
                                echo "\n";
                                $tropen = true;
                        }
                        #This box contains all data of the single user
                        echo "\n";
                        #End of user box

                        $i++;
                        if ($i == 4) {
                                $i = 0;
                                echo "\n";
                                $tropen = false;
                        }
                }
                if ($tropen) {
                        for (; $i<4 ;$i++) echo "\n";
                        echo "\n";
                }
                echo "
\n";
                        echo "\n";


                        echo "\n\n";
                        echo "\n";

                        #User name and avatar with profile link
                        echo "\n";
                        echo "";
                        echo "\n";
                        #End of user name, avatar & link


                        echo "
";
                        #This table contains peer attributes
                        echo "
";
                        echo "";
                        echo "";

                        #Column not yet assigned
                        echo "\n";

                        #Seeder or Leecher
                        echo "\n";

                        #Client Information
                        echo "\n";

                        #Active or passive
                        echo "\n";

                        #Time information
                        echo "\n";

                        echo "\n";
                        echo "
";
                        echo "

";
                        $s = _btuploadedbts.": ".mksize($row["uploaded"])."";
                        $s .= _btdownloadedbts.": ".mksize($row["downloaded"])."";
                        $s .= _btpercent.": ".sprintf("%.2f%%", (1 - ($row["to_go"] / $row["torrent_size"])) * 100)."";
                        ##RATIO START
                        $s .= _btratio.": ";
                        if ($row["downloaded"])
                                $s .= number_format($row["uploaded"]/$row["downloaded"],2);
                        else
                                if ($e["uploaded"])
                                        $s .= number_format($row["uploaded"]/$row["torrent_size"],2);
                                else
                                        $s .= "---";
                        $s .= "";
                        $s .= _btuploadspeed. ": ". mksize($row["upload_speed"])."/s";
                        if ($row["seeder"] == "no") {
                                if ($row["download_speed"]) {
                                        $edt_m = ($row["to_go"] / $row["download_speed"])/60; //to minutes
                                        $edt = ($edt_m % 60)."m"; //minutes
                                        $edt_h = floor($edt_m / 60);
                                        if ($edt_h>0) $edt = $edt_h."h ".$edt;
                                } else {
                                        $edt = "∞";
                                }
                                $s .= _btdownloadspeed.": ". mksize($row["download_speed"])."/s";
                                $s .= _btedt." ".$edt;
                        }
                        ##RATIO END
                        echo help(pic("help.gif","",null),$s,_bttransfer);
                        echo "

\n";
                        echo "
";
                        echo "

";
                        if ($row["seeder"] == "yes") echo pic("upload.gif","",_btseeder);
                        else echo pic("download.gif","",_btleecher);
                        echo "

\n";
                        echo "
";
                        echo "

";
                        $client = $row["client"]." ".$row["clientversion"];
                        if ($row["client"] != "" AND is_readable("client_icons/".$row["client"].".gif")) echo "\"".$client."\"";
                        else echo "\"".$client."\"";
                        echo "

\n";
                        echo "
";
                        echo "

";
                        if ($row["connectable"] == "yes") echo pic("icon_active.gif","",constant("_btalt_icon_active.gif"));
                        else echo pic("icon_passive.gif","",constant("_btalt_icon_passive.gif"));
                        echo "

";
                        echo "
";
                        echo "

";
                        $s = _btconnected.": ".mkprettytime(time()-$row["started_ts"]);
                        $s .= "";
                        $s .= _btidle.": ".mkprettytime(time()-$row["last_action_ts"]);
                        help(pic("clock.gif"),$s,_dtimeconnected);
                        echo "

";
                        echo"
\n";
                        echo "
";
                        #End of peer attributes

                        echo "

";
                        if (!$user->admin) $ip = preg_replace('/\.\d+$/', ".xxx", long2ip($row["ip"]));
                        else $ip = long2ip($row["ip"]);
                        if ($row["uid"] != 0) {
                                $usertxt = "";
                                if ($row["avatar"] == "blank.gif" OR !is_readable("avatars/".$row["avatar"])) { //No avatar
                                        $usertxt .= pic("noavatar.png");
                                } else {
                                        $usertxt .= "\"".str_replace("**user**",($row["name"]";
                                }
                                $usertxt .= "";
                                if ($row["name"] != "") $usertxt .= $row["name"];
                                else $usertxt .= $row["username"];

                                if ($row["level"] == "admin") $usertxt .= pic("icon_admin.gif");
                                elseif ($row["level"] == "premium") $usertxt .= pic("icon_premium.gif");

                                $usertxt .= "
";
                        } else {
                                $usertxt = pic("noavatar.png");
                                $usertxt.= "".$ip;
                        }
                        echo $usertxt;
                        echo "

\n";
                        echo "
\n";

                $db->sql_freeresult($res);
        CloseTable();
}
                ob_end_flush();
$db->sql_close();
die();


Krypto 15th December 2008 09:28

Thanks Joe:drink:


All times are GMT +2. The time now is 16:31.

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