lance007
Forum Replies Created
-
I just cut the code from contact form and re-did it and the captcha seems to be working again. But the side bars are all F.u.
Kawauso,
I just checked out my other pages after I pasted your code and updated. They’re a bit screwed up.
Would you mind checking them for me.
The side bars appear to have moved down below the text and the contact form no longer has the Captcha symbols.damn.
p.s. who the hell is going to help me if you’re not around. You seem to be the only one on here who knows what he’s doing. Or are you female?
I don’t believe I ever got your name.Perfect. Thanks
I thought it might be something to do with the “visible” setting. i googled it before. I tried to change it to “collapse”, but that didn’t work.I will definitely start learning how to code – will check out the links.
Why aren’t you going to be around?
You didn’t say whether you have a blog or company website?Lance
ok – thanks.
So should I just copy and paste what you have above?
Would you mind giving me a short explanation of what was wrong and what code changes you made? Trying to learn as I go so I don’t have to ask you as many questions in the future ??I like the “Post a Comment” link – just didn’t like the huge blank space.
Thanks
p.s. I had already checked the profile options before asking you and didn’t find an option for email notification.Great Thanks.
You didn’t answer whether there’s a way to set up an email notification when someone posts on a thread I started? How am I supposed to know when people answer my questions?Ok – I have tried again below. If you give me an email address I can send it to you in a text document.
Here you go:
Comments.php:<?php if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die (__('Please do not load this page directly.', 'emerald_stretch')); if (!empty($post->post_password)) { if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { ?> <p><?php _e('This post is password protected. Enter the password to read comments.', 'emerald_stretch'); ?></p> <?php return; } } $oddcomment = 'alt'; ?> <div id="respond"> <?php if ($comments) : ?> <h1><?php comments_number(__('No Responses','emerald_stretch'), __('One Response','emerald_stretch'), __('% Responses','emerald_stretch')); //_e(' to “','emerald_stretch'); the_title(); _e('”', 'emerald_stretch'); ?></h1> <div id="comment-area"> <ol> <?php foreach ($comments as $comment) : ?> <li class="<?php echo $oddcomment; ?> <?php if (function_exists('author_highlight')) { ?> <?php author_highlight(); ?><?php } ?>" id="comment-<?php comment_ID() ?>"> <p class="commenter"><?php echo get_avatar( $comment, 48 ); ?> <?php comment_author_link() ?><span class="comment-info"> - <?php comment_date(__('F j, Y', 'emerald_stretch')) ?></span></p> <?php if ($comment->comment_approved == '0') : ?> <span class="comment-moderation"><?php _e('??? Your comment is awaiting moderation ???', 'emerald_stretch'); ?></span> <?php endif; ?> <?php comment_text() ?> </li> <?php if ('alt' == $oddcomment) $oddcomment = ''; else $oddcomment = 'alt'; ?> <?php if ( is_home() ) { static $comment_output_count = 0; $comment_output_count++; if ( $comment_output_count == 3 ) break; } ?> <?php endforeach; ?> </ol> </div> <?php if ( !is_home() ) : ?> <?php if ('closed' == $post->comment_status) : ?> <!-- <h3><?php _e('Comments are closed for this entry.', 'emerald_stretch'); ?></h3> --> </div> <?php endif; ?> <?php else : ?> <?php if ('open' == $post->comment_status) : ?> <?php else : ?> <!-- <h3><?php _e('Comments are closed for this entry.', 'emerald_stretch'); ?></h3> --> </div> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <?php if ( is_home() ) : ?><a href="javascript:void()" onclick="document.getElementById('comment-form-<?php the_ID(); ?>').style.visibility = 'visible'">Post comment</a><?php endif; ?> <?php if ( is_home() ) : ?> <div id="comment-form-<?php the_ID(); ?>" style="visibility: hidden;"> <?php else : ?> <div id="comment-form"> <?php endif; ?> <h1><?php _e('Post a Comment', 'emerald_stretch'); ?></h1> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p><?php _e('You must be', 'emerald_stretch'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in', 'emerald_stretch'); ?></a><?php _e(' to post a comment', 'emerald_stretch'); ?>.</p> </div> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p><?php _e('Logged in as', 'emerald_stretch'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <?php wp_loginout(); ?>.<!-- <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account', 'emerald_stretch'); ?>"><?php _e('Log out »', 'emerald_stretch'); ?></a> --></p> <?php else : ?> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="author"><?php _e('Name', 'emerald_stretch'); ?><?php if ($req) _e(', required', 'emerald_stretch'); ?></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="email"><?php _e('Email (will not be published)', 'emerald_stretch'); ?><?php if ($req) _e(', required', 'emerald_stretch'); ?></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" /> <label for="url"><?php _e('Your Website (optional)', 'emerald_stretch'); ?></label></p> <?php endif; ?> <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p> <?php do_action('comment_form', $post->ID); ?> <p> <input name="submit" class="button" type="submit" id="submit" tabindex="5" value="<?php _e('Submit', 'emerald_stretch'); ?>" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> </form> </div> <?php endif; ?> </div> <?php endif; ?> <?php else : ?> </div> <?php endif; ?>
————–
and Index.php<?php get_header(); ?> <!-- CONTENT --> <div id="content-wrapper"> <div id="content"> <a href="#bottom">Bottom of Page</a> <div style="height:8px;"></div> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','emerald_stretch'); ?><?php the_title(); ?>"><?php the_title(); ?></a></h1> <?php the_content(__('Read the rest of this post »','emerald_stretch')); ?> <?php $withcomments = true; comments_template(); ?> <p id="postmeta"> <img src="<?php bloginfo('template_directory'); ?>/img/calendar.gif" /><a href="<?php bloginfo('url'); ?>/<?php the_time('Y') ?>/<?php the_time('m') ?>/" title="<?php _e('View all posts for the month of','emerald_stretch'); ?> <?php the_time(__('F, Y','emerald_stretch')) ?>"><?php the_time(__('F j, Y','emerald_stretch')) ?></a> <img src="<?php bloginfo('template_directory'); ?>/img/tag.gif" /><?php the_tags(__('Tags','emerald_stretch') . ': ', ', ', ' '); ?> <?php _e('Posted in', 'emerald_stretch'); ?>: <?php the_category(', ') ?> <img src="<?php bloginfo('template_directory'); ?>/img/comments.gif" /><?php comments_popup_link(__('COMMENTS','emerald_stretch'), __('ONE COMMENT','emerald_stretch'), __('% COMMENTS','emerald_stretch'), '', __('Comments Closed', 'emerald_stretch')); ?> <span class="editlink"><?php edit_post_link(__('Edit','emerald_stretch'),'',''); ?></span> </p> <?php endwhile; ?> <a href="#top">Top of Page</a> <br /> <ul class="postnav"> <li class="left"><?php next_posts_link(__('« Older Entries','emerald_stretch')) ?></li> <li class="right"><?php previous_posts_link(__('Newer Entries »','emerald_stretch')) ?></li> </ul> <?php else : ?> <h1><?php _e('Oops! This blog is brand new','emerald_stretch'); ?></h1> <p><?php _e('No posts were found.','emerald_stretch'); ?></p> <?php endif; ?> </div> <!-- /CONTENT --> <?php get_sidebar(); ?> <?php get_footer(); ?> <a name="bottom"></a>
Forum: Fixing WordPress
In reply to: Comments all screwed upI don’t understand. Could you explain what you mean and why?
Thanks
Funny you should mention cancer research. My friend recently sent me a donation link for a cancer charity because he is participating in a run. I will now definitely donate some money.
Curious – is there any way to set up something on this support site that sends me an email when someone posts something to a thread I started?
Thanks again for your help.
Here is my comments.php:
<?php
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die (__('Please do not load this page directly.', 'emerald_stretch'));if (!empty($post->post_password)) {
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) {
?>
<p><?php _e('This post is password protected. Enter the password to read comments.', 'emerald_stretch'); ?></p>
<?php
return;
}
}
$oddcomment = 'alt';
?><div id="respond">
<?php if ($comments) : ?>
<h1><?php comments_number(__('No Responses','emerald_stretch'), __('One Response','emerald_stretch'), __('% Responses','emerald_stretch')); //_e(' to “','emerald_stretch'); the_title(); _e('”', 'emerald_stretch'); ?></h1>
<div id="comment-area">-
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?> <?php if (function_exists('author_highlight')) { ?> <?php author_highlight(); ?><?php } ?>" id="comment-<?php comment_ID() ?>"><p class="commenter"><?php echo get_avatar( $comment, 48 ); ?> <?php comment_author_link() ?><span class="comment-info"> - <?php comment_date(__('F j, Y', 'emerald_stretch')) ?></span></p>
<?php if ($comment->comment_approved == '0') : ?>
<span class="comment-moderation"><?php _e('??? Your comment is awaiting moderation ???', 'emerald_stretch'); ?></span>
<?php endif; ?>
<?php comment_text() ?><?php
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?><?php
if ( is_home() ) {
static $comment_output_count = 0;
$comment_output_count++;
if ( $comment_output_count == 3 )
break;
}
?><?php endforeach; ?>
</div>
<?php if ( !is_home() ) : ?>
<?php if ('closed' == $post->comment_status) : ?>
<!-- <h3><?php _e('Comments are closed for this entry.', 'emerald_stretch'); ?></h3> -->
</div>
<?php endif; ?><?php else : ?>
<?php if ('open' == $post->comment_status) : ?>
<?php else : ?>
<!-- <h3><?php _e('Comments are closed for this entry.', 'emerald_stretch'); ?></h3> -->
</div>
<?php endif; ?>
<?php endif; ?><?php if ('open' == $post->comment_status) : ?>
<?php if ( is_home() ) : ?>').style.visibility = 'visible'">Post comment<?php endif; ?>
<?php if ( is_home() ) : ?>
<div id="comment-form-<?php the_ID(); ?>" style="visibility: hidden;">
<?php else : ?>
<div id="comment-form">
<?php endif; ?>
<h1><?php _e('Post a Comment', 'emerald_stretch'); ?></h1>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p><?php _e('You must be', 'emerald_stretch'); ?> /wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>"><?php _e('logged in', 'emerald_stretch'); ?><?php _e(' to post a comment', 'emerald_stretch'); ?>.</p>
</div>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
<p><?php _e('Logged in as', 'emerald_stretch'); ?> /wp-admin/profile.php"><?php echo $user_identity; ?>. <?php wp_loginout(); ?>.<!-- /wp-login.php?action=logout" title="<?php _e('Log out of this account', 'emerald_stretch'); ?>"><?php _e('Log out »', 'emerald_stretch'); ?> --></p>
<?php else : ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="30" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="author"><?php _e('Name', 'emerald_stretch'); ?><?php if ($req) _e(', required', 'emerald_stretch'); ?></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
<label for="email"><?php _e('Email (will not be published)', 'emerald_stretch'); ?><?php if ($req) _e(', required', 'emerald_stretch'); ?></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
<label for="url"><?php _e('Your Website (optional)', 'emerald_stretch'); ?></label></p>
<?php endif; ?>
<p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea></p>
<?php do_action('comment_form', $post->ID); ?>
<p>
<input name="submit" class="button" type="submit" id="submit" tabindex="5" value="<?php _e('Submit', 'emerald_stretch'); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
</form>
</div>
<?php endif; ?></div>
<?php endif; ?><?php else : ?>
</div>
<?php endif; ?>——————————
And here is my index.php file:
<?php get_header(); ?><!-- CONTENT -->
<div id="content-wrapper">
<div id="content"><div style="height:8px;"></div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h1>" rel="bookmark" title="<?php _e('Permanent Link to ','emerald_stretch'); ?><?php the_title(); ?>"><?php the_title(); ?></h1>
<?php the_content(__('Read the rest of this post »','emerald_stretch')); ?>
<?php $withcomments = true; comments_template(); ?>
<p id="postmeta">
<img src="<?php bloginfo('template_directory'); ?>/img/calendar.gif" />/<?php the_time('Y') ?>/<?php the_time('m') ?>/" title="<?php _e('View all posts for the month of','emerald_stretch'); ?> <?php the_time(__('F, Y','emerald_stretch')) ?>"><?php the_time(__('F j, Y','emerald_stretch')) ?>
<img src="<?php bloginfo('template_directory'); ?>/img/tag.gif" /><?php the_tags(__('Tags','emerald_stretch') . ': ', ', ', ' '); ?>
<?php _e('Posted in', 'emerald_stretch'); ?>: <?php the_category(', ') ?>
<img src="<?php bloginfo('template_directory'); ?>/img/comments.gif" /><?php comments_popup_link(__('COMMENTS','emerald_stretch'), __('ONE COMMENT','emerald_stretch'), __('% COMMENTS','emerald_stretch'), '', __('Comments Closed', 'emerald_stretch')); ?>
<span class="editlink"><?php edit_post_link(__('Edit','emerald_stretch'),'',''); ?></span>
</p><?php endwhile; ?>
Top of Page<ul class="postnav">
<li class="left"><?php next_posts_link(__('« Older Entries','emerald_stretch')) ?>
<li class="right"><?php previous_posts_link(__('Newer Entries »','emerald_stretch')) ?><?php else : ?>
<h1><?php _e('Oops! This blog is brand new','emerald_stretch'); ?></h1>
<p><?php _e('No posts were found.','emerald_stretch'); ?></p>
<?php endif; ?></div>
<!-- /CONTENT -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: RSS FEED NOT WORKINGOk – I got rid of the rss widget and I’m just using the “recent posts” widget – good enough.
And I found a plugin for the rss icon that says subscribe next to it.
thanksForum: Fixing WordPress
In reply to: Seeing the Posted Comments without clicking on a linkResolved – thanks
Kawauso,
By the way – I have no problem paying you for your help. I have a paypal account.thanks
Lance
Forum: Fixing WordPress
In reply to: RSS FEED NOT WORKINGHi esmi,
Thanks a lot for your help
1) What do you mean I have 2 posts in my wp feed? Where can I see that? When I look at my RSS feed I set up in the RSS widget on my sidebar I only see one.
2) People who have never seen an RSS feed would not know to click on the orange symbol in my sidebar. Is there something separate I can add that says something like “Click here to get RSS feed”? I would also like something that will show the posts and comments separately if possible.
I really don’t think it should take a day to populate. It has already been about 8 hours.
Lance
And if you have some time and know about rss issues, please check out my question under “RSS FEED NOT WORKING” posting – I’m dying over here.
Forum: Fixing WordPress
In reply to: RSS FEED NOT WORKINGThis is my Sidebar.php file code”
<!– RIGHT SIDEBAR –>
<div id=”sidebar-right”>
- <h2><?php _e(‘Categories’,’emerald_stretch’); ?></h2>
<?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Sidebar 2’) ) : else : ?>
-
<?php wp_list_cats(‘sort_column=name’); ?>
- <h2><?php _e(‘Archives’,’emerald_stretch’); ?></h2>
-
<?php wp_get_archives(‘type=monthly’); ?>
- <h2><?php _e(‘Meta’,’emerald_stretch’); ?></h2>
-
<?php wp_register(); ?>
- <?php wp_loginout(); ?>
- ” title=”<?php _e(‘Syndicate this site using RSS’,’emerald_stretch’); ?>”><?php _e(‘Entries RSS’,’emerald_stretch’); ?>
- ” title=”<?php _e(‘The latest comments to all posts in RSS’,’emerald_stretch’); ?>”><?php _e(‘Comments RSS’,’emerald_stretch’); ?>
<?php wp_meta(); ?>
<!–<h2>Search</h2>–>
<?php include_once (TEMPLATEPATH.”/searchform.php”); ?><?php endif; ?>
<?php include_once (TEMPLATEPATH.”/_linkads_right.php”); ?>
</div>
</div>
<!– LEFT SIDEBAR –>
<div id=”sidebar-left”>
-
<?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Sidebar 1’) ) : else : ?>
- <h2><?php _e(‘Recent Posts’,’emerald_stretch’); ?></h2>
-
<?php get_archives(‘postbypost’, 10); ?>
- <h2><?php _e(‘Blogroll’,’emerald_stretch’); ?></h2>
-
<?php get_links(-1, ‘
- ‘, ‘
‘, ‘ – ‘); ?>
<?php include_once (TEMPLATEPATH.”/_linkads_left.php”); ?>
<?php endif; ?>
</div>