Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   TorrentStrike theme engine to TBdev (http://www.bvlist.com/showthread.php?t=170)

\n");

while (list($code, $url) = each($smilies))
print("\n");

end_table();

end_frame();
}
then drop the stylesheets table from your database and replace it with this

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;

Insert these into stylesheets (you can add any of below if you dont want all 3 but make sure to make your default theme id 1)

Code:

INSERT INTO stylesheets VALUES (1,'ICGstation','ICGstation theme');
INSERT INTO stylesheets VALUES (2,'default','(default)');
INSERT INTO stylesheets VALUES (3,'large','Large text');

then create a folder in your root and call it "themes"
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
Kotafi 8th February 2008 14:18

TorrentStrike theme engine to TBdev
 
1 Attachment(s)
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];
}
?>

<?= $title ?>














[img]logo.gif[/img]


https://www.paypal.com/en_US/i/btn/x-click-but04.gif


$w = "width=100%";
//if ($_SERVER["REMOTE_ADDR"] == $_SERVER["SERVER_ADDR"]) $w = "width=984";

?>
border="1" cellspacing="0" cellpadding="10">


























if ($unread)
{
print("

\n");
print("You have $unread new message" . ($unread > 1 ? "s" : "") . "!");
print("

\n");
}

} // stdhead

function stdfoot() {
global $pic_base_url;
print("
\n");
print("\n");
print("\n");
print("
\n");
print("\n");
}

With this

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("
\n");
print("You have $unread new message" . ($unread > 1 ? "s" : "") . "!");
print("
\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("
\n");
print("You are running under a lower class. Click here to restore.");
print("
\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");
}

Then open /include/global.php and comment out or remove following parts of code

Code:

//-------- Begins a main frame

function begin_main_frame()
{
print("" .
"
\n");
}

//-------- Ends a main frame

function end_main_frame()
{
print("
\n");
}

function begin_frame($caption = "", $center = false, $padding = 10)
{
$tdextra = "";

if ($caption)
print("

$caption

\n");

if ($center)
$tdextra .= " align=center";

print("\n");

}

function attach_frame($padding = 10)
{
print("
\n");
}

function end_frame()
{
print("
\n");
}

function begin_table($fullwidth = false, $padding = 5)
{
$width = "";

if ($fullwidth)
$width .= " width=100%";
print("\n");
}

function end_table()
{
print("
\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("
Type...To make a...
$code

sharky 9th February 2008 22:44

Re: TorrentStrike theme engine to TBdev
 
already knew this :D nice one anyway

Kotafi 10th February 2008 00:13

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 :lol:

sharky 23rd March 2008 22:54

Re: TorrentStrike theme engine to TBdev
 
can someone re-attach the themes?

Kotafi 24th March 2008 10:43

Re: TorrentStrike theme engine to TBdev
 
They are just the default themes from TorrentStrike_V0.4 :smoke:

File Re-uploaded :smile:

shasta 4th February 2012 15:51

:sos: i dont have global.php :shock:

xe84 13th May 2012 04:42

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


All times are GMT +2. The time now is 09:52.

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