Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 1st June 2009, 20:12
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Flash clock
you may want to edit menu options as i use my own and am too lazy to edit it to orginal setings so here is "usercp.php" after making this save in ROOT>BLOCKS
afther that upload to root FLASH folder from rar (prewiew in atachment):bubble:

PHP Code:
<?php
if (eregi("usercp.php",$_SERVER["PHP_SELF"])) die("You cannot access this file directly.");


function 
imgdescr($file,$link,$descr) {
        global 
$theme$forumbase;
        return 
"<a href=\"".$link."\"><img title=\"".$descr."\" alt=\"".$descr."\" border=\"0\" src=\"themes/".$theme."/pics/menu/".$file."\" onmouseover=\"javascript:descriptor('".addslashes($descr)."');\" onmouseout=\"javascript:descriptor('&nbsp;')\" /></a>";
}
if (
$user->user) {
        
OpenTable(_btmenu);
echo 
"<center>\n"
echo 
"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"160\" height=\"60\" id=\"clock\" align=\"middle\">\n"
echo 
"<param name=\"movie\" value=\"Flash/clock.swf\" />\n"
echo 
"<param name=\"quality\" value=\"high\" />\n"
echo 
"<param name=\"scale\" value=\"exactfit\" />\n"
echo 
"<param name=\"wmode\" value=\"transparent\" />\n"
echo 
"<param name=\"menu\" value=\"false\">\n"
echo 
"<embed src=\"Flash/clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"160\" height=\"60\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n"
echo 
"</object>\n"
echo 
"<BR>\n"
echo 
"</center>\n";
        if (
is_dir("themes/$theme/pics/menu")) {
                
$pm_img = ($has_newpm) ? "newpm.png" "pm.png";
                echo 
"<p align=\"center\">\n";
                echo 
"<span id=\"nopm_notif\">".imgdescr($pm_img,"pm.php",_btpm)."</span>"#Private messages are not available... yet
                
echo "<br />";
                echo 
imgdescr("arcade.png","games.php",_btgames);
                echo 
imgdescr("offers.png","offers.php",_bttorofferd);
                echo 
imgdescr("faq.png","faq.php",_btfaqs);
                echo 
imgdescr("logout.png","user.php?op=logout",_btlogout);
                echo 
"<br />";
                if (
$user->admin) echo imgdescr("admin.png","admin.php",_btadmin);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                echo 
"<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                echo 
"<a href=\"mytorrents.php\">"._btpersonal.htmlspecialchars($user->name)."</a><br />\n";                
                echo 
"<a href=\"pm.php\">"._btpm."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                if (
$user->admin) echo "<a href=\"admin.php\">"._btadmin."</a><br />\n";
                echo 
"<a href=\"user.php?op=logout\">"._btlogout."</a></p>\n";
        }
        echo 
"<p>&nbsp;</p>";
        
$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);
        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=\"avatars/".$avatar."\" alt=\"".$user->name."\"></b><br />";
        echo 
"<br />\n";
        print(
"<p>Seeding Bonus: <a href='mybonus.php'>".$seedbonus."</a></p>");

        
CloseTable();
} else {
        
OpenTable(_btumenu'144');
        if (
is_dir("themes/$theme/pics/menu")) {
                echo 
"<p align=\"center\">\n";
                echo 
imgdescr("home.png","index.php",_btindex);
                if (
$upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload);
                if (
file_exists("include/irc.ini")) echo imgdescr("chat.png","chat.php",_btircchat);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                if (
$upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                echo 
"</p>";
        }
        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();
}
?>
Click image for larger version

Name:	Ekranattels.png
Views:	238
Size:	569.8 KB
ID:	1418
Attached Files
File Type: rar Flash.rar (6.9 KB, 87 views)
Reply With Quote
The Following 2 Users Say Thank You to wMan For This Useful Post:
Fynnon (5th February 2010), Krypto (1st June 2009)
  #2  
Old 21st June 2009, 00:21
DarkK1d DarkK1d is offline
Senior Member
 
Join Date: Apr 2009
P2P
Posts: 20
Default
Works!
Reply With Quote
  #3  
Old 25th January 2010, 01:44
underx underx is offline
Senior Member
 
Join Date: Sep 2008
Posts: 84
Default
what's the name of that template in the screenshot ? :D
Reply With Quote
  #4  
Old 25th January 2010, 02:34
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
that was a custom theme of wolfman.
__________________
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 25th January 2010, 03:06
underx underx is offline
Senior Member
 
Join Date: Sep 2008
Posts: 84
Default
:( there is no tutorials of how to make themes for PMBT ?
Reply With Quote
  #6  
Old 31st January 2010, 01:06
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default 151 flash clocks
heres 151 more clocks to add to your Flash directory . you can make it a seperate block like below, just by open and close in a table.

PHP Code:
OpenTable("Clock");
echo 
"<center>\n";
echo 
"<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"130\" height=\"130\" id=\"clock\" align=\"middle\">\n";
echo 
"<param name=\"movie\" value=\"Flash/clock.swf\" />\n";
echo 
"<param name=\"quality\" value=\"high\" />\n";
echo 
"<param name=\"scale\" value=\"exactfit\" />\n";
echo 
"<param name=\"wmode\" value=\"transparent\" />\n";
echo 
"<param name=\"menu\" value=\"false\">\n";
echo 
"<embed src=\"Flash/clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"130\" height=\"130\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
echo 
"</object>\n";
echo 
"</center>\n";
CloseTable(); 
Code:
echo "<embed src=\"Flash/clock.swf\" quality=\"high\" scale=\"exactfit\" wmode=\"transparent\" width=\"130\" height=\"130\" name=\"clock\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n";
PHP Code:
echo "<param name=\"movie\" value=\"Flash/clock.swf\" />\n"
EDIT > clock.swf< with whichever number clock you want.

theres 151 to choose from so have fun. also you can edit some with flash editor to put your site names in.

il show you when i install my proggy.

also get a free swf viewer, easier to view on your pc.
Attached Files
File Type: rar 151 flash clock.rar (2.29 MB, 62 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

Last edited by joeroberts; 15th June 2010 at 01:09.
Reply With Quote
The Following 2 Users Say Thank You to daffy For This Useful Post:
Daz (4th February 2010), PersGiG (12th November 2010)
  #7  
Old 14th June 2010, 16:22
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
I managed to enter the clock but it shows as below
-------------------------------------------------
Click the image to open in full size.

Uploaded with ImageShack.us
--------------------------------------------------------------------
why this happens?
its size normaly is 120x60px...

Last edited by Giorgatzelos; 15th June 2010 at 17:25.
Reply With Quote
Reply

Tags
clock , flash

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
[TTrader 2] Flash Themes hack346 Mods & Themes 14 8th May 2019 22:26
TS 5.1 clock in index.php file Floppy91 Template Shares 1 6th December 2009 04:42
[TSSE 5.x] Clock plugins pepersanchez Mods & Themes 3 29th October 2009 03:17
Flash games ceausescu Community Cafe 0 27th September 2009 22:05
Flash banner Mika Template Shares 0 10th August 2008 12:51



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