|
#1
|
||||
|
||||
Disable Donations
Hi, how can I disable the donations system and how can I delete the
Code:
click here to donate us
__________________
|
#2
|
||||
|
||||
show me the header.php code for your main template you're using
|
#3
|
||||
|
||||
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> <span> <?php echo $lang->global['ratio']; ?> <?php echo $ratio?> <?php echo $lang->global['bonus']; ?> <a href="<?php echo $BASEURL?>/mybonus.php"><?php echo number_format($CURUSER['seedbonus'], 1)?></a> <?php echo maxslots().$lang->global['uploaded']; ?> <font color="green"><?php echo mksize($CURUSER['uploaded'])?></font> <?php echo $lang->global['downloaded']; ?> <font color="red"><?php echo mksize($CURUSER['downloaded'])?></font></span> <?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> '; ++$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;"> '.number_format($Progress_so_far, 1).'%'.($Progress_so_far >= 100 ? ' <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); } ?>
__________________
|
#4
|
||||
|
||||
PHP Code:
|
#5
|
||||
|
||||
Thanks m8
__________________
|
#6
|
|||
|
|||
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 |
#7
|
|||
|
|||
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:
|
#8
|
|||
|
|||
Thanks
You rock!
|
#9
|
||||
|
||||
Quote:
PHP Code:
|
Tags |
disable , donations |
|
|
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 |