Przedszkolak
Postów: 5
Data rejestracji: 20.12.2008 12:23
|
Witam, jak usunąć panele zakodowane w theme.php, wiem że muszę usunąć kilka linijek kodu, ale nie wiem dokładnie jakich, przy próbie usunięcia, zawsze wyskakują błędy...
Chodzi mi o usunięcie tych dwóch górnych paneli, link do mojej strony: http://halocenter... i poniżej theme.php
<?
// theme settings
$body_text = "#ffffff";
$body_bg = "#000000";
$theme_width = "846";
$theme_width_l = "220";
$theme_width_r = "220";
function render_header($header_content) {
global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix;
if (file_exists(INFUSIONS."user_info_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."user_info_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."user_info_panel/locale/English.php";
}
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">
<tr>
<td>
<table border=\"0\" width=\"909\" height=\"357\" align=\"center\" style=\"border-collapse: collapse\">
<tr>
<td height=\"357\" width=\"909\" background=\"".THEME."images/graphiclay_02.jpg\" valign=\"top\">
<table cellpadding=\"0\" cellspacing=\"0\" width=\"661\" height=\"55\">
<tr>
</form>
</td>
</tr>
</table>
<table cellpadding=\"0\" cellspacing=\"0\" width=\"661\">
<tr>
<td height=\"234\">
</td>
</tr>
</table>
          <a href=\"".BASEDIR."news.php\" style=\"color: rgb(49, 110, 130);\"><b>S</b></a><a href=\"".BASEDIR."news.php\" style=\"color: rgb(255, 255, 255);\">trona Główna</a>
    <a href=\"".BASEDIR."forum/index.php\" style=\"color: rgb(49, 110, 130);\"><b>F</b></a><a href=\"".BASEDIR."forum/index.php\" style=\"color: rgb(255, 255, 255);\">orum</a>
    <a href=\"".BASEDIR."photogallery.php\" style=\"color: rgb(49, 110, 130);\"><b>G</b></a><a href=\"".BASEDIR."photogallery.php\" style=\"color: rgb(255, 255, 255);\">aleria</a>
    <a href=\"".BASEDIR."downloads.php\" style=\"color: rgb(49, 110, 130);\"><b>D</b></a><a href=\"".BASEDIR."downloads.php\" style=\"color: rgb(255, 255, 255);\">ownload</a>
    <a href=\"".BASEDIR."articles.php\" style=\"color: rgb(49, 110, 130);\"><b>A</b></a><a href=\"".BASEDIR."articles.php\" style=\"color: rgb(255, 255, 255);\">rtykuły</a>
</td>
<a href='".BASEDIR."news.php'><img src='".THEME."images/home.jpg' border='0'></a>  <a href='".BASEDIR."contact.php'><img src='".THEME."images/contact.jpg' border='0'></a>  <a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.jpg' border='0'></a>          </td>
</tr>
</table>";
echo "<script language=\"JavaScript1.2\">
if (iens6) {
var crossobj=document.getElementById? document.getElementById(\"content\") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4) {
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+\"px\"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout(\"movedown()\",20)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+\"px\"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout(\"moveup()\",20)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility=\"show\"
}
window.onload=getcontent_height
</script>";
echo"
</td>
</tr>
</table>
</td>
</tr>
<tr><td style=\"height: 1px\"></td></tr>
<tr>
<td>\n";
echo"
<table border=\"0\" width=\"907\" height=\"202\" style=\"border-collapse: collapse\" align='center'>
<tr>
<td height=\"202\" width=\"698\" background=\"".THEME."images/graphiclay_09.jpg\">
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '0572700555';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
             
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '2602431559';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
             
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '5073210829';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
<td height=\"202\" width=\"209\" background=\"".THEME."images/graphiclay_11.jpg\" valign='top'><br><br><Br><br>";
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "       ".$locale['011']."".dbrows($result)."<br>";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
{
$members = dbrows($result);
echo "       Zarejestrowanych: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''>Nieaktywowany Użytkownik: ".dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name,user_color,user_prefix FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
}
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
$zapytanie = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_joined DESC LIMIT 0,2");
while($data = dbarray($zapytanie)){
if ($counter != 0 && ($counter % 2 == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl' style='white-space:nowrap'>\n";
if ($data['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$data['user_avatar']."' width='50px' height='50px' alt='".$data['user_name']."'>";
}else{
echo"<img src=\"".FORUM."images/brak.gif\" width=\"50px\" height=\"50px\">";
}
echo" <br><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</a><br>";
echo "\n<span class='small'>";
echo "</td>\n";
$counter++;
}
echo"</table>";
echo"</td>
</tr>
</table>
";
echo " <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align='center' width='906'>
<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$db_prefix;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='1' align='center' width='90%' style=\"padding-top:49px\">\n<tr>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,4");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
if ($counter != 0 && ($counter % 4 == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl' style='white-space:nowrap'>\n";
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
echo "<center> <a href='".BASEDIR."photogallery.php?photo_id=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."album_".$data['album_id']."/".$data['photo_thumb1']."' width='100' height='75' title='".$data['photo_title']."' alt='".$data['photo_title']."'></a>
</center></a>\n";
echo "<br><br>\n<span class='small'>";
echo "</td>\n";
$counter++;
}
}
echo"</table>";
echo"
<table border=\"0\" width=\"906\" height=\"49\" background=\"".THEME."images/graphiclay_27.jpg\" style=\"border-collapse: collapse\" align='center'>
<tr>
<td width=\"906\" height=\"49\" valign=\"top\">
<table cellpadding=\"0\" cellspacing=\"0\" width=\"902\" height=\"46\">
<tr>
<td height=\"46\" width=\"620\"style=\"padding-left:15px\">
<a href=\"http://extreme-fusion.pl\" target='_blank' style=\"color: rgb(49, 110, 130);\"><b>Powered by: <a href='http://www.php-fusion.co.uk' target='_blank'>PHP-Fusion v6.01.6</a> || EP IV by eXtreme Crew
<br>
<a href=\"http://b-site.info\" target='_blank' style=\"color: rgb(49, 110, 130);\"><b>Theme by:</b></a><a href=\"http://b-site.info\" target='_blank' style=\"color: rgb(255, 255, 255);\"> b-site</a> <a href=\"http://b-site.info\" target='_blank' style=\"color: rgb(49, 110, 130);\"><b>&</b></a><a href=\"http://halocenter.pl\" target='news.php' style=\"color: rgb(255, 255, 255);\"> unknown</a>
</td>
<td height=\"46\" width=\"21\">
 </td>
<td height=\"46\" width=\"149\" align='center'>
Unikalnych Wizyt:<br>
".number_format($settings['counter'])." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."<br>\n")."
<td height=\"46\" width=\"21\">
 </td>
<td height=\"46\" width=\"149\" align='center'>
Statystyki:<br>
<!-- stat.4u.pl NiE KaSoWaC --> <a target=_blank href='http://stat.4u.pl/?halo'><img src='http://adstat.4u.pl/s4u.gif' border='0'></a> <script language='javascript' type='text/javascript'> <!-- function s4upl() { return '&r=er';} //--> </script> <script language='JavaScript' type='text/javascript' src='http://adstat.4u.pl/s.js?halo'></script> <script language='JavaScript' type='text/javascript'> <!-- s4uext=s4upl(); document.write('<img src='http://stat.4u.pl/cgi-bin/s.cgi?i=halo'+s4uext+'' width=1 height1>') //--> </script> <noscript><img src='http://stat.4u.pl/cgi-bin/s.cgi?i=halo&r=ns' width='1' height='1'></noscript> <!-- stat.4u.pl KoNiEc -->
</td>
<td height=\"46\" width=\"14\">
</td>
<td height=\"46\" width=\"538\">
<div align='right'>
<br><br><a href='".BASEDIR."news.php'><font color='#FFFFFF' size='1'>Strona Główna</font></a> :: <a href='".BASEDIR."contact.php'><font color='#FFFFFF' size='1'>Kontakt</font></a> :: <a href='#top'><font size='1'><span style=\"color: rgb(49, 110, 130);\">Do Góry</span></font></a>          
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>";
}
function render_news($subject, $news, $info) {
global $settings;
echo"<table border=\"0\" width=\"529\" style=\"border-collapse: collapse\">
<tr>
<td height=\"62\" width=\"529\" background=\"".THEME."images/graphiclay_13.jpg\" style=\"padding-left:10px\">
<img src='".THEME."images/rss.gif' align='left'>
<span style=\"color: rgb(49, 110, 130);\"><b>$subject</b></span><br>
Dodane przez: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> Dnia ".showdate("longdate", $info['news_date'])."".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a>" : "")."
</td>
</tr>
<tr>
<td width=\"529\" background=\"".THEME."images/graphiclay_17.jpg\" style=\"padding-left:10px\">$news</td>
</tr>
<tr>
<td height=\"38\" width=\"529\" background=\"".THEME."images/graphiclay_20.jpg\"><div align='right'>
<a href='news.php?readmore=".$info['news_id']."'>[Komentarzy: ".$info['news_comments']."]</a>   <a href='news.php?readmore=".$info['news_id']."'>[Czytano: ".$info['news_reads']."]</a>      </div> </td>
</tr>
</table>";
}
function render_article($subject, $article, $info) {
echo"<table border=\"0\" width=\"529\" style=\"border-collapse: collapse\">
<tr>
<td height=\"62\" width=\"529\" background=\"".THEME."images/graphiclay_13.jpg\" style=\"padding-left:10px\">
<img src='".THEME."images/rss.gif' align='left'>
<span style=\"color: rgb(49, 110, 130);\"><b>$subject</b></span<br>
Dodane przez: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a><br> Dnia ".showdate("longdate", $info['article_date'])."
</td>
</tr>
<tr>
<td width=\"529\" background=\"".THEME."images/graphiclay_17.jpg\" style=\"padding-left:10px\">
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td height=\"38\" width=\"529\" background=\"".THEME."images/graphiclay_20.jpg\"><div align='right'>
[Komentarzy: ".$info['article_comments']."]   [Czytano: ".$info['article_reads']."]      </div> </td>
</tr>
</table>
\n";
}
function opentable($title) {
echo"<table border=\"0\" width=\"529\" style=\"border-collapse: collapse\" align='center'>
<tr>
<td height=\"62\" width=\"529\" background=\"".THEME."images/graphiclay_13.jpg\" style=\"padding-left:10px\">$title</td>
</tr>
<tr>
<td width=\"529\" background=\"".THEME."images/graphiclay_17.jpg\" style=\"padding-left:10px; padding-right:10px\">";
}
function closetable() {
echo "
<br><br>
</td>
</tr>
</table>";
}
function openside($title) {
echo"
<table border=\"0\" width=\"186\" style=\"border-collapse: collapse;\" align='center'>
<tr>
<td height=\"41\" width=\"186\" background=\"".THEME."images/graphiclay_12.jpg\" style=\"padding-left:17px; padding-right:10px\"><p><b>$title</b></p></td>
</tr>
<tr>
<td width=\"186\" background=\"".THEME."images/graphiclay_16.jpg\" style=\"padding-left:10px; padding-right:10px\">";
}
function closeside() {
echo "
</td>
</tr>
<tr>
<td height=\"16\" width=\"186\" background=\"".THEME."images/graphiclay_22.jpg\"></td>
</tr>
</table>\n";
tablebreak();
}
function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}
function closesidel() {
echo "</td>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$open="on") {
echo"
<table border=\"0\" width=\"186\" style=\"border-collapse: collapse;\" align='center'>
<tr>
<td height=\"41\" width=\"186\" background=\"".THEME."images/graphiclay_12.jpg\" style=\"padding-left:17px; padding-right:10px\"><p><b>$title</b></p></td>
</tr>
<tr>
<td width=\"186\" background=\"".THEME."images/graphiclay_16.jpg\" style=\"padding-left:10px; padding-right:10px\">";
}
function closesidex() {
echo "
</td>
</tr>
<tr>
<td height=\"16\" width=\"186\" background=\"".THEME."images/graphiclay_22.jpg\"></td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>
<tr><td height='0'></td></tr>
</table>\n";
}
?>
PW od moderatora:
- Przeniesienie tematu - Pieka 25.04 - 14:56
Edytowane przez unknown301 dnia 25.04.2009 15:52:51
|
Początkujący
Postów: 183 Pomógł: 14
Data rejestracji: 19.02.2009 23:58
|
Za te tabelkę jest odpowiedzialny google AdSence i żeby się tego pozbyć usuń całą tabelę:
echo"
<table border=\"0\" width=\"907\" height=\"202\" style=\"border-collapse: collapse\" align='center'>
<tr>
<td height=\"202\" width=\"698\" background=\"".THEME."images/graphiclay_09.jpg\">
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '0572700555';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
             
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '2602431559';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
             
<script type='text/javascript'><!--
google_ad_client = 'pub-5535941353625683';
/* 200x200, utworzono 09-04-22 */
google_ad_slot = '5073210829';
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type='text/javascript'
src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
</script>
</td>
<td height=\"202\" width=\"209\" background=\"".THEME."images/graphiclay_11.jpg\" valign='top'><br><br><Br><br>";
if ($settings['maintenance'] != "1") {
$cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
if (dbrows($result) != 0) {
$result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
} else {
$name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
$result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "       ".$locale['011']."".dbrows($result)."<br>";
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_color,user_prefix FROM ep_online ton
LEFT JOIN ep_users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
} else {
echo $locale['013']."<br>\n";
}
{
$members = dbrows($result);
echo "       Zarejestrowanych: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''>Nieaktywowany Użytkownik: ".dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
$data = dbarray(dbquery("SELECT user_id,user_name,user_color,user_prefix FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
}
echo "<table cellpadding='0' cellspacing='1' width='100%'>\n<tr>\n";
$zapytanie = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_joined DESC LIMIT 0,2");
while($data = dbarray($zapytanie)){
if ($counter != 0 && ($counter % 2 == 0)) echo "</tr>\n<tr>\n";
echo "<td align='center' valign='top' class='tbl' style='white-space:nowrap'>\n";
if ($data['user_avatar'] != "") {
echo "<img src='".BASEDIR."images/avatars/".$data['user_avatar']."' width='50px' height='50px' alt='".$data['user_name']."'>";
}else{
echo"<img src=\"".FORUM."images/brak.gif\" width=\"50px\" height=\"50px\">";
}
echo" <br><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</a><br>";
echo "\n<span class='small'>";
echo "</td>\n";
$counter++;
}
echo"</table>";
echo"</td>
</tr>
</table>
";
Kliknij i zaczekaj na załadowanie kodu ...
jak się nie pomyliłem do którego znacznika </table> ... Pozdrawiam |