Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Reply
  #1  
Old 25th January 2008, 20:21
Explorer Explorer is offline
Senior Member
 
Join Date: Jan 2008
Posts: 23
Angry Design
How insert design into TBDEV code?

TNX :oops:
Reply With Quote
  #2  
Old 25th January 2008, 21:30
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default Re: Design
do you want a new style for for TBDev source or what?
Reply With Quote
  #3  
Old 25th January 2008, 22:52
Explorer Explorer is offline
Senior Member
 
Join Date: Jan 2008
Posts: 23
Default Re: Design
that http://www.filebits.org

how?
Reply With Quote
  #4  
Old 25th January 2008, 23:40
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default Re: Design
Quote:
Originally Posted by Explorer
That was made by them ...
You have to make yourself one

Try this:

Firstly.

In bittorrent.php find:
Code:
function stdhead($title = "", $msgalert = true) {
Delete everything including:

Code:
} // stdhead
Once done paste this:
Code:
function stdhead($title = "", $msgalert = true) {
    global $CURUSER, $SITE_ONLINE, $FUNDS, $SITENAME;

  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'])?" (".GeoNor.")":'');
    else
        $title = $SITENAME .(isset($_GET['tbv'])?" (".GeoNor.")":''). " :: " . 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%>

<?php $w = "width=100%"; 

?>
<table class="cHs" width="838" border="0" align="center" cellpadding="0" cellspacing="0">

  <tr>
  <td colspan="3" class="cHs" width="838" height="145" background="pic/logo.jpg"></td>
  </tr>  
  
  <tr>
  <td colspan="3" class="cHs" height="27" background="pic/menu.jpg"><table class="clear" width: 838px; margin-top: 0px;" align="center" border="0" cellspacing="8" cellpadding="2">
  <? if($CURUSER){ ?>
  <tr>
<td align="center" class="navigation"><a href=/>Home</a> </td>
<td align="center" class="navigation"><a href=/browse.php>Browse</a> </td>
<td align="center" class="navigation"><a href=/search.php>Search</a> </td>
<td align="center" class="navigation"><a href=/upload.php>Upload</a> </td>
<td align="center" class="navigation"><a href=/my.php>Profile</a> </td>

<td align="center" class="navigation"><a href=/chat.php>Chat</a> </td>
<td align="center" class="navigation"><a href=/forums.php>Forums</a> </td>
<td align="center" class="navigation"><a href=/misc/dox.php>DOX</a> </td>
<td align="center" class="navigation"><a href=/topten.php>Top 10</a> </td>
<td align="center" class="navigation"><a href=/log.php>Log</a> </td>
<td align="center" class="navigation"><a href=/rules.php>Rules</a> </td>
<td align="center" class="navigation"><a href=/faq.php>FAQ</a> </td>
<td align="center" class="navigation"><a href=/links.php>Links</a> </td>
<td align="center" class="navigation"><a href=/staff.php>Staff</a> </td>
  </tr>
<? } else {?>
<tr><td class="cHs">
<form method="post" action="takelogin.php">
<center>
<font class=small>Username: <input type="text" size=20 name="username" />   Password: <input type="password" size=20 name="password" />   <input type="submit" value="Log in!" style="height:16px; background-color:#7d7a75;color:#FFFFFF">     Register | Rules | FAQ | Useragreement</font></center>
</form>
</td></tr>

<? } ?>
  </td></tr></table>

  </td></tr>
  
  <tr>
    <td class="cHs" background="pic/left.gif"></td>

    
<td class='cHs' align=center width=838 background="pic/backcen.gif" class=interior valign=top>

<?
if ($unread)
{

  print("<table border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style=\"padding: 10px; background-image: url(pic/back_newpm.gif)\">\n");

  print("You have $unread new message" . ($unread > 1 ? "s" : "") . "!</font>");
  print("</td></tr></table></p>\n");
}


} // stdhead
Now, find the stdfoot function:

Code:
function stdfoot() { }
and replace it with:

Code:
 
function stdfoot() { 
 global $CURUSER, $SITENAME;
	print("</center>
<td class=\"cHs\" background=\"pic/right.gif\"></td></tr><tr><th align=\"left\" valign=\"top\" scope=\"row\"><img src=\"pic/bottom1.gif\"></th><td class=\"cHs\" height=\"34\" background=\"pic/bottom2.gif\"><center>$SITENAME is Powered by <a href=\"http://www.tbdev.net\">TBDev.Net</a></center></td><td class=\"cHs\" height=\"34\" align=\"right\" valign=\"top\"><img src=\"pic/bottom3.gif\"></td></tr></table></body><html>");
}
and lastly the default.css:

Code:
body {
	font-family: Tahoma;
	font-size: 8Pt;
	background-color: #f9f6d8;
        //background: #212121 url("pic/bg.gif");  	
        color: #ffffff;
  	margin-top: 50px;
	margin-bottom: 50px;
  	padding-left: 70px;
	padding-right: 70px;
}

table {
  border-collapse: collapse;
  border: none;
   background-color: #313131; 
}

input,textarea,select {
background: #ffffff;
border: #414141 1px solid;
}

input.button {
	background: none;
	border: none;
}

table.cHs{  background: transparent;
border: none;
}

td.cHs { border: none; 

}

table.main, table.mainouter {
  background-color: #2d2d2d;
}

table.bottom {
  background: transparent;
}

h1 {
  font-size: 12pt;
}

h2 {
  font-size: 10pt;
  margin-bottom: 6px;
}

p {
	font-size: 8Pt;
}

p.sub { 
  margin-bottom: 4pt;
}

td {
	font-size: 8Pt;
	border: solid #414141 1px;
}

td.embedded {
   border: none;
   padding: 0px;
  text-align: left;
}

td.bottom {
  border: none;
}

td.heading {
  font-weight: bold;
}

td.text {
  padding: 10pt;
  text-align: left;
}

td.comment {
  padding: 10pt;
  font-size: 8Pt;
  text-align: left;
}

td.colhead {
  font-weight: bold;
  color: #ffffff;
  background-color: #414141;
}

td.rowhead {
  font-weight: bold;
  text-align: right;
  vertical-align: top;
}

td.title {
	font-size: 14pt;
}

td.navigation {
	font-weight: bold;
	font-size: 10pt;
   border: none;
}

td.clear {
  padding: 0px;
  border: 0px;
  background: transparent;
}

form {
	margin-top: 0;
	margin-bottom: 0;
}

.sublink {
	font-style: italic;
	font-size: 7pt;
	font-weight: normal;
}

font.gray
{
  color: #ACA899;
  text-decoration: none;
}

a:link, a:visited {
  text-decoration: none;
  color: #ffffff;
  /**/
}

a:hover {
  color: silver;
}

a.index {
	font-weight: bold;
}

a.sort {
	font-weight: bold;
	color: #FFFFFF;
}

a.biglink {
	font-weight: bold;
	font-size: 12pt;
}

a.altlink:link, a.altlink:visited{
	font-weight: bold;
	color: grey;
	text-decoration: none;
}

a.altlink:hover {
  text-decoration: underline;
}

a.altlink_blue:link, a.altlink_blue:visited{
	font-weight: bold;
	color: #ffffff;
	text-decoration: none;
}

a.altlink_blue:hover {
  text-decoration: underline;
}

a.altlink_green:link, a.altlink_green:visited{
	font-weight: bold;
	color: #ffffff;
	text-decoration: none;
}

a.altlink_green:hover {
  text-decoration: underline;
}

.important {
	font-weight: bold;
	font-size: 8Pt;
}

.red {
	color: #ffffff;
}

.yellow {
	color: #ffffff;
}

.sort {
  font-weight: bold;
  color: #FFFFFF;
  background-color: #ffffff;
}

.green {
	color: #000000;
}

input, select, textarea {
	font-family: tahoma;
	font-size: 8Pt;
background: #ffffff;
border: #414141 1px solid;
}

.btn {
background: #ffffff;
border: #414141 1px solid;
}

.small {
  font-size: 7pt;
}

.big {
  font-size: 10pt;
}

li {
  margin-top: 6pt;
  margin-bottom: 6pt;
}

ul {
  margin-left: 16pt;
  margin-top: 0px;
  margin-bottom: 0px;
}

This was tested on a standard TBDEV release (TBDEV.NET-12-09-05), needless to say it worked flawlessly.
Hope you liked it, any kind of comments are welcome.

For images, use the provided .zip file: [attachment=0:3fim5kbw]iloveexploit.zip[/attachment:3fim5kbw]

This way you will learn how tracker themes work
And maybe you`ll find something here:

http://www.namaraii.com/theme
Attached Files
File Type: zip iloveexploit.zip (94.3 KB, 26 views)
Reply With Quote
  #5  
Old 26th January 2008, 09:06
Explorer Explorer is offline
Senior Member
 
Join Date: Jan 2008
Posts: 23
Default Re: Design
nice.
big TNX full working :)
Reply With Quote
Reply

Tags
design

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
Sky Design kristaps Mods & Themes 3 19th August 2010 12:45
Buying Gazelle Design Viperia Sell & Buy 0 24th January 2010 23:57
Design dvdrsource.org alexxandeer Sell & Buy 1 26th November 2009 12:23
Need some one to design Abdullah Sell & Buy 1 16th August 2009 21:30
WSMYN DESIGN Skins HID Yuna Scatari Edition (YSE) 1 4th March 2009 15:43



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