Starryskeyes
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Comment Styling with 3 or more styles (using array)?I was thinking something along these lines:
<?php $i = 0; ?> foreach ($comments as $comment) : $i++; ?> <li id="comment-<?php comment_ID() ?>" <?php switch ($i % 6) { case 0: echo 'class="image1comment"'; break; case 1: echo 'class="image2comment"'; break; case 2: echo 'class="image3comment"'; break; } ?>
It’s not working though and I’m not sure what I am missing.
Forum: Fixing WordPress
In reply to: Can't Post Comments – HELP PleaseYour archive shows that the more recent post was from last year. My guess is that in the Other Comment Settings section the default 14 days is in effect and needs to be deselected.
It would be the third one down and say:
Automatically close comments on articles older than 14 daysThat one would need to be turned off if it is on. Otherwise it is hard to help with out knowing your theme and any comment plugins you are using.
Forum: Themes and Templates
In reply to: [Hueman] Fixing the typo in the comments headerHi Steve,
Go to Appearance, Editor, then to right select comments.php file.
Scroll about 2/3 the way down and look for a string that looks about like this:
<?php if ('open' == $post-> comment_status) : ?> <h3 id="respond">What are you thoughts</h3>
If that is what you find, correct your typo there.
Otherwise if you are using a comments plug in look for similar in that .php file.
Good Luck!
Forum: Plugins
In reply to: [SEO Facebook Comment] Not receiving emails with new commentsHi Caroline,
Try double checking the email is typed in correctly, just in case.
Also, if you took a response you got in and created a filter for it to go to trash, (ie you marked it as spam) All your messages from wp may now be going to trash. I had a client do this once with their yahoo account via email forwarding.
So check your trash/spam too.
Good Luck!
Forum: Fixing WordPress
In reply to: Can't Post Comments – HELP PleaseHI Sonny,
It would help if you listed out what theme you are using and a link to your blog. Also, what have you tried to do so far?
First go to the Settings section of your blogs dashboard. Find the Discussions section and review your preferences for Other Comment Settings. Perhaps one of these settings should be adjusted.
Best,
Starry
Forum: Themes and Templates
In reply to: Conditional images for comment avatarsLet me try to better information.
I am using the Black-letterhead Theme.
I am using the following comments code and would also like to add alternating multiple images for comments other than the comments made by specific authors (which have specifications below):
——————————————–<?php foreach ($comments as $comment) : ?> <?php $isByAuthor = false; if($comment->comment_author_email == '[email protected]') { $isByAuthor = true; } ?> <?php $isByname = false; if($comment->comment_author_email == '[email protected]') { $isByname = true; } ?> <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> <cite><code><?php comment_author_link() ?></cite> says:</code> <?php if ($comment->comment_approved == '0') : ?> <em>Your comment is awaiting moderation.</em> <?php endif; ?> <small class="commentmetadata"><a>" title=""><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a> <?php edit_comment_link('e','',''); ?></small> <?php if($isByAuthor ) { echo '<div class="authorcomment">';} ?> <?php if($isByname ) { echo '<div class="Iamyscomment">';} ?> <?php comment_text() ?> <?php if($isByAuthor ) { echo '</div>';} ?> <?php if($isByIamys ) { echo '</div>';} ?> <?php endforeach; /* end for each comment */ ?>
[please remember to mark any posted code – https://codex.www.ads-software.com/Forum_Welcome#Posting_Code – the above code is partly corrupted]
——————–
I set up the CSS like this:
—————–.img1comment{ margin: 15px 50px 10px 50px; padding: 0px 0px 90px 0px; width: 550px text-align: left; background: url(https://blog/media/image1.png) no-repeat bottom; align: center }