• Resolved GrYf

    (@gryf)


    “This entry was posted on Lunes, Marzo 2nd, 2009 at 21:37 and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

    Comments are closed.”

    Can I remove this in the messages? Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • If you are using the WordPress Default theme you would delete that in wp-content/themes/default/sidebar.php. So you would delete code like this:

    <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:
    							https://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 post_comments_feed_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(); ?>" rel="trackback">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(); ?> " rel="trackback">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>
    Thread Starter GrYf

    (@gryf)

    Thanks for response ??

    I m not use the default theme. Im use other theme, but this theme dont have any sidebar.php, his name is sidebar1.php

    I deleted the code, but still appears the message ??

    Sorry for my english xD

    This is the code:

    [moderated code]

    I meant to say single.php.

    Thread Starter GrYf

    (@gryf)

    Ok, thanks ?? Fixed

    Next question xD

    -Can I use special characters? “? película” for example.
    I can add it somehow?

    -And finally. Where I can find the “tags”? Thanks again.

    Thread Starter GrYf

    (@gryf)

    having the same problem only my single .php only includes

    <?php get_header(); ?>
    		<div id="primary-content" class="narrowcolumn">
    <?php include (TEMPLATEPATH . '/theloop.php'); ?>
    <?php comments_template(); ?>
    		</div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    and so i figure its either going to my loop or comments template.

    Heres both.

    Loop:

    <?php
    			/*
    				This is the loop, which fetches entries from your database.
    				It is a delicate piece of machinery. Be gentle! 
    
    				This structure originally comes from the Great K2 theme: https://getk2.com
    			*/
    	?>
    	<?php /* Headlines for archives */ if ((!is_single() && !is_home()) || is_paged()) { ?>
    
    	<h2 class="pagetitle">
    	  <?php if (is_category()) {
    					  printf(__('Archive for the \'%s\' Category', 'rgb'), single_cat_title('', false));
    					} elseif (is_day()) {
    					  printf(__('Archive for %s', 'rgb'), get_the_time(__('F jS, Y', 'rgb')));
    					} elseif (is_month()) {
    					  printf(__('Archive for %s', 'rgb'), get_the_time(__('F, Y', 'rgb')));
    					} elseif (is_year()) {
    					  printf(__('Archive for %s', 'rgb'), get_the_time(__('Y', 'rgb')));
    					} elseif (is_search()) {
    					  printf(__('Search Results for \'%s\'','rgb'), attribute_escape(stripslashes(get_query_var('s'))));
    					} elseif (function_exists('is_tag') && is_tag()) {
    				  	  if (function_exists('single_tag_title')) {
    					  printf(__('Tag Archive for \'%s\'','rgb'), single_tag_title('', false));
    					} else {
    					  printf(__('Tag Archive for \'%s\'','rgb'), get_query_var('tag') );
    					}
    					} elseif (is_paged() && ($paged > 1)) {
    					  printf(__('Archive Page %s', 'rgb'), $paged);
    					}
    				?>
    	</h2>
    	<?php } ?>
    	<?php if (!is_single() && is_paged()) include (TEMPLATEPATH . '/navigation.php'); ?>
    	<?php /* Start the loop */ if (have_posts()) { while (have_posts()) { the_post(); ?>
    	<?php /* Permalink nav has to be inside loop */ if (is_single()) include (TEMPLATEPATH . '/navigation.php'); ?>
    	<div id="post-<?php the_ID(); ?>" class="entry">
    	  <h3 class="entry-header"><a href="<?php the_permalink() ?>" rel="bookmark" title='Permanent Link to "<?php strip_tags(the_title()); ?>"'>
    		<?php the_title(); ?>
    		</a></h3>
    	  <?php comments_popup_link('<span class="entry-cmt"><span class="metacmt">'.__('Add a comment','rgb').'</span></span>', '<span class="entry-cmt"><span class="metacmt">1&nbsp;'.__('Comment','rgb').'</span></span>', '<span class="entry-cmt"><span class="metacmt">%&nbsp;'.__('Comments','rgb').'</span></span>', '', '<span class="entry-cmt"><span class="metacmt">'.__('Closed','rgb').'</span></span>'); ?>
    	  <div class="entry-date"><?php printf(__('%1$s by %2$s ','rgb'), the_time(__(' F jS, Y','rgb')), get_the_author()) ?></div>
          <div class="entry-content">
    	  <?php if (is_search() || (function_exists('is_tag') && is_tag())) {
    						the_excerpt();
    					} else {
    						the_content(sprintf(__("Continue reading '%s'", 'rgb'), the_title('', 'rgb', false)));
    					} ?>
    	  <?php wp_link_pages('before=<p><strong>' . __('Pages:','rgb') . '</strong>&after=</p>'); ?>
    	  <!-- <?php trackback_rdf(); ?> -->
          </div>
    	  <?php if (is_home() || is_archive()) { ?>
    	  <div class="entry-footer">
    		<?php edit_post_link(__('Edit','rgb'),'<span class="metaedit">','</span>&nbsp;&nbsp;'); ?>
    
    	  </div>
    	  <?php } elseif (is_single()) { ?>
    	  <p class="intro">
    		<?php _e('This entry is filed under ','rgb')?><?php the_category(', ') ?><?php _e('. ','rgb')?><?php the_tags(__(' And tagged with ','rgb'),', ','.') ?>
    		<?php _e('You can follow any responses to this entry through ','rgb') ?><?php comments_rss_link(__('RSS 2.0','rgb')) ?><?php _e('. ','rgb')?>
    		<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Both Comments and Pings are open */ ?>
    		<?php _e('You can <a href="#respond">leave a response</a>, or ','rgb')?><a href="<?php trackback_url(true); ?>" rel="trackback"><?php _e('trackback','rgb')?></a><?php _e(' from your own site. ','rgb')?>
    		<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Only Pings are Open */ ?>
    		<?php _e('Responses are currently closed, but you can ','rgb') ?><a href="<?php trackback_url(true); ?> " rel="trackback"><?php _e('trackback','rgb')?></a>		<?php _e(' from your own site. ','rgb') ?>
    		<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Comments are open, Pings are not */ ?>
    		<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed. ','rgb') ?>
    		<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Neither Comments, nor Pings are open */ ?>
    		<?php _e('Both comments and pings are currently closed. ','rgb') ?>
    		<?php } edit_post_link(__('Edit this entry.','rgb')); ?>
    	  </p>
    	  <?php } ?>
    	</div>
    	<?php  } /* End The Loop */ ?>
    	<?php /* Insert Paged Navigation */ if (!is_single()) { include (TEMPLATEPATH.'/navigation.php'); } ?>
    	<?php /* If there is nothing to loop */  } else { ?>
    	<h2 class="center">
    	  <?php _e('Not Found','rgb'); ?>
    	</h2>
    	<div class="entry">
    	  <p>
    		<?php _e('Oh no! You\'re looking for something which just isn\'t here! Fear not however, errors are to be expected, and luckily there are tools on the sidebar for you to use in your search for what you need.','rgb'); ?>
    	  </p>
    	</div>
    	<?php /* End Loop Init  */ } ?>

    And the comments.php

    <?php // Do not delete these lines
    				if (!empty($_SERVER['SCRIPT_FILENAME']) && '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="alert">This post is password protected. Enter the password to view comments.</p>
    	<?php
    						return;
    					}
    				}
    			?>
    	<div id="comment-section">
    	  <?php if ($comments) : ?>
    
    	  <ol id="commentlist">
    		<?php foreach ($comments as $comment) : ?>
    		<li id="comment-<?php comment_ID(); ?>">
              <span class="comment-header"><a href="#comment-<?php comment_ID(); ?>" class="counter" title="<?php _e('Permanent Link to this Comment','rgb'); ?>"><?php echo $comment_index; ?></a><?php comment_author_link() ?></span>
    		  <div class="comment-content">
    			<?php comment_text() ?>
    		  </div>
    		  <div class="comment-footer"> <span class="metacmt">
    			<?php _e('Comment on ','rgb') ?>
    			<a href="#comment-<?php comment_ID() ?>" title="Permalink to Comment">
    			<?php comment_date(__('M jS, Y','rgb')) ?>
    			<?php _e(' at ','rgb') ?>
    			<?php comment_time() ?>
    			</a></span>&nbsp;&nbsp;
    			<?php if ( $user_ID ) { edit_comment_link(__('Edit','rgb'),'<span class="metaedit">','</span>'); } ?>
    		  </div>
    		  <?php if ( ! $comment->comment_approved ): ?>
    		  <p class="alert"> <strong>
    			<?php _e('Your comment is awaiting moderation.','rgb'); ?>
    			</strong> </p>
    		  <?php endif; ?>
    		</li>
    		<?php endforeach; /* end for each comment */ ?>
    	  </ol>
    	  <!-- END #commentlist -->
    	  <?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. -->
    	  <ol id="commentlist">
    		<li id="leavecomment">
    		  <?php _e('No Comments','rgb'); ?>
    		</li>
    	  </ol>
    	  <?php else : // comments are closed ?>
    	  <!-- If comments are closed. -->
    	  <p class="alert">
    		<?php _e('Comments are currently closed.','rgb'); ?>
    	  </p>
    	  <?php endif; ?>
    	  <!-- END .comments 1 -->
    	  <?php endif; ?>
    	  <?php if ('open' == $post->comment_status) : ?>
          	  <div id="postComment" <?php if(get_option('rgb_shelf') == 1) { ?>style="display:none;"<?php } ?>>
    	  <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
    	  <p class="alert"><?php printf(__('You must <a href="%s">login</a> to post a comment.','rgb'), get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink()); ?></p>
    	  <?php else : ?>
    		<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    		  <?php if ( $user_ID ) : ?>
    		  <p class="alert"><?php printf(__('Logged in as %s.','rgb'), '<a href="' . get_option('siteurl') . '/wp-admin/profile.php">' . $user_identity . '</a>') ?><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account','rgb'); ?>">
    			<?php _e('Logout','rgb'); ?>
    			&raquo;</a></p>
              <?php elseif ($comment_author != "") : ?>
    		  <p class="alert"><?php printf(__('Welcome back <strong>%s</strong>.','rgb'), $comment_author) ?></p>
    		  <?php endif; ?>
    		  <?php if ( !$user_ID ) : ?>
    		  <p>
    			<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    			<label for="author"><strong>
    			<?php _e('Name','rgb'); ?>
    			</strong>
    			<?php if ( $req ): _e('(Required)','rgb'); endif; ?>
    			</label>
    		  </p>
    		  <p>
    			<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    			<label for="email"><strong>
    			<?php _e('Mail','rgb'); ?>
    			</strong>
    			<?php _e('(Will not be published)','rgb'); ?>
    			<?php if ( $req ): _e('(Required)','rgb'); endif; ?>
    			</label>
    		  </p>
    		  <p>
    			<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    			<label for="url"><strong>
    			<?php _e('Website','rgb'); ?>
    			</strong></label>
    		  </p>
    		  <?php endif; ?>
    		  <p>
    			<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
    		  </p>
    		  <p>
    			<input name="submit" type="submit" id="submit" tabindex="5" value="<?php _e('Submit Comment','rgb'); ?>" />
    			<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    			<?php do_action('comment_form', $post->ID); ?>
    		  </p>
    		</form>
    
    	  <?php endif; // If registration required and not logged in ?>	  </div>
    	  <!-- END .comments #2 -->
    	  <?php endif; // if you delete this the sky will fall on your head ?>
    	  <?php if((get_option('rgb_shelf') == 1)&&('open' == $post->comment_status)) { ?>
    	  <span class="thickboxbtn"><a href="#TB_inline?height=400&width=450&inlineId=postComment" id="respond" class="thickbox" title="<?php _e('Post Your Comment (Press Esc to Close)','rgb'); ?>">
    	  <?php _e('Post your comment','rgb');  ?>
    	  </a></span>
    	  <?php } ?>
    	  <div class="clear"></div>
    	</div>
    	<?php include (TEMPLATEPATH . '/navigation.php'); ?>

    What do u guys think?

    also deleted the recommended sections of single.php from the default theme just in case

    make a backup copy first

    theloop.php:

    <p class="intro">
    		<?php _e('This entry is filed under ','rgb')?><?php the_category(', ') ?><?php _e('. ','rgb')?><?php the_tags(__(' And tagged with ','rgb'),', ','.') ?>
    		<?php _e('You can follow any responses to this entry through ','rgb') ?><?php comments_rss_link(__('RSS 2.0','rgb')) ?><?php _e('. ','rgb')?>
    		<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Both Comments and Pings are open */ ?>
    		<?php _e('You can <a href="#respond">leave a response</a>, or ','rgb')?><a href="<?php trackback_url(true); ?>" rel="trackback"><?php _e('trackback','rgb')?></a><?php _e(' from your own site. ','rgb')?>
    		<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { /* Only Pings are Open */ ?>
    		<?php _e('Responses are currently closed, but you can ','rgb') ?><a href="<?php trackback_url(true); ?> " rel="trackback"><?php _e('trackback','rgb')?></a>		<?php _e(' from your own site. ','rgb') ?>
    		<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Comments are open, Pings are not */ ?>
    		<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed. ','rgb') ?>
    		<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { /* Neither Comments, nor Pings are open */ ?>
    		<?php _e('Both comments and pings are currently closed. ','rgb') ?>
    		<?php } edit_post_link(__('Edit this entry.','rgb')); ?>
    	  </p>

    wow, i should have seen that. Thanks for the quick response alchymyth!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Can I remove this in the messages?’ is closed to new replies.