|
#1
|
|||
|
|||
TorrentStrike theme engine to TBdev
With this modification You can use torrentstrike themes on tbdev tracker 8-)
Open /include/bittorrent.php and replace Code:
function stdhead($title = "", $msgalert = true) { global $CURUSER, $SITE_ONLINE, $FUNDS, $SITENAME, $pic_base_url; if (!$SITE_ONLINE) die("Site is down for maintenance, please check back again later... thanks "); header("Content-Type: text/html; charset=iso-8859-1"); //header("Pragma: No-cache"); if ($title == "") $title = $SITENAME .(isset($_GET['tbv'])?" (".TBVERSION.")":''); else $title = $SITENAME .(isset($_GET['tbv'])?" (".TBVERSION.")":''). " :: " . htmlspecialchars($title); if ($CURUSER) { $ss_a = @mysql_fetch_array(@mysql_query("select uri from stylesheets where id=" . $CURUSER["stylesheet"])); if ($ss_a) $ss_uri = $ss_a["uri"]; } if (!$ss_uri) { ($r = mysql_query("SELECT uri FROM stylesheets WHERE id=1")) or die(mysql_error()); ($a = mysql_fetch_array($r)) or die(mysql_error()); $ss_uri = $a["uri"]; } if ($msgalert && $CURUSER) { $res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or die("OopppsY!"); $arr = mysql_fetch_row($res); $unread = $arr[0]; } ?> <html><head> <title><?= $title ?></title> <link rel="stylesheet" href="<?=$ss_uri?>" type="text/css"> </head> <body> <table width=100% cellspacing=0 cellpadding=0 style='background: transparent'> <tr> <td class=clear width=49%> <!-- <table border=0 cellspacing=0 cellpadding=0 style='background: transparent'> <tr> <td class=clear> [img]<?=$pic_base_url?>star20.gif[/img] </td> <td class=clear> <font color=white>Current funds: <?=$FUNDS?></font> </td> </tr> </table> --> </td> <td class=clear> <div align=center> [img]<?=$pic_base_url?>logo.gif[/img] </div> </td> <td class=clear width=49% align=right> <a href=donate.php></a> </td> </tr></table> <?php $w = "width=100%"; //if ($_SERVER["REMOTE_ADDR"] == $_SERVER["SERVER_ADDR"]) $w = "width=984"; ?> <table class=mainouter <?=$w; ?> border="1" cellspacing="0" cellpadding="10"> <? $fn = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], "/") + 1); ?> <tr><td class=outer align=center> <table class=main width=700 cellspacing="0" cellpadding="5" border="0"> <tr> <td align="center" class="navigation"><a href=browse.php>Browse</td> <td align="center" class="navigation"><a href=upload.php>Upload</td> <? if (!$CURUSER) { ?> <td align="center" class="navigation"> Signup </td> <? } else { ?> <td align="center" class="navigation"><a href=my.php>Profile</a></td> <? } ?> <td align="center" class="navigation"><a href=forums.php>Forums</td> <td align="center" class="navigation"><a href=topten.php>Top 10</td> <td align="center" class="navigation"><a href=rules.php>Rules</td> <td align="center" class="navigation"><a href=links.php>Links</td> <td align="center" class="navigation"><a href=staff.php>Staff</a></td> </tr> </table> </td> </tr> <tr><td align=center class=outer style="padding-top: 20px; padding-bottom: 20px"> <? if ($unread) { print(" <table border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: red'>\n"); print("You have $unread new message" . ($unread > 1 ? "s" : "") . "!</font>"); print("</td></tr></table></p>\n"); } } // stdhead function stdfoot() { global $pic_base_url; print("</td></tr></table>\n"); print("<table class=bottom width=100% border=0 cellspacing=0 cellpadding=0><tr valign=top>\n"); print("<td class=bottom align=left width=49%><img src=\"{$pic_base_url}bottom_left.gif\"></td><td width=49% align=right class=bottom><img src=\"{$pic_base_url}bottom_right.gif\"></td>\n"); print("</tr></table>\n"); print("</body></html>\n"); } Code:
function stdhead($title = "", $msgalert = true) { global $CURUSER, $SITE_ONLINE, $FUNDS, $SITENAME, $BASEURL; global $ss_uri; if (!$SITE_ONLINE) die("Site is down for maintenance, please check back again later... thanks "); header("Content-Type: text/html; charset=iso-8859-1"); //header("Pragma: No-cache"); if ($title == "") $title = $SITENAME .(isset($_GET['tbv'])?" (".TBVERSION.")":''); else $title = $SITENAME .(isset($_GET['tbv'])?" (".TBVERSION.")":''). " :: " . htmlspecialchars($title); if ($CURUSER) { $ss_a = @mysql_fetch_array(@mysql_query("select uri from stylesheets where id=" . $CURUSER["stylesheet"])); if ($ss_a) $ss_uri = $ss_a["uri"]; } if (!$ss_uri) { ($r = mysql_query("SELECT uri FROM stylesheets WHERE id=1")) or die(mysql_error()); ($a = mysql_fetch_array($r)) or die(mysql_error()); $ss_uri = $a["uri"]; } if ($msgalert && $CURUSER) { $res = mysql_query("SELECT COUNT(*) FROM messages WHERE receiver=" . $CURUSER["id"] . " && unread='yes'") or die("OopppsY!"); $arr = mysql_fetch_row($res); $unread = $arr[0]; } require_once "themes/".$ss_uri."/template.php"; require_once("themes/" . $ss_uri . "/stdhead.php"); if ($unread) { print("<table border=\"0\" cellspacing=\"0\" cellpadding=\"10\"><tr><td style=\"padding: 10px; background: red\">\n"); print("<a href=\"$BASEURL/messages.php?action=viewmailbox\"><font color=\"white\">You have $unread new message" . ($unread > 1 ? "s" : "") . "!</font></a>"); print("</td></tr></table>\n"); } ////FOR TEMPORARY DEMOTION if ($CURUSER['override_class'] != 255 && $CURUSER) // Second condition needed so that this box isn't displayed for non members/logged out members. { print("<table class=\"coltable\"><tr><td>\n"); print("<a class=\"altlink\" href=\"$BASEURL/restoreclass.php\">You are running under a lower class. Click here to restore.</a>"); print("</td></tr></table>\n"); } } // stdhead function stdfoot() { global $CURUSER; global $ss_uri; if ($CURUSER) { $ss_a = @mysql_fetch_array(@mysql_query("select uri from stylesheets where id=" . $CURUSER["stylesheet"])); if ($ss_a) $ss_uri = $ss_a["uri"]; } if (!$ss_uri) { ($r = mysql_query("SELECT uri FROM stylesheets WHERE id=1")) or die(mysql_error()); ($a = mysql_fetch_array($r)) or die(mysql_error()); $ss_uri = $a["uri"]; } require_once "themes/".$ss_uri."/template.php"; require_once("themes/" . $ss_uri . "/stdfoot.php"); } Code:
//-------- Begins a main frame function begin_main_frame() { print("<table class=main width=750 border=0 cellspacing=0 cellpadding=0>" . "<tr><td class=embedded>\n"); } //-------- Ends a main frame function end_main_frame() { print("</td></tr></table>\n"); } function begin_frame($caption = "", $center = false, $padding = 10) { $tdextra = ""; if ($caption) print("<h2>$caption</h2>\n"); if ($center) $tdextra .= " align=center"; print("<table width=100% border=1 cellspacing=0 cellpadding=$padding><tr><td$tdextra>\n"); } function attach_frame($padding = 10) { print("</td></tr><tr><td style='border-top: 0px'>\n"); } function end_frame() { print("</td></tr></table>\n"); } function begin_table($fullwidth = false, $padding = 5) { $width = ""; if ($fullwidth) $width .= " width=100%"; print("<table class=main$width border=1 cellspacing=0 cellpadding=$padding>\n"); } function end_table() { print("</td></tr></table>\n"); } //-------- Inserts a smilies frame // (move to globals) function insert_smilies_frame() { global $smilies, $BASEURL, $pic_base_url; begin_frame("Smilies", true); begin_table(false, 5); print("<tr><td class=colhead>Type...</td><td class=colhead>To make a...</td></tr>\n"); while (list($code, $url) = each($smilies)) print("<tr><td>$code</td><td><img src=\"{$pic_base_url}smilies/{$url}></td>\n"); end_table(); end_frame(); } Code:
CREATE TABLE stylesheets ( id int(10) unsigned NOT NULL auto_increment, uri varchar(255) NOT NULL default '', name varchar(64) NOT NULL default '', PRIMARY KEY (id) ) TYPE=MyISAM; Code:
INSERT INTO stylesheets VALUES (1,'ICGstation','ICGstation theme'); INSERT INTO stylesheets VALUES (2,'default','(default)'); INSERT INTO stylesheets VALUES (3,'large','Large text'); now all you need to do is download the attachment themes.rar and copy the themes into your themes folder and then just edit the links to your inbox etc .. This is tested on TBDev and XTBDev ;) Originally posted by tornado2003 at TBDEV.NET |
#2
|
|||
|
|||
Re: TorrentStrike theme engine to TBdev
already knew this :D nice one anyway
|
#3
|
|||
|
|||
Re: TorrentStrike theme engine to TBdev
yep sure, np but ive noticed that not everybody on this board is active members on tbdev :smoke:
And this is very easy (lazy) way of "making design" to tbdev based tracker |
#4
|
|||
|
|||
Re: TorrentStrike theme engine to TBdev
can someone re-attach the themes?
|
#5
|
|||
|
|||
Re: TorrentStrike theme engine to TBdev
They are just the default themes from TorrentStrike_V0.4 :smoke:
File Re-uploaded :smile: |
#6
|
||||
|
||||
i dont have global.php :shock:
|
#7
|
||||
|
||||
The last TbDev 2009
Hey guys. I was wondering how can i get the TorrentStrike system to work with the last TbDev 2009.
I know there is this tutorial. But i cant find the lines in bittorrent.php Neither the file GLOBAL.PHP at all if i download from: http://www.bvlist.com/releases/4931-tbdev-2009-a.html Or if i download it from. http://www.tbdev.net/files/file/1-tb...ker-2009-final |
Tags |
engine , tbdev , theme , torrentstrike |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Urban Dirty | sammygo | Mods & Themes | 23 | 24th February 2013 11:58 |
Help For TBDev Theme | Miguika | TBDev | 1 | 28th May 2010 19:12 |
TBDev Theme | tzully | Community Cafe | 3 | 2nd April 2010 21:57 |
TBDEV-HOW TO THIS THEME | crowni | TBDev | 9 | 25th October 2009 10:23 |
i buy theme for TBDEV | mukky | Sell & Buy | 1 | 12th May 2009 16:02 |