16.12.2008, 08:08
|
#11 (permalink)
| | PostRank: 2
Registriert seit: 08.03.2008
Beiträge: 71
| Zitat:
Zitat von typhaeus wp-includes/comment-template.php
doch, kannst du leicht testen, aber die zitierte Codezeile gehört wohl aus der comments.php raus!
hoffe du kriegst es hin! | soooo weil ich erstmal keene zeit habe, das aber gehen muss, hab ich das erstmal (bitte lieber gott verzeih mir) richig unsauber gelöst! - geht aber erstmal.
Statt der Ausgabe: Achtung: Der Kommentar muß erst noch freigegeben werden.
Gebe ich einfach <?php comment_text()?> aus.
Scheint erstmal zu klappen, notdürftig, unsauber - ja eigentlich schon verboten, aber ich muss erstmal nich jeden kommentar freischalten.
ich werd das natürlich noch an das neue anpassen, aber fürs erste reichts. |
| |
16.12.2008, 13:58
|
#12 (permalink)
| | PostRank: 1
Registriert seit: 12.03.2008
Beiträge: 42
| Hüüülfe!
Ich kann Kommentare, welche auf "Vorgemerkt" stehen nicht freigeben... Es kommt einfach eine weisse Seite!
Ich habe das Theme Travelgrunge von ElegantWPThemes im Gebrauch und habe keine Ahnung, an was das liegt...
Ich habe jetzt schon Stunden damit verbracht, irgendwelche englischen Anleitungen zu lesen und verstehe nur Bahnhof!
Kann mir da jemand helfen?!
Hier meine comments.php... an der wird es wohl liegen, oder?! 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
?>
<h2><?php _e("This post is password protected. Enter the password to view comments."); ?></h2>
<?php
return;
}
}
$oddcomment = '-alt';
?>
<div id="comments-template">
<?php include (TEMPLATEPATH . '/paginate.php'); ?>
<?php
global $bm_comments;
global $bm_trackbacks;
split_comments( $comments );
$aemail = get_the_author_email();
?>
<?php if ( $comments ) : ?>
<?php
$trackbackcounter = count( $bm_trackbacks );
$commentcounter = count( $bm_comments );
?>
<h4 id="comments"><?php echo $commentcounter; ?> Users Response In This Post</h4>
<?php foreach ($bm_comments as $comment) : ?>
<?php if ($comment->comment_author_email == $aemail) { ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp-author">
<div class="com-content-author">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom-author"></div>
</div>
</div>
<?php } else { ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>
<?php } ?>
<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>
<?php if ( count( $bm_trackbacks ) > 0 ) { ?>
<h4><?php echo $trackbackcounter; ?> Pingback & Trackback On This Post</h4>
<?php foreach ($bm_trackbacks as $comment) : ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>
<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>
<?php } ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<?php if (get_option('comment_registration') && !$user_ID) : ?>
<h2>Sorry you must register to comments in this post</h2>
<?php else : ?>
<h4>Leave A Reply Here</h4>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if (!$user_ID) : ?>
<label>Username: <span>*required</span></label>
<p><input name="author" type="text" class="comfield" value="<?php echo $comment_author; ?>"/></p>
<label>Email Address: <span>*required</span></label>
<p><input name="email" type="text" class="comfield" value="<?php echo $comment_author_email; ?>"/></p>
<label>Homepage:</label>
<p><input name="url" type="text" class="comfield" value="<?php echo $comment_author_url; ?>"/></p>
<?php endif; ?>
<label><?php comments_rss_link('Comments RSS'); ?> | <a href="<?php trackback_url(); ?>">Trackback URI</a></label>
<?php if(function_exists("wp_grins")) { ?>
<p><?php wp_grins(); ?></p>
<?php } ?>
<p>
<script type='text/javascript'>
quicktagsL10n = {
quickLinks: "(Quick Links)",
wordLookup: "Enter a word to look up:",
dictionaryLookup: "Dictionary lookup",
lookup: "lookup",
closeAllOpenTags: "Close all open tags",
closeTags: "close tags",
enterURL: "Enter the URL",
enterImageURL: "Enter the URL of the image",
enterImageDescription: "Enter a description of the image"
}
</script>
<script type="text/javascript">edToolbar()</script>
</p>
<p>
<textarea name="comment" cols="50%" rows="8" id="comment" class="comarea"></textarea>
<script type="text/javascript">var edCanvas = document.getElementById('comment');</script>
</p>
<p><input name="s" type="submit" class="submit-button" id="s" value="Submit my comment"/><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
</form>
<p id="respond"><?php do_action('comment_form', $post->ID); ?></p>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>
|
| |
16.12.2008, 15:05
|
#13 (permalink)
| | PostRank: 2
Registriert seit: 08.03.2008
Beiträge: 71
| also das scheint ja nen sehr häufiges problem zu sein.
ich habe meine comments.php auch stark modifiziert mit avatars, quotes, etc...
egal was ich auch versuche... das klappt nicht. ich bekomme immer und immer wieder diese nervende meldung ich solle den kommentar freigeben.
gibts denn da keine lösung für? auch das anpassen an die neue comment.php klappt nicht wirklich. bekomme immer nur die standardformatierung vorgesetzt |
| |
16.12.2008, 20:25
|
#14 (permalink)
| | PostRank: 0
Registriert seit: 14.12.2008
Beiträge: 8
| Check deine Anzahl der Links in den Einstellungen Diskussion und erhöhe sie gegebenenfalls stark. Achte auf Konflikte mit Askimet! |
| |
16.12.2008, 21:29
|
#15 (permalink)
| | PostRank: 1
Registriert seit: 14.07.2007
Beiträge: 29
| Ganz toll. Heute hab ich selber in meinem Blog kommentiert - nicht eingeloggt - und der Kommentar wurde ebenfalls in die Moderation verschoben.
(Bei wordpress.com tritt das Problem auch immer noch hier und da auf.)
Das ändern der comments.php scheint ja nicht die Lösung zu sein, wie moeppy berichtet. Weiß denn niemand, woran das liegt und vor allem warum es erst nach dem Wechsel auf 2.7 auftritt? |
| |
17.12.2008, 06:36
|
#16 (permalink)
| | PostRank: 0
Registriert seit: 14.12.2008
Beiträge: 8
| ich bin ja auch nicht ganz sicher, aber mir ging es genau so und Schuld waren die Smileys im Kommentar (zusammen mit dem Gravatar). Habe die Linkanzahl in den Einstellungen Diskussion erhöht und bin mit dem selben Kommentar nicht mehr hängen geblieben ... |
| |
17.12.2008, 09:34
|
#17 (permalink)
| | PostRank: 2
Registriert seit: 08.03.2008
Beiträge: 71
| Zitat:
Zitat von typhaeus ich bin ja auch nicht ganz sicher, aber mir ging es genau so und Schuld waren die Smileys im Kommentar (zusammen mit dem Gravatar). Habe die Linkanzahl in den Einstellungen Diskussion erhöht und bin mit dem selben Kommentar nicht mehr hängen geblieben ... | dann versuch ich das auch mal. bei mir sind auch die smilies mit dabei und wenn ich das jetz so verfelge könnte es sein, das wenn ein kommentar geblockt wurde, es auch einer mit mehreren smilies drin war.
ich probier das mal aus, behalte es im auge und sag bescheid ob das dann auch bei mir geklappt hat |
| |
17.12.2008, 11:47
|
#18 (permalink)
| | PostRank: 2
Registriert seit: 12.01.2008
Beiträge: 71
| |
| |
17.12.2008, 12:16
|
#19 (permalink)
| | PostRank: 1
Registriert seit: 14.07.2007
Beiträge: 29
| Ich hab jetzt noch mal geguckt, bei mir waren es offensichtlich auch Kommentare mit mehr als einem Smilie. Danke für die Links @dome, dann hoffen wir mal, dass ich da mal schnell einer "erbarmt".
Ich hab jetzt übergangsweise auch mal die Linkzahl in den Diskussionseinstellungen erhöht. |
| |
19.12.2008, 07:43
|
#20 (permalink)
| | PostRank: 0
Registriert seit: 30.04.2008 Ort: Im tiefen Süden ;-)
Beiträge: 8
| Ha! Die Svenja! Hi Du!
Ähm, zurück zum Thema: Meiner Ansicht nach MUSS es tatsächlich ein Bug sein, der fälschlicherweise alle Smileys als Link zählt. Läge der Fehler an der comments.php, würde er grundsätzlich auftauchen und nicht nur sporadisch. Ansonsten kann ich aus meinen Tests heraus bestätigen: Sobald mehr Smileys als die in den Optionen eingetragene Maximal-Linkzahl eingefügt werden, landen die Kommentare in der Moderation. Man könnte das auch als Feature bezeichnen, aber ob das so gewollt war?
Einen Bugfix können wir wohl erst in rund vier Wochen erwarten (es sei denn, man legt selbst Hand am Quellcode an). Die Erfahrung zeigt, dass das erste Release nach einer Veröffentlichung so lange auf sich warten lässt, um möglichst viele aufgetauchte Fehler einzufangen. |
| | | Themen-Optionen | | | | Ansicht | Linear-Darstellung |
Forumregeln
| Es ist dir nicht erlaubt, neue Themen zu verfassen. Es ist dir nicht erlaubt, auf Beiträge zu antworten. Es ist dir nicht erlaubt, Anhänge hochzuladen. Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten. HTML-Code ist aus. | | | Alle Zeitangaben in WEZ +1. Es ist jetzt 09:13 Uhr. | |