Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 17th December 2009, 19:56
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default Disable Donations
Hi, how can I disable the donations system and how can I delete the
Code:
click here to donate us
0.0%
button from the header ?
__________________

Reply With Quote
  #2  
Old 18th December 2009, 15:32
Ashur's Avatar
Ashur Ashur is offline
Senior Member
 
Join Date: Jun 2008
Posts: 523
Default
show me the header.php code for your main template you're using
__________________
Say NO to private tracking
Running TorrentHoster 2.5 on IraqiGate.org
Reply With Quote
  #3  
Old 20th December 2009, 16:43
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default
Here is my header.php
Code:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.5.3
|   ========================================
|   by xam
|   (c) 2005 - 2008 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: August 27, 2008, 10:43 pm
|   Signature Key: TSSE9882008
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
if(!defined('IN_TRACKER')) die('Hacking attempt!');
/* TS Special Edition Default Template by xam */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.3)" />
<meta name="generator" content="<?php echo $title; ?>" />
<meta name="revisit-after" content="3 days" />
<meta name="robots" content="index, follow" />
<meta name="description" content="<?php echo $metadesc; ?>" />
<meta name="keywords" content="<?php echo $metakeywords; ?>" />
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="<?php echo $BASEURL; ?>/include/templates/<?php echo $defaulttemplate; ?>/style/style.css" type="text/css" media="screen" />
<?php echo $includeCSS; ?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo $BASEURL; ?>/rss.php" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php echo $BASEURL; ?>/rss.php" />
<link rel="shortcut icon" href="<?php echo $BASEURL; ?>/favicon.ico" type="image/x-icon" />
<script type="text/javascript">
	var sitename="<?php echo htmlspecialchars_uni($SITENAME); ?>"
	var baseurl="<?php echo htmlspecialchars_uni($BASEURL); ?>"
	var dimagedir="<?php echo $BASEURL; ?>/<?php echo $pic_base_url; ?>"
	var imagedir = "<?php echo $BASEURL; ?>/include/templates/<?php echo $defaulttemplate; ?>/images/";
	var cssdir = "<?php echo $BASEURL; ?>/include/templates/<?php echo $defaulttemplate; ?>/style/";
	var charset="<?php echo $charset; ?>"
	var defaulttemplate="<?php echo $defaulttemplate; ?>"
	var autorefreshtime="<?php echo $autorefreshtime; ?>"
	var requesturl="<?php echo fix_url($_SERVER['REQUEST_URI']); ?>"
	var invites="<?php echo ($CURUSER ? (int)$CURUSER['invites'] : 'Login First'); ?>"
	var bonus="<?php echo ($CURUSER ? (int)$CURUSER['seedbonus'] : 'Login First'); ?>"
	var username="<?php echo ($CURUSER ? $CURUSER['username'] : 'Guest'); ?>"
	var userid="<?php echo ($CURUSER ? (int)$CURUSER['id'] : 'Guest_'.rand(1000, 9999)); ?>"
	var userip="<?php echo htmlspecialchars_uni($_SERVER['REMOTE_ADDR']); ?>"
</script>
<?php
$lang->load('scripts');
?>
<script type="text/javascript">
	var TimezoneOffset = <?php echo $ts_tzoffset; ?>;  // adjust for time zone
</script>
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/ncode_imageresizer.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<script type="text/javascript">
<!--
	NcodeImageResizer.MODE = 'floatbox';
	NcodeImageResizer.MAXWIDTH = 600;
	NcodeImageResizer.MAXHEIGHT = 800;
	NcodeImageResizer.MAXWIDTHSIGS = 400;
	NcodeImageResizer.MAXHEIGHTSIGS = 200;
	NcodeImageResizer.BBURL = '<?php echo $BASEURL; ?>';
//-->
</script>
<style type="text/css">
	.ncode_imageresizer_warning
	{
		display: none;
	}
</style>
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/floatbox/floatbox.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<link rel="stylesheet" href="<?php echo $BASEURL; ?>/scripts/floatbox/floatbox.css<?php echo '?v='.O_SCRIPT_VERSION; ?>" type="text/css" media="screen" />
<script type="text/javascript">
<!--
  function setFloatboxOptions()
  {
    fb.resizeDuration = 2.5;
    fb.imageFadeDuration = 2.5;
    fb.overlayFadeDuration = 0;
    fb.navType = 'both';
  };
//-->
</script>
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/main.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/preview.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/ts_clock.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<?php
echo $includescripts.$includescripts2.'
</head>
<body onload="show_ts_clock()">
<div class="content">
	<div id="top">
		<div style="float: left; color:fff; padding: 20px 25px 0 40px; position:relative;" id="showTSclock"></div>
		<div class="padding" align="center">';
if ($CURUSER) {
?>
	<span>
		<?php echo $lang->global['welcomeback']; ?> <a href="<?php echo $BASEURL?>/userdetails.php?id=<?php echo $CURUSER['id']; ?>"><?php echo get_user_color($CURUSER['username'],$usergroups['namestyle'],true); ?></a> <?$medaldon?> <?$warn?> (<?php echo htmlspecialchars_uni($CURUSER['ip']); ?>) <a href="<?php echo $BASEURL?>/logout.php?logouthash=<?php echo $_SESSION['hash']; ?>" onclick="return log_out()"><?php echo $lang->global['logout']; ?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;

		<span>
		<?php echo $lang->global['ratio']; ?> <?php echo $ratio?>&nbsp;&nbsp;<?php echo $lang->global['bonus']; ?> <a href="<?php echo $BASEURL?>/mybonus.php"><?php echo number_format($CURUSER['seedbonus'], 1)?></a>&nbsp;&nbsp;<?php echo maxslots().$lang->global['uploaded']; ?> <font color="green"><?php echo mksize($CURUSER['uploaded'])?></font>&nbsp;&nbsp;<?php echo $lang->global['downloaded']; ?> <font color="red"><?php echo mksize($CURUSER['downloaded'])?></font></span>&nbsp;&nbsp;&nbsp;&nbsp;

<?php
	echo ($inboxpic ? '<a href="'.$BASEURL.'/messages.php">'.$inboxpic.'</a>' : '').'
	<a href="'.$BASEURL.'/friends.php"><img border="0" alt="'.$lang->header['extrafriends'].'" title="'.$lang->header['extrafriends'].'" src="'.$BASEURL.'/'.$pic_base_url.'buddylist.gif" /></a>
	<a href="'.$BASEURL.'/users.php"><img border="0" alt="'.$lang->header['extramembers'].'" title="'.$lang->header['extramembers'].'" src="'.$BASEURL.'/'.$pic_base_url.'userlist.gif" /></a>
	<a href="'.$BASEURL.'/getrss.php"><img border="0" alt="'.$lang->header['extrarssfeed'].'" title="'.$lang->header['extrarssfeed'].'" src="'.$BASEURL.'/'.$pic_base_url.'rss.gif" width="11" height="12" /></a>';
}else{
?>
	<a href="<?php echo $BASEURL; ?>/login.php"><?php echo $lang->header['login']; ?></a> | <a href="<?php echo $BASEURL; ?>/signup.php"><?php echo $lang->header['register']; ?></a> | <?php echo $lang->header['recoverpassword']; ?> <a href="<?php echo $BASEURL; ?>/recover.php"><?php echo $lang->header['viaemail']; ?></a> | <a href="<?php echo $BASEURL; ?>/recoverhint.php"><?php echo $lang->header['viaquestion']; ?></a>
<?php
}
echo '
</div>
</div>
<div id="header">
<div class="f_search">';
$dirlist = '';
$link = 0;
foreach (dir_list(INC_PATH.'/languages') as $language)
{
	if ($link && $link % 4 == 0)
		$dirlist .= '<br />';
	$dirlist .= '
	<a href="'.$BASEURL.'/set_language.php?language='.$language.'&redirect=yes"><img src="'.$BASEURL.'/include/languages/'.$language.'/flag/flag.gif" alt="'.$language.'" title="'.$language.'" width="32" height="20" border="0" /></a>&nbsp;';
	++$link;
}
$Progress_so_far = ($Progress_so_far >= 100 ? '100' : number_format($Progress_so_far, 1));
echo '<div id="donation"><font class="small"><a href="'.$BASEURL.'/donate.php" onclick="window.open(\''.$BASEURL.'/scripts/pbar/ts_donation_status.php\',\'ts_donation_status\',\'toolbar=no, scrollbars=no, resizable=no, width=600, height=300, top=250, left=250\'); return false;">'.$lang->header['donate'].'</a></font><div style="width: 80px; border: 1px solid black; text-align: left; background: #376088 repeat;"><div style="padding-left: 0px; color: white; font-weight: bold; width: '.$Progress_so_far.'%; border: 0px solid black; font-size: 8pt; background: #4A81B6 repeat;">&nbsp;'.number_format($Progress_so_far, 1).'%'.($Progress_so_far >= 100 ? '&nbsp;<font class="small">'.$lang->header['thanks'].'</font>' : '').'</div></div></div>';
?>
</div>
<div class="title">
<h1 align="right"><a href="<?=$BASEURL;?>"><font color="#ffffff"><?=$SITENAME;?></font></a></h1>
<h6 align="right"><font color="#ffffff"><?=$slogan;?></font></h6>
<h6 align="right"><font color="#ffffff">Languages</font></h6>
<div align="right"><?php echo ($link > 0 ? $dirlist : '' ); ?>
</div>
</div>
</div>
<div id="subheader">
<div id="menu">
<script type="text/javascript" src="<?php echo $BASEURL; ?>/scripts/dropdown.js<?php echo '?v='.O_SCRIPT_VERSION; ?>"></script>
<ul>
<li class="page_item"><a href="<?php echo $BASEURL; ?>"><?php echo $lang->global['home']; ?></a></li>
<?php if ($CURUSER) { ?>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu4, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['forums']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu5, '150px')" onmouseout="delayhidemenu()"><font color="yellow"><?php echo $lang->global['browse']; ?></font></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu6, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['requests']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu12, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['upload']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu7, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['usercp']; ?></a></li>

	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu8, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['top10']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu9, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['help']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu11, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['extra']; ?></a></li>
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu10, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['staff']; ?></a></li>
<?php
	if ($usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] != 'yes')
	{
		echo '<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu1, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
	}
	elseif ($usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] == 'yes')
	{
		echo '<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu2, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
	}
	elseif ($usergroups['cansettingspanel'] == 'yes')
	{
		echo '<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu3, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
	}
}
else
{
	echo '
	<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu9, \'150px\')" onmouseout="delayhidemenu()">'.$lang->global['help'].'</a></li>
	<li class="page_item"><a href="ts_tags.php"><script type="text/javascript">document.write(l_searchcloud)</script></a></li>';
}
echo '
	</ul>
	</div>
	</div>
	<div id="main">
	<div class="left_side">
';

if ($offlinemsg)
	$warnmessages[] = sprintf($lang->header['trackeroffline'], $BASEURL);

if (!$__ismod && $CURUSER && $CURUSER['donoruntil'] != '0000-00-00 00:00:00' && warn_donor(strtotime($CURUSER['donoruntil']) - gmtime()))
{
	require_once(INC_PATH.'/functions_mkprettytime.php');
	$warnmessages[] = sprintf($lang->header['warndonor'], $BASEURL, mkprettytime(strtotime($CURUSER['donoruntil']) - gmtime()));
}

if($CURUSER['downloaded'] > 0 && $CURUSER['leechwarn'] == 'yes')
{
	include_once(INC_PATH.'/readconfig_cleanup.php');
	require_once(INC_PATH.'/functions_mkprettytime.php');
	$warnmessages[] = sprintf($lang->header['warned'], $leechwarn_remove_ratio, mkprettytime(strtotime($CURUSER['leechwarnuntil']) - gmtime()));
}
if ($CURUSER && $CURUSER['announce_read'] == 'no')
	$infomessages[] = '<span id="new_ann" style="display: block;"><a href="'.$BASEURL.'/clear_ann.php" title="" rel="iframe.1" rev="width:650 height:350 scrolling:yes">'.$lang->header['newann'].'</a></span>';

if ($CURUSER['newmessage'] && $msgalert)
	$infomessages[] = '<a href="'.$BASEURL.'/messages.php">'.$lang->header['newmessage'].'</a>';

if ($nummessages > 0)
	$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=staffbox">'.sprintf($lang->header['staffmess'], $nummessages).'</a>';

if ($numreports > 0)
	$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=reports">'.sprintf($lang->header['newreport'], $numreports).'</a>';

if (isset($warnmessages))
{
	echo show_notice(implode('<br />',$warnmessages), true);
	unset($warnmessages);
}

if (isset($infomessages))
{
	echo show_notice(implode('<br />',$infomessages));
	unset($infomessages);
}

if (($ads = @file_get_contents(TSDIR.'/admin/ads.txt')) && !defined('DISABLE_ADS'))
{
	$str  = '<table class="main" border="1" cellspacing="0" cellpadding="0" width="100%"><tr><td class="text">';
	if (strstr($ads, '[TS_ADS]'))
	{
		$ts_ads_count = explode('[TS_ADS]', $ads);
		$random_ts_ads = rand(0, (sizeof($ts_ads_count) -1));
		$str .= $ts_ads_count[$random_ts_ads];
	}
	else
		$str .= $ads;
	$str .= '</td></tr></table><br />';
	echo $str;
	unset($ads, $str);
}
?>
__________________

Reply With Quote
  #4  
Old 20th December 2009, 17:30
Daz's Avatar
Daz Daz is offline
Senior Member
 
Join Date: Dec 2009
United Kingdom
Posts: 124
Default
PHP Code:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.5.3
|   ========================================
|   by xam
|   (c) 2005 - 2008 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: August 27, 2008, 10:43 pm
|   Signature Key: TSSE9882008
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
if(!defined('IN_TRACKER')) die('Hacking attempt!');
/* TS Special Edition Default Template by xam */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset?>" />
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.3)" />
<meta name="generator" content="<?php echo $title?>" />
<meta name="revisit-after" content="3 days" />
<meta name="robots" content="index, follow" />
<meta name="description" content="<?php echo $metadesc?>" />
<meta name="keywords" content="<?php echo $metakeywords?>" />
<title><?php echo $title?></title>
<link rel="stylesheet" href="<?php echo $BASEURL?>/include/templates/<?php echo $defaulttemplate?>/style/style.css" type="text/css" media="screen" />
<?php echo $includeCSS?>
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo $BASEURL?>/rss.php" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php echo $BASEURL?>/rss.php" />
<link rel="shortcut icon" href="<?php echo $BASEURL?>/favicon.ico" type="image/x-icon" />
<script type="text/javascript">
    var sitename="<?php echo htmlspecialchars_uni($SITENAME); ?>"
    var baseurl="<?php echo htmlspecialchars_uni($BASEURL); ?>"
    var dimagedir="<?php echo $BASEURL?>/<?php echo $pic_base_url?>"
    var imagedir = "<?php echo $BASEURL?>/include/templates/<?php echo $defaulttemplate?>/images/";
    var cssdir = "<?php echo $BASEURL?>/include/templates/<?php echo $defaulttemplate?>/style/";
    var charset="<?php echo $charset?>"
    var defaulttemplate="<?php echo $defaulttemplate?>"
    var autorefreshtime="<?php echo $autorefreshtime?>"
    var requesturl="<?php echo fix_url($_SERVER['REQUEST_URI']); ?>"
    var invites="<?php echo ($CURUSER ? (int)$CURUSER['invites'] : 'Login First'); ?>"
    var bonus="<?php echo ($CURUSER ? (int)$CURUSER['seedbonus'] : 'Login First'); ?>"
    var username="<?php echo ($CURUSER $CURUSER['username'] : 'Guest'); ?>"
    var userid="<?php echo ($CURUSER ? (int)$CURUSER['id'] : 'Guest_'.rand(10009999)); ?>"
    var userip="<?php echo htmlspecialchars_uni($_SERVER['REMOTE_ADDR']); ?>"
</script>
<?php
$lang
->load('scripts');
?>
<script type="text/javascript">
    var TimezoneOffset = <?php echo $ts_tzoffset?>;  // adjust for time zone
</script>
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/ncode_imageresizer.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<script type="text/javascript">
<!--
    NcodeImageResizer.MODE = 'floatbox';
    NcodeImageResizer.MAXWIDTH = 600;
    NcodeImageResizer.MAXHEIGHT = 800;
    NcodeImageResizer.MAXWIDTHSIGS = 400;
    NcodeImageResizer.MAXHEIGHTSIGS = 200;
    NcodeImageResizer.BBURL = '<?php echo $BASEURL?>';
//-->
</script>
<style type="text/css">
    .ncode_imageresizer_warning
    {
        display: none;
    }
</style>
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/floatbox/floatbox.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<link rel="stylesheet" href="<?php echo $BASEURL?>/scripts/floatbox/floatbox.css<?php echo '?v='.O_SCRIPT_VERSION?>" type="text/css" media="screen" />
<script type="text/javascript">
<!--
  function setFloatboxOptions()
  {
    fb.resizeDuration = 2.5;
    fb.imageFadeDuration = 2.5;
    fb.overlayFadeDuration = 0;
    fb.navType = 'both';
  };
//-->
</script>
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/main.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/preview.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/ts_clock.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<?php
echo $includescripts.$includescripts2.'
</head>
<body onload="show_ts_clock()">
<div class="content">
    <div id="top">
        <div style="float: left; color:fff; padding: 20px 25px 0 40px; position:relative;" id="showTSclock"></div>
        <div class="padding" align="center">'
;
if (
$CURUSER) {
?>
    <span>
        <?php echo $lang->global['welcomeback']; ?> <a href="<?php echo $BASEURL?>/userdetails.php?id=<?php echo $CURUSER['id']; ?>"><?php echo get_user_color($CURUSER['username'],$usergroups['namestyle'],true); ?></a> <?$medaldon?> <?$warn?> (<?php echo htmlspecialchars_uni($CURUSER['ip']); ?>) <a href="<?php echo $BASEURL?>/logout.php?logouthash=<?php echo $_SESSION['hash']; ?>" onclick="return log_out()"><?php echo $lang->global['logout']; ?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;

        <span>
        <?php echo $lang->global['ratio']; ?> <?php echo $ratio?>&nbsp;&nbsp;<?php echo $lang->global['bonus']; ?> <a href="<?php echo $BASEURL?>/mybonus.php"><?php echo number_format($CURUSER['seedbonus'], 1)?></a>&nbsp;&nbsp;<?php echo maxslots().$lang->global['uploaded']; ?> <font color="green"><?php echo mksize($CURUSER['uploaded'])?></font>&nbsp;&nbsp;<?php echo $lang->global['downloaded']; ?> <font color="red"><?php echo mksize($CURUSER['downloaded'])?></font></span>&nbsp;&nbsp;&nbsp;&nbsp;

<?php
    
echo ($inboxpic '<a href="'.$BASEURL.'/messages.php">'.$inboxpic.'</a>' '').'
    <a href="'
.$BASEURL.'/friends.php"><img border="0" alt="'.$lang->header['extrafriends'].'" title="'.$lang->header['extrafriends'].'" src="'.$BASEURL.'/'.$pic_base_url.'buddylist.gif" /></a>
    <a href="'
.$BASEURL.'/users.php"><img border="0" alt="'.$lang->header['extramembers'].'" title="'.$lang->header['extramembers'].'" src="'.$BASEURL.'/'.$pic_base_url.'userlist.gif" /></a>
    <a href="'
.$BASEURL.'/getrss.php"><img border="0" alt="'.$lang->header['extrarssfeed'].'" title="'.$lang->header['extrarssfeed'].'" src="'.$BASEURL.'/'.$pic_base_url.'rss.gif" width="11" height="12" /></a>';
}else{
?>
    <a href="<?php echo $BASEURL?>/login.php"><?php echo $lang->header['login']; ?></a> | <a href="<?php echo $BASEURL?>/signup.php"><?php echo $lang->header['register']; ?></a> | <?php echo $lang->header['recoverpassword']; ?> <a href="<?php echo $BASEURL?>/recover.php"><?php echo $lang->header['viaemail']; ?></a> | <a href="<?php echo $BASEURL?>/recoverhint.php"><?php echo $lang->header['viaquestion']; ?></a>
<?php
}
echo 
'
</div>
</div>
<div id="header">
<div class="f_search">'
;
$dirlist '';
$link 0;
foreach (
dir_list(INC_PATH.'/languages') as $language)
{
    if (
$link && $link == 0)
        
$dirlist .= '<br />';
    
$dirlist .= '
    <a href="'
.$BASEURL.'/set_language.php?language='.$language.'&redirect=yes"><img src="'.$BASEURL.'/include/languages/'.$language.'/flag/flag.gif" alt="'.$language.'" title="'.$language.'" width="32" height="20" border="0" /></a>&nbsp;';
    ++
$link;
}
/*
$Progress_so_far = ($Progress_so_far >= 100 ? '100' : number_format($Progress_so_far, 1));
echo '<div id="donation"><font class="small"><a href="'.$BASEURL.'/donate.php" onclick="window.open(\''.$BASEURL.'/scripts/pbar/ts_donation_status.php\',\'ts_donation_status\',\'toolbar=no, scrollbars=no, resizable=no, width=600, height=300, top=250, left=250\'); return false;">'.$lang->header['donate'].'</a></font><div style="width: 80px; border: 1px solid black; text-align: left; background: #376088 repeat;"><div style="padding-left: 0px; color: white; font-weight: bold; width: '.$Progress_so_far.'%; border: 0px solid black; font-size: 8pt; background: #4A81B6 repeat;">&nbsp;'.number_format($Progress_so_far, 1).'%'.($Progress_so_far >= 100 ? '&nbsp;<font class="small">'.$lang->header['thanks'].'</font>' : '').'</div></div></div>';
*/
?>
</div>
<div class="title">
<h1 align="right"><a href="<?=$BASEURL;?>"><font color="#ffffff"><?=$SITENAME;?></font></a></h1>
<h6 align="right"><font color="#ffffff"><?=$slogan;?></font></h6>
<h6 align="right"><font color="#ffffff">Languages</font></h6>
<div align="right"><?php echo ($link $dirlist '' ); ?>
</div>
</div>
</div>
<div id="subheader">
<div id="menu">
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/dropdown.js<?php echo '?v='.O_SCRIPT_VERSION?>"></script>
<ul>
<li class="page_item"><a href="<?php echo $BASEURL?>"><?php echo $lang->global['home']; ?></a></li>
<?php if ($CURUSER) { ?>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu4, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['forums']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu5, '150px')" onmouseout="delayhidemenu()"><font color="yellow"><?php echo $lang->global['browse']; ?></font></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu6, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['requests']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu12, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['upload']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu7, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['usercp']; ?></a></li>

    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu8, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['top10']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu9, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['help']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu11, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['extra']; ?></a></li>
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu10, '150px')" onmouseout="delayhidemenu()"><?php echo $lang->global['staff']; ?></a></li>
<?php
    
if ($usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] != 'yes')
    {
        echo 
'<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu1, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
    }
    elseif (
$usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] == 'yes')
    {
        echo 
'<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu2, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
    }
    elseif (
$usergroups['cansettingspanel'] == 'yes')
    {
        echo 
'<li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu3, \'150px\')" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
    }
}
else
{
    echo 
'
    <li class="page_item"><a href="#top" onclick="return clickreturnvalue()" onmouseover="dropdownmenu(this, event,menu9, \'150px\')" onmouseout="delayhidemenu()">'
.$lang->global['help'].'</a></li>
    <li class="page_item"><a href="ts_tags.php"><script type="text/javascript">document.write(l_searchcloud)</script></a></li>'
;
}
echo 
'
    </ul>
    </div>
    </div>
    <div id="main">
    <div class="left_side">
'
;

if (
$offlinemsg)
    
$warnmessages[] = sprintf($lang->header['trackeroffline'], $BASEURL);

if (!
$__ismod && $CURUSER && $CURUSER['donoruntil'] != '0000-00-00 00:00:00' && warn_donor(strtotime($CURUSER['donoruntil']) - gmtime()))
{
    require_once(
INC_PATH.'/functions_mkprettytime.php');
    
$warnmessages[] = sprintf($lang->header['warndonor'], $BASEURLmkprettytime(strtotime($CURUSER['donoruntil']) - gmtime()));
}

if(
$CURUSER['downloaded'] > && $CURUSER['leechwarn'] == 'yes')
{
    include_once(
INC_PATH.'/readconfig_cleanup.php');
    require_once(
INC_PATH.'/functions_mkprettytime.php');
    
$warnmessages[] = sprintf($lang->header['warned'], $leechwarn_remove_ratiomkprettytime(strtotime($CURUSER['leechwarnuntil']) - gmtime()));
}
if (
$CURUSER && $CURUSER['announce_read'] == 'no')
    
$infomessages[] = '<span id="new_ann" style="display: block;"><a href="'.$BASEURL.'/clear_ann.php" title="" rel="iframe.1" rev="width:650 height:350 scrolling:yes">'.$lang->header['newann'].'</a></span>';

if (
$CURUSER['newmessage'] && $msgalert)
    
$infomessages[] = '<a href="'.$BASEURL.'/messages.php">'.$lang->header['newmessage'].'</a>';

if (
$nummessages 0)
    
$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=staffbox">'.sprintf($lang->header['staffmess'], $nummessages).'</a>';

if (
$numreports 0)
    
$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=reports">'.sprintf($lang->header['newreport'], $numreports).'</a>';

if (isset(
$warnmessages))
{
    echo 
show_notice(implode('<br />',$warnmessages), true);
    unset(
$warnmessages);
}

if (isset(
$infomessages))
{
    echo 
show_notice(implode('<br />',$infomessages));
    unset(
$infomessages);
}

if ((
$ads = @file_get_contents(TSDIR.'/admin/ads.txt')) && !defined('DISABLE_ADS'))
{
    
$str  '<table class="main" border="1" cellspacing="0" cellpadding="0" width="100%"><tr><td class="text">';
    if (
strstr($ads'[TS_ADS]'))
    {
        
$ts_ads_count explode('[TS_ADS]'$ads);
        
$random_ts_ads rand(0, (sizeof($ts_ads_count) -1));
        
$str .= $ts_ads_count[$random_ts_ads];
    }
    else
        
$str .= $ads;
    
$str .= '</td></tr></table><br />';
    echo 
$str;
    unset(
$ads$str);
}
?>
should work..
Reply With Quote
  #5  
Old 20th December 2009, 17:38
lovebeer's Avatar
lovebeer lovebeer is offline
Senior Member
 
Join Date: May 2009
Romania
Posts: 91
Default
Thanks m8
__________________

Reply With Quote
  #6  
Old 6th May 2011, 20:41
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
In every theme you have on site ok you will have to remove it fron the header php now go in to server host via your pc downlod them with what ever your using so on when you have done this edit header.php file remove it from there it will be under the menu links there you will see it be carefull what you do on edit there

Ok to removd the donation links from the header of the themes you have you will have to do this to all of tbem ,then you will have ,clean headers with no links in them ,ok go into header remove the lines back space them ok lines 118,119,120,122,123,124,125,126,130,131, and all links gone And to rememder to save php when all links have been back space off
Reply With Quote
  #7  
Old 15th May 2011, 02:02
SENSE92 SENSE92 is offline
Member
 
Join Date: May 2011
Sweden
Posts: 2
Default
Hi new here and i also would like to remove the donation bar from the header.
I use Templateshares 4.3 default theme.

This is my header.php

PHP Code:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.4.3
|   ========================================
|   by xam
|   (c) 2005 - 2007 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: April 23, 2008, 7:23 am
|   Signature Key: TSSE00282008
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
if(!defined('IN_TRACKER'))
  die(
'Hacking attempt!');
/* TS Special Edition Default Template by xam */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><?=$title;?></title>
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.3)" />
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset;?>" />
<meta name="generator" content="<?=$title;?>" />
<meta name="revisit-after" content="3 days" />
<meta name="robots" content="index, follow" />
<meta name="description" content="<?=$metadesc;?>" />
<meta name="keywords" content="<?=$metakeywords;?>" />
<link rel="stylesheet" href="<?=$BASEURL;?>/include/templates/<?=$defaulttemplate;?>/style/style.css" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?=$BASEURL;?>/rss.php" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?=$BASEURL;?>/rss.php" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<script type="text/javascript">
var sitename="<?=htmlspecialchars_uni($SITENAME);?>"
var baseurl="<?=htmlspecialchars_uni($BASEURL);?>"
var dimagedir="<?=$BASEURL;?>/<?=$pic_base_url;?>"
var imagedir = "<?=$BASEURL;?>/include/templates/<?=$defaulttemplate;?>/images/";
var cssdir = "<?=$BASEURL;?>/include/templates/<?=$defaulttemplate;?>/style/";
var charset="<?=$charset;?>"
var defaulttemplate="<?=$defaulttemplate;?>"
var autorefreshtime="<?=$autorefreshtime;?>"
var requesturl="<?=fix_url($_SERVER['REQUEST_URI']);?>"
var invites="<?=($CURUSER ? (int)$CURUSER['invites'] : 'Login First');?>"
var bonus="<?=($CURUSER ? (int)$CURUSER['seedbonus'] : 'Login First');?>"
var username="<?=($CURUSER $CURUSER['username'] : 'Guest');?>"
var userid="<?=($CURUSER ? (int)$CURUSER['id'] : 'Guest_'.rand(10009999));?>"
var userip="<?=htmlspecialchars_uni($_SERVER['REMOTE_ADDR']);?>"
</script>
<?php
$lang
->load('scripts');
?>
<script type="text/javascript" src="<?=$BASEURL;?>/scripts/java_klappe.js"></script>
<script type="text/javascript" src="<?=$BASEURL;?>/scripts/ncode_imageresizer.js"></script>
<script type="text/javascript" src="<?=$BASEURL;?>/scripts/main.js"></script>
<script type="text/javascript">
    function show_ts_clock()
    {
        var TimezoneOffset = <?php echo $ts_tzoffset?>;  // adjust for time zone
        var localTime = new Date();
        var ms = localTime.getTime() 
                 + (localTime.getTimezoneOffset() * 60000)
                 + TimezoneOffset * 3600000;

        var time = new Date(ms)
        var hour = time.getHours()
        var minute = time.getMinutes()
        var second = time.getSeconds()
        var temp = ((hour < 10) ? "0" : "") + hour
        temp += ((minute < 10) ? ":0" : ":") + minute
        temp += ((second < 10) ? ":0" : ":") + second
        document.getElementById('showTSclock').innerHTML=temp;
        id = setTimeout("show_ts_clock()",1000)
     };
</SCRIPT>
<?php
echo $includescripts;
echo 
'
</head>
<body onload="show_ts_clock()">'
;

if (
$CURUSER && $CURUSER['announce_read'] == 'no' && $new_announcement) {
?>
    <!-- announcement start #<?=$aid;?> -->
        <div id="dropin" style="position:absolute; display:none; left:300px; top:100px; width:500px; height:100px;">
            <table border="0" cellpadding="5" cellspacing="5" width="650">
                <tbody>
                    <tr>
                        <td class="subheader">
                            <span style="float: right;"><a href="#top" onClick="dismissbox();return false"><img src="<?=$BASEURL;?>/<?=$pic_base_url;?>close.jpg" border="0"></a></span><strong><?=$lang->header['anntitle'];?> <?=$an_subject;?> -- <?=$lang->header['anncreated'];?> <?=$an_added;?> -- <?=$lang->header['annby'];?> <?=$an_by;?></strong>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <?=format_comment($an_message);?>
                            <hr>
                            <span name="preview" id="previewr" style="float: right;"><strong><?=sprintf($lang->header['annclose'], '<a href="#top" onclick="javascript:clearannouncement(this.parentNode,\''.$BASEURL.'/clear_ann.php\')">');?></strong> 
                            <span id="loading" style="display: none;"><img src="<?=$BASEURL;?>/tsf_forums/images/spinner.gif" border="0" class="inlineimg"> <?=$lang->global['pleasewait'];?></span></span>
                        </td>
                    </tr>
                </tbody>
            </table>        
        </div>
    <!-- announcement end #<?=$aid;?>-->
<?php
}
echo 
$includescripts2;
echo 
'
<div class="content">
    <div id="top">
        <div style="float: left; color:fff; padding: 20px 25px 0 40px; position:relative;" id="showTSclock"></div>
        <div class="padding" align="center">'
;
if (
$CURUSER) {
?>
    <span>
        <?=$lang->global['welcomeback'];?> <a href="<?=$BASEURL?>/userdetails.php?id=<?=$CURUSER['id'];?>"><?=get_user_color($CURUSER['username'],$usergroups['namestyle'],true);?></a> <?$medaldon?> <?$warn?> (<?=htmlspecialchars_uni($CURUSER['ip']);?>) <a href="<?=$BASEURL?>/logout.php?logouthash=<?=$_SESSION['hash'];?>" onclick="return log_out()"><?=$lang->global['logout'];?></a></span>&nbsp;&nbsp;&nbsp;&nbsp;
        
        <span>
        <?=$lang->global['ratio'];?> <?=$ratio?>&nbsp;&nbsp;<?=$lang->global['bonus'];?> <a href="<?=$BASEURL?>/mybonus.php"><?=number_format($CURUSER['seedbonus'], 1)?></a>&nbsp;&nbsp;<?php echo maxslots().$lang->global['uploaded']; ?> <font color="green"><?=mksize($CURUSER['uploaded'])?></font>&nbsp;&nbsp;<?=$lang->global['downloaded'];?> <font color="red"><?=mksize($CURUSER['downloaded'])?></font></span>&nbsp;&nbsp;&nbsp;&nbsp;
    
<?php
    
if ($inboxpic)
        print(
"<a href='$BASEURL/messages.php'>$inboxpic</a>");
    print(
" <a href='$BASEURL/friends.php'><img style='border:none' alt='".$lang->header['extrafriends']."' title='".$lang->header['extrafriends']."' src='".$rootpath.$pic_base_url."buddylist.gif' /></a>");
    print(
" <a href='$BASEURL/users.php'><img style='border:none' alt='".$lang->header['extramembers']."' title='".$lang->header['extramembers']."' src='".$rootpath.$pic_base_url."userlist.gif' /></a>");
    print(
" <a href='$BASEURL/getrss.php'><img style='border:none' alt='".$lang->header['extrarssfeed']."' title='".$lang->header['extrarssfeed']."' src='".$rootpath.$pic_base_url."rss.gif' width='11' height='12' /></a>");
}else{
?>
    <a href="<?=$BASEURL;?>/login.php"><?=$lang->header['login'];?></a> | <a href="<?=$BASEURL;?>/signup.php"><?=$lang->header['register'];?></a> | <?=$lang->header['recoverpassword'];?> <a href="<?=$BASEURL;?>/recover.php"><?=$lang->header['viaemail'];?></a> | <a href="<?=$BASEURL;?>/recoverhint.php"><?=$lang->header['viaquestion'];?></a>
<?php
}
echo 
'
</div>
</div>
<div id="header">
<div class="f_search">'
;
$language_dirs =  dir_list(INC_PATH.'/languages');
$dirlist '';
$link 0;
foreach (
$language_dirs as $language) {    
    if (
$link && $link == 0)
        
$dirlist .= '<br />';
    
$dirlist .= '
    <a href="'
.$BASEURL.'/set_language.php?language='.$language.'&redirect=yes"><img src="'.$BASEURL.'/include/languages/'.$language.'/flag/flag.gif" alt="'.$language.'" title="'.$language.'" width="32" height="20" border="0" /></a>&nbsp;';
    ++
$link;
}
$Progress_so_far = ($Progress_so_far >= 100 '100' number_format($Progress_so_far1));
echo 
'<div id="donation"><font class="small"><a href="'.$BASEURL.'/donate.php">'.$lang->header['donate'].'</a></font>
        <div style="width: 80px; border: 1px solid black; text-align: left; background: #376088 repeat;"><div style="padding-left: 0px; color: white; font-weight: bold; width: '
.$Progress_so_far.'%; border: 0px solid black; font-size: 8pt; background: #4A81B6 repeat;">&nbsp;'.number_format($Progress_so_far1).'%'.($Progress_so_far >= 100 '&nbsp;<font class="small">'.$lang->header['thanks'].'</font>' '').'</div></div></div>';
?>
</div>
<div class="title">
<h1>&nbsp;</h1>
<h6>&nbsp;</h6>
<?php echo ($link $dirlist '' ); ?>
</div>
</div>
<div id="subheader">
<div id="menu">
<script type="text/javascript" src="<?=$BASEURL;?>/scripts/dropdown.js"></script>
<ul>
<li class="page_item"><a href="<?=$BASEURL;?>"><?=$lang->global['home'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[3])" onmouseout="delayhidemenu()"><?=$lang->global['forums'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[4])" onmouseout="delayhidemenu()"><?=$lang->global['browse'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[5])" onmouseout="delayhidemenu()"><?=$lang->global['requests'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[11])" onmouseout="delayhidemenu()"><?=$lang->global['upload'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[6])" onmouseout="delayhidemenu()"><?=$lang->global['usercp'];?></a></li>
<li class="page_item"><a href="<?=$BASEURL;?>/irc.php"><font color="yellow"><?=$lang->global['irc'];?></font></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[7])" onmouseout="delayhidemenu()"><?=$lang->global['top10'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[8])" onmouseout="delayhidemenu()"><?=$lang->global['help'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[10])" onmouseout="delayhidemenu()"><?=$lang->global['extra'];?></a></li>
<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[9])" onmouseout="delayhidemenu()"><?=$lang->global['staff'];?></a></li>
<?php
if ($usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] != 'yes') {
    echo 
'<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[0])" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
}elseif (
$usergroups['canstaffpanel'] == 'yes' && $usergroups['cansettingspanel'] != 'yes' && $usergroups['issupermod'] == 'yes') {    
    echo 
'<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[1])" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
}elseif (
$usergroups['cansettingspanel'] == 'yes') {    
    echo 
'<li class="page_item"><a href="#top" onmouseover="showmenu(event,linkset[2])" onmouseout="delayhidemenu()"><font color="yellow">'.$lang->global['staffmenu'].'</font></a></li>';
}
echo 
'
    </ul>
    </div>
    </div>
    <div id="main">
    <div class="left_side">
'
;

if (
$offlinemsg)
    
$warnmessages[] = sprintf($lang->header['trackeroffline'], $BASEURL);

if (!
is_mod($usergroups) && $CURUSER && $CURUSER['donoruntil'] != '0000-00-00 00:00:00' && warn_donor(strtotime($CURUSER['donoruntil']) - gmtime()))
    
$warnmessages[] = sprintf($lang->header['warndonor'], $BASEURLmkprettytime(strtotime($CURUSER['donoruntil']) - gmtime()));

if(
$CURUSER['downloaded'] > && $CURUSER['leechwarn'] == 'yes')
    
$warnmessages[] = sprintf($lang->header['warned'], $leechwarn_remove_ratiomkprettytime(strtotime($CURUSER['leechwarnuntil']) - gmtime()));

if (
$CURUSER && $CURUSER['announce_read'] == 'no' && $new_announcement)
    
$infomessages[] = '<span id="new_ann" style="display: block;"><a href="javascript:show_annoucement()">'.$lang->header['newann'].'</a></span>';

if (
$CURUSER['newmessage'] && $msgalert)
    
$infomessages[] = '<a href="'.$BASEURL.'/messages.php">'.$lang->header['newmessage'].'</a>';

if (
$nummessages 0)
    
$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=staffbox">'.sprintf($lang->header['staffmess'], $nummessages).'</a>';

if (
$numreports 0)
    
$infomessages[] = '<a href="'.$BASEURL.'/admin/index.php?act=reports">'.sprintf($lang->header['newreport'], $numreports).'</a>';

if (isset(
$warnmessages))
{
    
$warnmessages implode('<br />',$warnmessages);
    echo 
'<div class="error">'.$warnmessages.'</div>';
}

if (isset(
$infomessages))
{
    
$infomessages implode('<br />',$infomessages);
    echo 
'<div class="success">'.$infomessages.'</div>';
}

$ads = @file_get_contents($rootpath.'admin/ads.txt');
if (!empty(
$ads) && !defined('DISABLE_ADS'))
{
    
$str  '<table class="main" border="1" cellspacing="0" cellpadding="0" width="100%"><tr><td class="text">';
    if (
strstr($ads'[TS_ADS]'))
    {
        
$ts_ads_count explode('[TS_ADS]'$ads);
        
$random_ts_ads rand(0, (sizeof($ts_ads_count) -1));
        
$str .= $ts_ads_count[$random_ts_ads];
    }
    else
        
$str .= $ads;
    
$str .= '</td></tr></table><br />';
    echo 
$str;
}
?>
Reply With Quote
  #8  
Old 7th October 2011, 17:44
n3v0n3r n3v0n3r is offline
Member
 
Join Date: Dec 2010
P2P
Posts: 12
Default Thanks
You rock!
Reply With Quote
  #9  
Old 8th October 2011, 20:38
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile
Quote:
Originally Posted by SENSE92 View Post
Hi new here and i also would like to remove the donation bar from the header.
I use Templateshares 4.3 default theme.
just delete this tekst in youre header.php

PHP Code:
$Progress_so_far = ($Progress_so_far >= 100 '100' number_format($Progress_so_far1)); 
echo 
'<div id="donation"><font class="small"><a href="'.$BASEURL.'/donate.php">'.$lang->header['donate'].'</a></font> 
        <div style="width: 80px; border: 1px solid black; text-align: left; background: #376088 repeat;"><div style="padding-left: 0px; color: white; font-weight: bold; width: '
.$Progress_so_far.'%; border: 0px solid black; font-size: 8pt; background: #4A81B6 repeat;">&nbsp;'.number_format($Progress_so_far1).'%'.($Progress_so_far >= 100 '&nbsp;<font class="small">'.$lang->header['thanks'].'</font>' '').'</div></div></div>'
Reply With Quote
Reply

Tags
disable , donations

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
Donations Page with Auto Paypal Mod D3SI Mods & Themes 29 8th May 2015 07:42
Donations in admincp Grom Mods & Themes 9 29th August 2011 01:24
Donations needed !!! mrdecoder Template Shares 44 2nd March 2011 11:24
Reseting donations Syn Template Shares 0 3rd June 2009 13:26
Disable blocks hack346 Yuna Scatari Edition (YSE) 4 18th August 2008 11:19



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