Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Design (http://www.bvlist.com/showthread.php?t=137)

Explorer 25th January 2008 20:21

Design
 
How insert design into TBDEV code?

TNX :oops:

Fynnon 25th January 2008 21:30

Re: Design
 
do you want a new style for for TBDev source or what?

Explorer 25th January 2008 22:52

Re: Design
 
that http://www.filebits.org

how? :coffee:

Fynnon 25th January 2008 23:40

Re: Design
 
1 Attachment(s)
Quote:

Originally Posted by Explorer
that http://www.filebits.org

how? :coffee:

:nope: 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];
  }

?>

<?= $title ?>









?>


 
 
   
 
 
 
 
 
   

   

 
 















 




 



Username:   Password:       Register | Rules | FAQ | Useragreement




 


if ($unread)
{

  print("
\n");

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

\n");
}


} // stdhead
Now, find the stdfoot function:

Code:

function stdfoot() { }
and replace it with:

Code:


function stdfoot() {
 global $CURUSER, $SITENAME;
        print("
$SITENAME is Powered by TBDev.Net
");
}
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

Explorer 26th January 2008 09:06

Re: Design
 
nice.
big TNX full working :)


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

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