tizlo Posted August 22, 2009 Share Posted August 22, 2009 First off, I would like to say thank you very much to all you phpfreaks out there. I appreciate your help more than you know! I am starting a website, I decided to start an blog, and I am using wordpress. I used a template called bluesense. When I uploaded the template (theme) and installed it, I checked out the homepage and there were already google ads on it with the theme creators pub-id. these ads said XXXXXgoogle where the ads would usually say ads by google. So it was adsense from some foreign language, but all english ads. I edited the files by replacing his pub-id with mine. Well, when I went to the site, all the ads were in french for some reason (they should have been in english). That had never happened to me before, but oh well, I figured google could help me sort that out. Well, about 5-10 minutes later, the ads had converted back to that foreign adsense language, and were showing english ads again. When I use inspect element, it appears to have my pub-id in there, but for some reason its in that foreign language. Im posting here because I know NOTHING about php, and I had a fealing that maybe some of his scripts were changing it back to his. Here are the files that makup this theme: 404-------------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if(function_exists('aa_google_404'))aa_google_404();?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> archives------------------------------------------------------------------------------------------------------------- <?php /* Template Name: Archives */ ?> [code]<?php get_header(); ?> <div id="content" class="widecolumn"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <h2>Archives by Month:</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> <h2>Archives by Subject:</h2> <ul> <?php wp_list_cats(); ?> </ul> </div> <?php get_footer(); ?> comments-popup------------------------------------------------------------------------------------------ <?php // Do not delete these lines if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ?> <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p> <?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <?php if ($comments) : ?> <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> <ol class="commentlist"> <?php foreach ($comments as $comment) : ?> <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <cite><?php comment_author_link() ?></cite> Says: <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <br /> <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small> <?php comment_text() ?> </li> <?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post-> comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post-> comment_status) : ?> <h3 id="respond">Leave a Reply</h3> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</a></p> <?php else : ?> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <?php endif; ?> <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>--> <p><textarea name="comment" id="comment" cols="50%" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> archive----------------------------------------------------------------------------------------------------------0 <?php get_header(); ?> <div id="wrapper"> <?php include (TEMPLATEPATH . '/menu.php'); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> <?php /* If this is a search */ } elseif (is_search()) { ?> <h2 class="pagetitle">Search Results</h2> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h2 class="pagetitle">Author Archive</h2> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2 class="pagetitle">Blog Archives</h2> <?php } ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <small><?php the_time('l, F jS, Y') ?></small> <div class="entry"> <?php the_excerpt() ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <!-- <?php trackback_rdf(); ?> --> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> header_adverts----------------------------------------------------------------------------------------------------- <script type="text/javascript"><!-- google_ad_client = "pub-8376983323101612"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728x15_0ads_al_s"; google_ad_channel = ""; google_color_border = "064B8C"; google_color_bg = "064B8C"; google_color_link = "ffffff"; google_color_text = "ffffff"; google_color_url = "ffffff"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> header--------------------------------------------------------------------------------------------------------------- <!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"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title(' '); ?><?php if(wp_title(' ', false)) { echo ' · '; } ?><?php bloginfo('name'); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <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'); ?>" /> <style type="text/css" media="screen"> </style> <?php wp_head(); ?> </head> <body> <div id="page"> <div id="header"> <div id="headerimg"> <?php /* If this is a category archive */ if (is_category()) { ?> <h1><?php single_cat_title(''); ?></h1> <h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3> <?php /* If this is a single post */ } elseif (is_single()) { ?> <h1><?php the_title(); ?></h1> <h3>at <a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h3> <?php /* Everything else */ } else { ?> <h1><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h1> <h3><?php bloginfo('description'); ?></h3> <?php } ?> </div> </div> <div id="ad_hf"> <?php include (TEMPLATEPATH . '/header_adverts.php'); ?> </div> links---------------------------------------------------------------------------------------------------------------- <?php /* Template Name: Links */ ?> <?php get_header(); ?> <div id="content" class="widecolumn"> <h2>Links:</h2> <ul> <?php get_links_list(); ?> </ul> </div> <?php get_footer(); ?> page------------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="wrapper"> <?php include (TEMPLATEPATH . '/menu.php'); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <h2 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h2> <?php include "single_top_adverts.php" ?> <div class="entrytext"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> </div> <?php include "single_bottom_adverts.php" ?> </div> <?php endwhile; endif; ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> search---------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <h2 class="pagetitle">Search Results</h2> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <small><?php the_time('l, F jS, Y') ?></small> <div class="entry"> <?php the_excerpt() ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <!-- <?php trackback_rdf(); ?> --> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> sidebar-------------------------------------------------------------------------------------------------------------- <div id="sidebar"> <div id="sidebar_r"> <ul> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?> <li> <div id="search"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2><?php _e('Author'); ?></h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php get_links_list(); ?> <li> <?php /* If this is a category archive */ if (is_category()) { ?> <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the day <?php the_time('l, F jS, Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for <?php the_time('F, Y'); ?>.</p> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for the year <?php the_time('Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <p>You have searched the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <p>You are currently browsing the <a href="<?php echo get_settings('siteurl'); ?>"><?php echo bloginfo('name'); ?></a> weblog archives.</p> <?php } ?> </li> <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?> <li><h2><?php _e('Archives'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <li><h2><?php _e('Categories'); ?></h2> <ul> <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?> </ul> </li> <?php /* If this is homepage */ if (is_home()) { ?> <li> <script type="text/javascript"><!-- google_ad_client = "pub-4206402723129698"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "F0F6FB"; google_color_bg = "F0F6FB"; google_color_link = "064B8C"; google_color_text = "064B8C"; google_color_url = "064B8C"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </li> <?php } ?> <li><h2><?php _e('Meta'); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> <li><a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a></li> <li><a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a></li> <li><a href="http://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li> <?php endif; ?> </ul> </li> </ul> </div> </div> archive----------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="wrapper"> <?php include (TEMPLATEPATH . '/menu.php'); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h2> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h2 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h2> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h2> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h2 class="pagetitle">Archive for <?php the_time('Y'); ?></h2> <?php /* If this is a search */ } elseif (is_search()) { ?> <h2 class="pagetitle">Search Results</h2> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h2 class="pagetitle">Author Archive</h2> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2 class="pagetitle">Blog Archives</h2> <?php } ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <small><?php the_time('l, F jS, Y') ?></small> <div class="entry"> <?php the_excerpt() ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <!-- <?php trackback_rdf(); ?> --> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> comments----------------------------------------------------------------------------------------------------------- <?php // Do not delete these lines if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if (!empty($post->post_password)) { // if there's a password if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie ?> <p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments."); ?><p> <?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <?php if ($comments) : ?> <h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3> <ol class="commentlist"> <?php foreach ($comments as $comment) : ?> <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <cite><?php comment_author_link() ?></cite> Says: <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <br /> <small class="commentmetadata"><a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small> <?php comment_text() ?> </li> <?php /* Changes every other comment to a different class */ if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post-> comment_status) : ?> <!-- If comments are open, but there are no comments. --> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post-> comment_status) : ?> <h3 id="respond">Leave a Reply</h3> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>">Logout »</a></p> <?php else : ?> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <?php endif; ?> <!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>--> <p><textarea name="comment" id="comment" cols="50%" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> footer----------------------------------------------------------------------------------------------------------- <div id="footer"> <hr /> <p> <?php bloginfo('name'); ?><a href="http://www.allwebsolution.biz">รับทำ seo</a> <a href="http://www.kodhit.com" title="ละคร">ละคร</a> <a href="http://www.thai-classified.com">ลงประกาศฟรี รถมือสอง บ้านมือสอง</a> <a href="http://www.kodindy.com">อินดี้</a> <!-- <?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> </p> </div> </div> <?php do_action('wp_footer'); ?> </body> </html> functions----------------------------------------------------------------------------------------------------------- <?php if ( function_exists('register_sidebar') ) register_sidebar(); ?> index----------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="wrapper"> <?php include (TEMPLATEPATH . '/menu.php'); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post"> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <!-- <?php trackback_rdf(); ?> --> </div> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> menu----------------------------------------------------------------------------------------------------------- <div id="menu"> <ul> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?> <li> <script type="text/javascript"><!-- google_ad_client = "pub-4206402723129698"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "F0F6FB"; google_color_bg = "F0F6FB"; google_color_link = "064B8C"; google_color_text = "064B8C"; google_color_url = "064B8C"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </li> <?php endif; ?> </ul> </div> searchform----------------------------------------------------------------------------------------------------------- <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/"> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </form> single----------------------------------------------------------------------------------------------------------- <?php get_header(); ?> <div id="wrapper"> <?php include (TEMPLATEPATH . '/menu.php'); ?> <div id="content" class="narrowcolumn"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="navigation"> <div class="alignleft"><?php previous_post('« %','','yes') ?></div> <div class="alignright"><?php next_post(' % »','','yes') ?></div> </div> <div class="post"> <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php include "single_top_adverts.php" ?> <div class="entrytext"> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> <p class="postmetadata alt"> <small> This entry was posted <?php /* This is commented, because it requires a little adjusting sometimes. You'll need to download this plugin, and follow the instructions: http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */ /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?> on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?>. You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Both Comments and Pings are open ?> You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(display); ?>">trackback</a> from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only Pings are Open ?> Responses are currently closed, but you can <a href="<?php trackback_url(display); ?> ">trackback</a> from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Comments are open, Pings are not ?> You can skip to the end and leave a response. Pinging is currently not allowed. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Neither Comments, nor Pings are open ?> Both comments and pings are currently closed. <?php } edit_post_link('Edit this entry.','',''); ?> </small> </p> </div> <?php include "single_bottom_adverts.php" ?> </div> <?php comments_template(); ?> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?> single_top_adverts--------------------------------------------------------------------------------------------------- <script type="text/javascript"><!-- google_ad_client = "pub-4206402723129698"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "F0F6FB"; google_color_bg = "F0F6FB"; google_color_link = "064B8C"; google_color_text = "064B8C"; google_color_url = "064B8C"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> style----------------------------------------------------------------------------------------------------------- /* Theme Name: Blue Sense Theme URI: http://www.doshdosh.com/ Description: <p><a href="http://www.doshdosh.com/bluesense-theme/">Blue Sense</a> Adsense Ready Wordpress Theme.</p> Version: 1.0 Author: Dosh Dosh Author URI: http://www.doshdosh.com/ */ * { padding: 0; margin: 0; } body { font-size: 76%; font-family: Arial, Verdana, Sans-Serif; background-color: #ffffff; } hr { display: none; } #page { width: 835px; margin: 0 auto; background-color: #F0F6FB; } #wrapper { width: 835px; margin: 0 auto; background-color: #F0F6FB; } #content { float: left; width: 475px; } .post { margin-bottom: 20px; color: #064B8C; padding-left: 5px; padding-right: 5px; font-size: 1.1em; } h2 { font-size: 1.6em; border-bottom: 1px solid #064B8C; } h2 a:hover, h2 a:visited, h2 a { text-decoration: none; color: #064B8C; } .entry { margin-top: 10px; margin-bottom: 15px; } .postmetadata { padding: 2px; font-size: 0.8em; border-top: 1px solid #064B8C; } .postmetadata a { color: #064B8C; } .post p { line-height: 1.4em; margin-bottom: 1em; } blockquote { margin: 1em 1.5em; padding: 1em 1.5em; border: 1px solid #064B8C; background: #d3d3d3; } .post li { margin-left: 20px; } .post ul { list-style-type: disc; margin-bottom: 10px } acronym, abbr, span { cursor: help; } acronym, abbr { border-bottom: 1px dashed #064B8C; } blockquote cite { margin: 5px 0 0; display: block; } .center { text-align: center; } a img { border: none; } h3 { margin-top: 1em; margin-bottom: 1em; font-size: 1.4em; } h4 { margin-top: 1.2em; font-size: 1.2em; } h5 { margin-top: 1em; font-size: 1em; } a { color: #064B8C; } .navigation { display: block; margin-top: 10px; margin-bottom: 40px; } .alignleft { float: left; text-align: left; width: 50%; } .alignright { float: right; text-align: right; width: 50% } ol.commentlist { width: 90%; margin: 0 auto; } ol.commentlist li { margin-bottom: 1.5em; border: 1px solid #064B8C; padding: 5px; background-color: #d3d3d3; } ol.commentlist li.alt { background-color: #d3d3d3; } ol.commentlist a { color: #064B8C; } small.commentmetadata { font-size: 0.8em; margin-bottom: 1em; display: block; } #header { margin-bottom: 0px; margin-top: 0px; text-align: center; padding-top: 0px; background: #ffffff height: 130px; } #headerimg { text-align: center; padding-top: 20px; } #sidebar { float: right; width: 164px; padding: 2px; text-align: left; } #sidebar ul { list-style: none; margin-bottom: 10px; } #sidebar ul ul { list-style-type: circle; margin-left: 20px; } #sidebar ul ul ul { margin-bottom: 0; } #sidebar ul h2 { font-size: 1.2em; font-weight: bold; padding: 2px; margin-bottom: 5px; background-color: #064B8C; color: #ffffff; } #menu { float: left; width: 164px; padding: 2px; text-align: center; } #menu ul { list-style: none; margin-bottom: 10px; } #menu ul ul { list-style-type: circle; margin-left: 20px; } #menu ul ul ul { margin-bottom: 0; } #menu ul h2 { font-size: 1.2em; font-weight: bold; padding: 2px; margin-bottom: 5px; background-color: #064B8C; color: #ffffff; } #footer { padding: 5px; margin: 5px; clear: both; text-align: center; background-color: #064B8C; color: #ffffff; } #footer a { color: #ffffff; } .description { border-bottom: 100px; } #ad_hf { text-align: center; padding-top: 10px; padding-bottom: 10px; background-color: #064B8C; } #search { text-align: left; padding-left: 20px; background-color: #F0F6FB; Im sorry for making this so long, but I am desperate for help. } Link to comment https://forums.phpfreaks.com/topic/171461-im-a-noobie-please-be-nice-~-i-need-help/ Share on other sites More sharing options...
bundyxc Posted August 23, 2009 Share Posted August 23, 2009 What exactly is your question? Link to comment https://forums.phpfreaks.com/topic/171461-im-a-noobie-please-be-nice-~-i-need-help/#findComment-904189 Share on other sites More sharing options...
5kyy8lu3 Posted August 23, 2009 Share Posted August 23, 2009 wow. Link to comment https://forums.phpfreaks.com/topic/171461-im-a-noobie-please-be-nice-~-i-need-help/#findComment-904214 Share on other sites More sharing options...
gergy008 Posted August 23, 2009 Share Posted August 23, 2009 3 problems: 1. Wrong forums. You should have gone to the google adsense forums. 2. It isn't PHP, It's javascript. 3. I have google ads and that is the old style code. Replace the code. Link to comment https://forums.phpfreaks.com/topic/171461-im-a-noobie-please-be-nice-~-i-need-help/#findComment-904221 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.