Zurück   Bloggerstadt Blogger Forum - Der Treffpunkt für deutschsprachige Blogger! > Blog Technik > Wordpress > Installation & Konfiguration
Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren

Antwort
 
Themen-Optionen Ansicht
Alt 05.07.2008, 11:34   #1
Conni
Einwohner
 
Registriert seit: 13.03.2008
Beiträge: 69
Standard Fehler in den Kommentaren??

Ich habe seit einiger Zeit (wieder mal ) ein neues Theme drauf ... aber seitdem ich dieses habe,
werden die Smilies in den Kommentaren nicht mehr angezeigt.
Ich habe da das Wp-Grins Plug-In, aber sie erscheinen trotzdem nicht.

Kann mir einer von euch bewandten sagen, was ich in der comments.php ändern muss, dass die Smilies wieder angezeigt werden?

Das ist die comments.php Datei:

PHP-Code:
<?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;
        }
    }
?>


<?php # Count the number of comments and non-comments

$comment_count 0;
$pingback_count 0;

if(
$comments){
    foreach(
$comments as $comment){
        if(
get_comment_type() == 'pingback' || get_comment_type() == 'trackback'){
            
$pingback_count++;
        }elseif(
get_comment_type() == "comment"){
            
$comment_count++;
        }
    }
}

?>


<?php if($pingback_count != 0) : ?>
<div class="comments">
        <h2>Trackbacks</h2>
        <ul class="pingbacks">
            <?php foreach($comments as $comment) : ?>
                <?php if(get_comment_type() != "comment") : ?>
                    
                    <li><?php comment_author_link(); ?></li>
                    
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
</div>
<?php endif; ?>

<?php if($comments && $comment_count 0): ?>
<div class="comments">
        <h2>Meinungsmacher:</h2>
        
        <ul class="commentlist">

        <?php foreach ($comments as $comment) : ?>
            <?php if(get_comment_type() == "comment") : ?>
            <li class="<?php wpguy_author_highlight(); ?>" id="comment-<?php comment_ID() ?>">    
                <div class="commentmeta clearfix">
                    <div class="gravatar">
                        <?php wpguy_gravatar() ?>
                    </div>
                    <div class="commentinfo">
                        <span class="comment_author"><?php comment_author_link() ?></span>
                        <span class="comment_date"><?php comment_date('F jS, Y'?> at <?php comment_time() ?></span>
                    </div>
                </div>
                <div class="the_comment">
                    <?php comment_text() ?>
                </div>
            </li>
            <?php endif; ?>

        <?php endforeach; /* end for each comment */ ?>

        </ul>
</div>
<?php endif; ?>

<?php if ('open' == $post->comment_status) : ?>
    
<div class="yourcomment" id="respond">
    <h2> kommentieren: </h2>
    
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
        <div class="comment">
            <textarea name="comment"></textarea>
        </div>
        
        <?php if ( $user_ID ) : ?>
        
        <div class="comment_meta">
        <p><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 &raquo;</a></p>
        <p><input name="submit" type="submit" id="submit" tabindex="6" value="Submit Comment" />
        <input type="hidden" name="comment_post_ID" value="<?php echo $id?>" /></p>
        </div>
        
        <?php else : ?>
        
        <div class="comment_meta">
            <p><input type="text" name="author" id="author" tabindex="3" value="<?php echo $comment_author?>" /><label>Your Name <small>(Required)</small></label></p>
            <p><input type="text" name="email" id="email" tabindex="4" value="<?php echo $comment_author_email?>" /><label>Your Email Address <small>(Required, will not be published)</small></label></p>
            <p><input type="text" name="url" id="url" tabindex="5" value="<?php echo $comment_author_url?>" /><label>Your Website</label></p>
            <p><input name="submit" type="submit" id="submit" tabindex="6" value="Submit Comment" />
            <input type="hidden" name="comment_post_ID" value="<?php echo $id?>" /></p>
        </div>
        
        <?php endif; ?>
        
    </form>
    
</div>

<?php endif; ?>
__________________
Conni ist offline   Mit Zitat antworten
Anzeige:
Alt 05.07.2008, 12:30   #2
cimddwc
Einwohner
 
Benutzerbild von cimddwc
 
Registriert seit: 17.03.2008
Ort: PAF
Beiträge: 32
Standard

Ich tippe auf die fehlende ID in dieser Zeile:

HTML-Code:
<textarea name="comment"></textarea>
Versuch's also mal mit

HTML-Code:
<textarea name="comment" id="comment"></textarea>
__________________
cimddwc.net – über alles mögliche oder nichts...
cimddwc ist offline   Mit Zitat antworten
Alt 05.07.2008, 12:32   #3
mig
Stadtbekannt
 
Benutzerbild von mig
 
Registriert seit: 04.03.2008
Ort: Zetel (Niedersachsen)
Beiträge: 658
Standard

Probier mal das Plugin zu deaktivieren und dann wieder zu aktivieren.

EDIT: cimddws's Vorschlag klingt ja irgendwie kompetenter als meiner^^
__________________
wosch.

Geändert von mig (05.07.2008 um 14:52 Uhr).
mig ist offline   Mit Zitat antworten
Alt 05.07.2008, 12:35   #4
Conni
Einwohner
 
Registriert seit: 13.03.2008
Beiträge: 69
Standard

Jaaaa ... es geht wieder !!


Vielen lieben Dank für die schnelle Hilfe !!!!
__________________
Conni ist offline   Mit Zitat antworten
Antwort

Lesezeichen


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Gehe zu

wpSEO, das Plugin für WordPress SEO

  Danke an @Cindy von der Blogwiese

bloggerstadt.de ist ein Gemeinschaftsprojekt von Starkemedien und Oliver Pester
Powered by vBulletin® Version 3.7.0 (Deutsch)
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.