leo22
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Themes and Templates
In reply to: PHP Include ProblemsCan someone please help?
Forum: Themes and Templates
In reply to: Seeking someone who can help turn my psd into a templateMaybe I’ll be able to do it. What’s the link to your current blog? And e-mail me or post the template please. ??
Forum: Themes and Templates
In reply to: Alternating Commentsby the way, this is the code for my comments.php page:
<?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 ?> This post is password protected. Enter the password to view comments. <?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'comment_bottom'; ?> <!-- You can start editing here. --> <?php if ($comments) : ?> <ol> <?php $commentcounter = 0; ?> <?php foreach ($comments as $comment) : ?> <?php $commentcounter++; ?> <div class="comment_top"></div><div class="comment_middle"> <div class="comment_num"><li id="comment-<?php comment_ID() ?>"> <?php echo $commentcounter; ?>. </div> <div class="comment_text"> <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <?php comment_text() ?> </li> </div> </div><div class="comment_bottom">Posted by <a href="#"><?php comment_author_link() ?></a> on <a href="#comment-<?php comment_ID() ?>" title="" class="datelink"><?php comment_date('M j, Y') ?> @ <?php comment_time() ?></a> <?php edit_comment_link('(Edit)','',''); ?></div> <?php /* Changes every other comment to a different class */ if ('comment_bottom' == $oddcomment) $oddcomment = ''; else $oddcomment = 'comment_bottom'; ?> <?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) : ?> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <br />You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>" class="datelink">logged in</a> to post a comment. <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <br />Logged in as <a class="datelink" 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="Log out of this account" class="datelink">Logout »</a><br /> <?php else : ?> <br /><strong>Name</strong>: <?php if ($req) echo "*"; ?><br /> <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="97%" tabindex="1" /> <br /><strong>E-Mail</strong>: <?php if ($req) echo "*"; ?> (not displayed)<br /> <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="97%" tabindex="2" /> <br /><strong>Website</strong>:<br /> <input value="https://elena.esaudrae.net/" type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="97%" tabindex="3" /> <?php endif; ?> <br /><strong>Comment</strong>:<br /> <textarea name="comment" id="comment" cols="60%" rows="6" tabindex="4"></textarea> <br /><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> <input type="reset" name="reset" value="Reset Comment"> <?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 ?>
Forum: Fixing WordPress
In reply to: Footer is not going downcwoodside, I’ve tried added a value in “clear:;” but it messed up even more, if anything. That value, of course, was “both.”
Viewing 4 replies - 1 through 4 (of 4 total)