You are very welcome Ammaletu!
Schön, dass das Team so kompetent unterstützt wird.
Beiträge von maxe
-
-
-
da gibt es z.B. noch die AntispamBee als Plugin. Das löscht zukünftig dann autom. allen Spam raus. So kannst du dann alle übrigen Kommentare freigeben.
-
um es jetzt noch schöner anzupassen, kannst du über die callback-funktion gehen:
PHP<ol class="pinglist"> <?php wp_list_comments('type=pings[COLOR=Red]&callback=list_pings[/COLOR]'); ?> </ol>In der functions.php deines Themes (falls nicht vorhanden einfach eine erstellen) kannst du dann die Ausgabe der Pingbacks bearbeiten, z.B. so:
PHP<?php // formatiert ueber die callback-Funktion die Pings in den Kommentaren function list_pings($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="comment-<?php comment_ID(); ?>"> <?php comment_author_link(); ?> <?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()) ?> <?php comment_text() ?> <?php } ?>Und wenn das dann funktioniert hat, kannst du auch noch über die css class .pinglist das css nach deinen Wünschen formatieren, musst du aber nicht.
-
Da geht das Eintragen des Texts im Template direkt aber schneller ;-))
da geb ich Mauki aber recht, eleganter wäre es, wenn man den Artikel übers Backend schreiben/ändern könnte

-
was meinst du denn mit cache?
Ich rede vom php-memory-limit. Vermutlich hat dir dein Hoster zuwenig eingeräumt. Frag ihn mal wieviel du hast und falls du weniger als 64MB hast, bitte ihn das limit auf 64MB zu erhöhen. -
-
Ungetestet versuch es erst mal so, evtl. musst du dann noch css anpassen (oder noch komplizierter über eine callback-funktion gehen):
[LEFT]
PHP
Alles anzeigen<?php /** * @package WordPress * @subpackage Default_Theme */ // Do not delete these lines if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!'); if ( post_password_required() ) { ?> <p class="nocomments">Dieser Beitrag ist mit einem Passwort geschützt. Gib das Passwort ein, um die Kommentare sehen zu können!</p> <?php return; } ?> <!-- You can start editing here. --> <?php if ( have_comments() ) : ?> <h3 id="comments"><?php comments_number('Keine Kommentare', '1 Kommentar', '% Kommentare' );?> zu “<?php the_title(); ?>”</h3> <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <ol class="commentlist"> <?php wp_list_comments([COLOR=Red]'type=comment'[/COLOR]); ?> </ol> [COLOR=Red] <ol class="commentlist"> <?php wp_list_comments([/COLOR][COLOR=Red]'type=pings'); ?> </ol>[/COLOR] <div class="navigation"> <div class="alignleft"><?php previous_comments_link() ?></div> <div class="alignright"><?php next_comments_link() ?></div> </div> <?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">Kommentarfunktion ist deaktiviert!</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post->comment_status) : ?> <div id="respond"> <h3><?php comment_form_title( 'Einen Kommentar hinterlassen', 'Einen Kommentar hinterlassen zu %s' ); ?></h3> <div class="cancel-comment-reply"> <small><?php cancel_comment_reply_link(); ?></small> </div> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>">eingeloggt sein</a> um einen Kommentar schreiben zu können!.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Eingeloggt als: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Ausloggen »</a></p> <?php else : ?> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="author"><small>Name <?php if ($req) echo "(erforderlich)"; ?></small></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /> <label for="email"><small>Mailadresse (wird nicht veröffentlicht) <?php if ($req) echo "(erforderlich)"; ?></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>Webseite</small></label></p> <?php endif; ?> <!--<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>--> <p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar senden" /> <?php comment_id_fields(); ?> </p> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> </div> <?php endif; // if you delete this the sky will fall on your head ?>[/LEFT]
-
Du könntest vor dem eigentlichen Loop einen weiteren aufmachen, wo du über den Parameter P oder NAME nur den gewünschten Posts ausgibst. In diesem Loop kannst du dann ja Datum und Cat weglassen.
-
-
-
Ungetestet würde ich den Code oben wie folgt ändern:
PHP
Alles anzeigen<?php ob_start(); ?> <?php $icons = array(); ?> [COLOR=Red]<?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="" /> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> <?php $icons[] = ob_get_clean(); ?><?php endif; ?>[/COLOR] <?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostDateIcon.png" width="18" height="17" alt="" /> <?php the_time(__('F jS, Y', 'kubrick')) ?> um <img src="<?php bloginfo('template_url'); ?>/images/clock.png" width="18" height="18" alt="" /><?php the_time('G:i'); ?> <?php $icons[] = ob_get_clean(); ?><?php endif; ?> <?php if (!is_page()): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="" /> <?php _e('Author', 'kubrick'); ?>: <?php the_author_posts_link() ?> <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (current_user_can('edit_post', $post->ID)): ?><?php ob_start(); ?><img src="<?php bloginfo('template_url'); ?>/images/PostEditIcon.png" width="14" height="14" alt="" /> <?php edit_post_link(__('Edit', 'kubrick'), ''); ?> <?php $icons[] = ob_get_clean(); ?><?php endif; ?><?php if (0 != count($icons)): ?> <div class="art-PostHeaderIcons art-metadata-icons"> <?php echo implode(' | ', $icons); ?> -
gericoach wollte ca. die Zeilen 640-655 aus der functions.php.
-
-
außerdem sieht das nach zu wenig php-memory aus. Such mal danach im Forum.
-
kopiere dir die index.php deines Themes in eine home.php. Dort kannst du dann z.B. hartcodiert deinen Einleser reinschreiben.
Oder aber du sagst beim gewünschten Artikel bei Sichtbarkeit "Diesen Artikel auf der Startseite halten". -
erstelle ein eigenes Seitentemplate welches du dann der statischen Seite zuordnest.
-
Da du noch eine alte comments.php nutzt helfen die Tipps im anderen Thread nicht. Für die alten comments.php gibt es einige Anleitungen im Netz, z.B.:
http://www.texto.de/kommentare-pings-trackbacks-trennen-249/
http://bueltge.de/wordpress-trac…hne-plugin/299/ -
-
Mal einen Link zum Blog?