Beiträge von christianandreas
-
-
-
[FONT=Arial]Meine Seite: http://www.christianreiner.com[/FONT]
[FONT=Arial]Theme: twenty ten[/FONT]
[FONT=Arial]Version: WordPress 3.0.1. [/FONT]
[FONT=Arial]letzter Eingriff am comment-template (und dummerweise Backup verloren)[/FONT]
[FONT=Arial]Problem: Seite "hängt sich auf" bei weiterführenden links[/FONT]
[FONT=Arial]Frage: Wo kann ich die Ursprungsfassung der templates sehen oder wie kann ich die Grund-Einstellungen der Templates wieder herstellen. [/FONT]
[FONT=Arial]Anhang: derzeitige Version meines comment-templates[/FONT]
[FONT=Arial]Hallo. [/FONT]
[FONT=Arial]Ich bin relativ unerfahren in Programmierung und allem, was damit zusammenhängt, doch ich habe eine Wordpress-Seite, die ich selbst verwalte und an der ich in letzter Zeit auch mit Erfolg Änderungen in den TEMPLATES vornahm. Meist mit Hilfe einiger Foren und natürlich immer mit Backup. Doch gestern war ich kurz unaufmerksam und habe mein BACKUP für das Comments-Template[/FONT][FONT=Arial] (comments.php) verloren. Mir ist irgendein Fehler unterlaufen, den ich nun nicht mehr nachvollziehen kann. Auf meiner Seite wirkt sich das so aus, dass nun beim Klick auf einige seitenintern weiterführende Links (z.B. "Continue Reading") die Seite nicht mehr funktioniert und sich "aufhängt". Auch bei Klick auf Comments geschieht das, die habe ich aber nun abgeschaltet.[/FONT]
[FONT=Arial]Nun würde ich ja in Kauf nehmen, dass ich noch mal "zurück zum Start" muss, aber ich finde nirgends eine Möglichkeit, zum Beispiel das comments-template auf den Ausgangspunkt zurückzustellen und habe auch keine Ahnung, was genau ich falsch gemacht habe.[/FONT]
[FONT=Arial]Ich weiss, dass das dumm war, unvorsichtig zu sein und man eigentlich die Finger von Sachen lassen sollte, die man nicht versteht, doch bisher hat alles geklappt und ich würde ja zukünftig noch vorsichtiger sein, doch nun bin ich erst mal am Ende meines Lateins.[/FONT]
[FONT=Arial]Kann mir irgendjemand helfen und einen Tipp geben, wie ich die Grundeinstellung des comment-templates wieder finde?[/FONT]
[FONT=Arial]Oder sieht jemand sogar meinen Fehler?[/FONT]
[FONT=Arial]Vielen Dank einstweilen, Christian[/FONT]
[FONT=Arial]Anhang: Template -[/FONT]
PHP
Alles anzeigen<?php /** * The template for displaying Comments. * * The area of the page that contains both current comments * and the comment form. The actual display of comments is * handled by a callback to twentyten_comment which is * located in the functions.php file. * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ ?> <div id="comments"> <?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p> </div><!-- #comments --> <?php /* Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have * to fully load the template. */ return; endif; ?> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h3 id="comments-title"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ), number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); ?></h3> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div> <!-- .navigation --> <?php endif; // check for comment navigation ?> <ol class="commentlist"> <?php /* Loop through and list the comments. Tell wp_list_comments() * to use twentyten_comment() to format the comments. * If you want to overload this in a child theme then you can * define twentyten_comment() and that will be used instead. * See twentyten_comment() in twentyten/functions.php for more. */ wp_list_comments( array( 'callback' => 'twentyten_comment' ) ); ?> </ol> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <div class="navigation"> <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </div><!-- .navigation --> <?php endif; // check for comment navigation ?> <?php else : // or, if we don't have comments: /* If there are no comments and comments are closed, * let's leave a little note, shall we? */ if ( ! comments_open() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyten' ); ?></p> <?php endif; // end ! comments_open() ?> <?php endif; // end have_comments() ?> <?php comment_form(); ?> </div><!-- #comments -->