Ist ja der Wahnsinn ^^
Ich danke Dir recht herzlich...
aber wozu gibt es diesen .alt Code?
Und wo wird er in der php eingebuden?
Hab ich was übersehen?
Beiträge von Garagechris
-
-
hier noch der code aus der Comment.php
PHP
Alles anzeigen<?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">This post is password protected. Enter the password to view comments.<p> <?php return; } } ?> <!-- You can start editing here. --> <div class="comments"> <?php if ($comments) : ?> <span><?php comments_number('Keine Antwort', 'Eine Antwort', '% Antworten' );?> to “<?php the_title(); ?></span> <ol id="commentlist"> <?php foreach ($comments as $comment) : ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>"> <?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar); ?> <?php comment_text() ?> <p><cite><?php comment_type(_c('Comment|noun'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Editieren"), ' |'); ?></p> </li><br> <?php endforeach; ?> </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; ?> </div> <div id="respond"> <?php if ('open' == $post->comment_status) : ?> <span>Leave a Reply</span><br /> <?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="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) echo "(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) echo "(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><textarea name="comment" id="comment" cols="60" 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> </div> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?>Ist nicht aufgeräumt, aber so war er schon von beginn an...
-
Ups^^
Schaut Euch die Kommentare der 3 Beiträge einfach mal an.
Ich hoffe Ihr könnt mir weiter helfen.Nein, es gibt keinen Eintrag im Css
-
Hallo Zusammen,
ich habe einen Blog erstellt.
Mit viel Mühe ist es mir gelungen, zu den einezelnen Kommentaren ein UserAvatar anzeigen zu lassen. Nun habe ich ein neues Problem.
Jeder 2. Kommentar ist irgendwie anders formatiert.der 1. Wird noch ordendlich angezeigt so wie er eigendlich aussehen sollte.
Der Kommentartext verläuft nicht unter das Avatar.Doch der 2. -4. 6. usw... Kommentar wird von der Schriftgröße und der Textlänge falsch angezeigt.
Ich habe in der comment.php folgendes entdeckt:
In der css gibt es aber keinen Hinweis. Und trotzdem wird jeder 2. Kommentar anders formatiert.
Habe diesen Codeschnipsel gelöscht. Und trotzdem hat sich an der Ansicht nichts verändert.hier ein auszug aus der CSS:
PHP
Alles anzeigen.comments { font-size:12px; font-weight: bold; color:#222222; padding-bottom:10px; padding-right:40px; width:350px; padding-top:20px; padding-left:20px; } #commentlist li ul { border-left: 0; border-right: 1px solid #ddd; } #commentlist li .avatar { float:left; margin-right: 0; margin-left: 12px; padding-left:410px; } .commentlist cite, .commentlist cite a { font-weight: bold; font-style: normal; font-size: 40px; color:#111111; weight:400px; text-decoration:none; } .commentmetadata { font-weight: normal; padding-left:0px; } .commentmetadata a { color:#FF8400; text-decoration:none; }Am besten schaut Ihr euch das mal selbst an. Nehmt den 1.Blogeintrag. Er hat 13 Kommentare.
Kann mir wer dabei helfen, dem Fehler auf die Schliche zu kommen?
Es ist übrigens das Odinnecke V4 Theme.