zeely
Odpowiedź forum utworzona
-
Forum: Motywy
W odpowiedzi na: Problem z tematem SThemeZamontowałem szablon STheme jednak po dwóch dniach użytkowania wyszła na światło dzienne jedna z jego wad, a mianowicie wyskakuje reklama google…
Reklama wygląda tak: http://yfrog.com/jcbeztytuudlzj
Kod źródłowy 'header.php’ to:<!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"> <?php $the_title = wp_title(' - ', false); if ($the_title != '') : ?> <title><?php echo wp_title('',false); ?> | <?php bloginfo('name'); ?></title> <?php else : ?> <title><?php bloginfo('name'); ?></title> <?php endif; ?> <?php if (is_home()){ $description = " "; } elseif (is_single()){ if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = substr(strip_tags($post->post_content),0,220); } } ?> <meta name="description" content="<?php echo $description; ?>" /> <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <!--[if IE 6]> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/IE6.css" type="text/css" media="screen" /> <![endif]--> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> <?php wp_head(); ?> <?php $options = get_option('classic_options'); ?> <?php if($options['roundborder']) : ?> <style type="text/css" media="screen"> #rssList { -moz-border-radius:9px; -khtml-border-radius:9px; -webkit-border-radius:9px; border-radius:9px; } .box { -moz-border-radius:9px; -khtml-border-radius:9px; -webkit-border-radius:9px; border-radius:9px; } </style> <?php endif; ?> <?php if($options['logo']) : ?> <style type="text/css" media="screen"> #logo h1 { text-indent:-999em; margin:0px; } #logo h1 a { display:block; background:url(<?php bloginfo('template_directory'); ?>/images/logo.gif) no-repeat; height:56px; width:180px; outline:none; } #logo .description { display:none; } </style> <?php endif; ?> </head> <body> <div id="main"></div> <div class="top_bg"></div> <div id="header"> <div id="logo"> <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <div class="description"><?php bloginfo('description'); ?></div> </div> <div id="rssblock"> <a id="rssfeed" href="<?php bloginfo('rss2_url'); ?>">RSS Feed</a> <ul id="rssList"> <li><?php _e('You can subscribe my blog via Google Reader or other tools.', 'stheme') ?></li> </ul> </div> </div> <ul id="subnav"> <li class="<?php if (((is_home()) && !(is_paged())) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?> active"> <a href="<?php echo get_settings('home'); ?>"><em><?php _e('Home', 'stheme') ?></em><?php echo $langblog;?></a></li> <?php if(!$_COOKIE['show_sidebar']=='no'):?> <li class="close-sidebar" title=""><a href="#"><em><?php _e('Sidebar Off', 'stheme') ?></em></a></li> <li class="show-sidebar" style="display:none;" title=""><a href="#"><em><?php _e('Sidebar On', 'stheme') ?></em></a></li> <?php else: ?> <li class="close-sidebar" style="display:none;" title=""><a href="#"><em><?php _e('Sidebar Off', 'stheme') ?></em></a></li> <li class="show-sidebar" title=""><a href="#"><em><?php _e('Sidebar On', 'stheme') ?></em></a></li> <?php endif;?> <?php if($_COOKIE['show_sidebar']=='no'):?> <style type="text/css"> #blog {width:770px;} .box {width:760px;} #rsidebar {display:none;} </style> <?php endif;?> </ul> <script type="text/javascript" language="javascript"> /* <![CDATA[ */ $(document).ready(function(){ (function(){ function SetCookie(c_name,value,expiredays){ var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString())+";path=/"; } window['RootCookies'] = {}; window['RootCookies']['SetCookie'] = SetCookie; })(); $('.close-sidebar').click(function() { RootCookies.SetCookie('show_sidebar', 'no', 1); $('.close-sidebar').hide(); $('.show-sidebar').show(); $('#rsidebar').fadeOut(1000); $('#blog').animate({width: "770px"}, 1000); $('.box').animate({width: "760px"}, 1000); }); $('.show-sidebar').click(function() { RootCookies.SetCookie('show_sidebar', 'no', -1); $('.show-sidebar').hide(); $('.close-sidebar').show(); $('#blog').animate({width: "550px"}, 1000); $('.box').animate({width: "530px"}, 1000); $('#rsidebar').animate({opacity: 1.0}, 500).fadeIn('slow');}); }); /* ]]> */ </script> <script type="text/javascript" language="javascript"> /* <![CDATA[ */ $(document).ready(function(){ $('#rssfeed, #rssList').mouseover(function() { if(window.willhide) clearTimeout(window.willhide); $('#rssList').fadeIn(500); }); $('#rssfeed,#rssList').mouseout(function() { window.willhide = setTimeout(function() { $('#rssList').fadeOut(500); }, 750); }); }); /* ]]> */ </script> <div id="wrapper"> <div id="stheme_left"> <div class="sblk1"><div class="sblk2"> <a href="<?php echo get_settings('home'); ?>" title="<?php _e('Home', 'stheme') ?>"><img src="<?php bloginfo('template_directory'); ?>/images/home.gif" alt=""></img></a></div></div> <div class="sblk1"><div class="sblk2"> <a href="mailto:<?php echo get_option('admin_email'); ?>" title="<?php _e('E-mail Me', 'stheme') ?>"><img src="<?php bloginfo('template_directory'); ?>/images/smg.gif" alt=""></img></a></div></div> <div class="sblk1"><div class="sblk2"> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/" title="<?php _e('Admin Login', 'stheme') ?>"><img src="<?php bloginfo('template_directory'); ?>/images/slogout.gif" alt=""></img></a></div></div> </div> <div id="content">
Usunąłem linijkę:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
jednak to wciąż za mało i reklama wyskakuje…Proszę o jakieś wskazówki na temat usunięcia tej niechcianej reklamy…
Forum: Instalacja
W odpowiedzi na: Błąd aktualizacji do wersji 3.0I jest gorzej niż było ;/
Zaktualizowało:Pobieranie aktualizacji z http://pl.wordpress.org/wordpress-3.0-pl_PL.zip. Rozpakowywanie aktualizacji. Verifying the unpacked files… Installing the latest version… Upgrading database… WordPress został pomyślnie zaktualizowany
Ale teraz nie działa PA bo jak tylko chce w niego wejść to krzyczy błąd:
Warning: Cannot modify header information - headers already sent by (output started at /home/zeely/public_html/zeely/wp-config.php:1) in /home/zeely/public_html/zeely/wp-includes/pluggable.php on line 890