Wow! Alles funktioniert. Nun muss ich noch ein paar Anpassungen (Name, E-Mail zum eintragen....) hinbekommen und bin glücklich.....:wink:
Tausend Dank.
Nerdlady
Beiträge von Nerdlady
-
-
So, beide Dateien sind im Childtheme. (Hatte ich gar nicht dran gedacht)
Und noch immer ist diese doofe Kommentarfunktion auf allen Seiten...
Verwirren möchte ich dich auf keinen Fall, bin so froh über deine Hilfe... -
wieso in die page.php. Du wolltest doch die guestbook.php verwenden.
Stimmt. Muss ich das dann in die guestbook.php schreiben?
-
[size=14][FONT=arial]Hm...ich weiß auch nicht. Irgendwie klappt das alles nicht. Nun steht auf jeder Seite die Möglichkeit etwas zu schreiben. Das war ja auf keinen Fall gewollt.
Wenn ich jetzt folgendes in die page.php schreibe:
[/FONT][/SIZE][size=14][FONT=arial]<?php comments_template( '', true ); ?>
ist das dann alles wieder gut? Nach drei Stunden Schlaf kann ich grad nicht denken...
Und es soll ja nur auf der Gästebuchseite möglich sein etwas einzutragen. Nicht auf allen....
Oh man.....
Nerdlady[/FONT][/SIZE] -
Oh, nun hab ich auf die Mütze bekommen.
Nichtsdestotrotz werde ich mein Glück morgen gegen Mittag wieder an den PC kriechen und gebe umgehend Laut.....
Bis morgen.....und Danke Mensmaximus...... -
Nun habe ich sie in eine txt verwandelt.....
Da ich gleich auf einen sehr wichtign Termin muss, kann ich erst ab 19 Uhr wieder hier schauen.
Was auch immer ich dann hier für eine Hilfe erhalte, ich bin nur froh, dass du überhaupt mal schaust.
Danke, danke....Oh je, jetzt steht da auch noch so etwas wie "Hinterlasse eine Antwort", dabei habe ich die guestbook.php und die guestbook_comments.txt in einen Ordner gelegt und erst einmal vom Server genommen.....
-
Ha, php Datei nicht möglich....
-
Bitte hänge die Datei als Anhang an. Die Formatierung wird durch das esacpen im Forum verändert, außerdem hemmt es den Lesefluss ;-)
Wie sende ich denn eine Datei? Hier geht ja nur ein Link oder ein Bild....
-
So, mit Dreamweaver noch noch einmal alle ersetzt und nun geht es noch immer nicht....
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 twentytwelve_comment() which is * located in the functions.php file. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) return; ?> <div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! ?> <?php comments_template( '/guestbook_comments.php', true ); ?> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php printf( _n( 'Ein Eintrag im “%2$s”', '%1$s Einträge im “%2$s”', get_comments_number(), 'twentytwelve' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?>; </h2> <ol class="commentlist"> <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> </ol><!-- .commentlist --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?> <?php /* If there are no comments and comments are closed, let's leave a note. * But we only want the note on posts and pages that had comments in the first place. */ if ( ! comments_open() && get_comments_number() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php $comments_args = array( 'title_reply'=>'Deinen Gästebucheintrag hinzufügen', 'label_submit'=>'Gästebucheintrag absenden', 'comment_field' => '<p class="comment-form-comment"><label for="comment">Deine Nachricht</label><br /><textarea id="comment" name="comment"></textarea></p>' ); comment_form($comments_args);?> </div><!-- #comments .comments-area --> -
.... Mit einem mac zu arbeiten ;-)
niemals... -
Ok, nun habe ich die, die ich gefunden habe korrigiert (DANKE), allerdings war das bestimmt nicht mein einziger Fehler, hier ist die neue Datei:
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 twentytwelve_comment() which is * located in the functions.php file. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) return; ?> <div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! ?> <?php comments_template( '/guestbook_comments.php', true ); ?> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php printf( _n( 'Ein Eintrag im “%2$s”', '%1$s Einträge im “%2$s”', get_comments_number(), 'twentytwelve' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); ?>; </h2> <ol class="commentlist"> <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> </ol><!-- .commentlist --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?> <?php /* If there are no comments and comments are closed, let's leave a note. * But we only want the note on posts and pages that had comments in the first place. */ if ( ! comments_open() && get_comments_number() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php $comments_args = array( ‘title_reply’=>’Deinen Gästebucheintrag hinzufügen’, ‘label_submit’=>’Gästebucheintrag absenden’, ‘comment_field’ => ‘<p class="comment-form-comment"><label for="comment">Deine Nachricht</label><br /><textarea id="comment" name="comment"></textarea></p>’ ); comment_form($comments_args);?> </div><!-- #comments .comments-area --> -
Dann steht etwas falsches in der guestbook_comments.php
Darf ich sie mal schreiben? Vllt findest du da ja auch einen Fehler....
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 twentytwelve_comment() which is * located in the functions.php file. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ /* * If the current post is protected by a password and * the visitor has not yet entered the password we will * return early without loading the comments. */ if ( post_password_required() ) return; ?> <div id="comments" class="comments-area"> <?php // You can start editing here -- including this comment! ?> <?php comments_template( '/guestbook_comments.php', true ); ?> <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php printf( _n( ‘Ein Eintrag im “%2$s”’, ‘%1$s Einträge im “%2$s”’, get_comments_number(), ‘twentytwelve’ ), number_format_i18n( get_comments_number() ), ‘<span>’ . get_the_title() . ‘</span>’ ); ?>; </h2> <ol class="commentlist"> <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> </ol><!-- .commentlist --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> <nav id="comment-nav-below" class="navigation" role="navigation"> <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> </nav> <?php endif; // check for comment navigation ?> <?php /* If there are no comments and comments are closed, let's leave a note. * But we only want the note on posts and pages that had comments in the first place. */ if ( ! comments_open() && get_comments_number() ) : ?> <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php $comments_args = array( ‘title_reply’=>’Deinen Gästebucheintrag hinzufügen’, ‘label_submit’=>’Gästebucheintrag absenden’, ‘comment_field’ => ‘<p class="comment-form-comment"><label for="comment">Deine Nachricht</label><br /><textarea id="comment" name="comment"></textarea></p>’ ); comment_form($comments_args);?> </div><!-- #comments .comments-area --> -
Hm...nun geht die Seite nicht mehr....
Herzinfarkt.... -
Hilfe!
An meiner guestbook.php ist irgendwas falsch und ich komme nicht dahinter was es ist:
Schauen könnt ihr auf wunschbraeune.com und ich drück die Daumen, dass ich hier Hilfe
bekomme..... Dankeschön....So sieht sie aus:
PHP
Alles anzeigen<?php /* Template Name: Gästebuch */ ?> <?php /** * The template for displaying all pages * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site will use a * different template. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( ‘/guestbook_comments.php’, true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?> -
-
Zitat von 'Marcus[IS
;572426']Hi,
ist eigentlich kein Problem, da WordPress die Option bietet, Komentare individuell für Artikel und Seiten zu erlauben, auch wenn es generell deaktiviert wurde.
Du musst die Seite (in deinem Fall wohl Gästebuch) nur zum Bearbeiten aufrufen und auf der Rechten Seite im entsprechenden Feld die Option Kommentare Erlauben aktivieren.
Falls du das Feld Diskussion nicht angezeigt bekommst, kann es sein, dass es ausgeblendet ist, dann musst du oben auf den Link für die Erweiterten Optionen klicken und einen Haken bei dem Punkt Diskussion setzen. ;)
Hallo Marcus,
das hat nicht funktioniert. Da ich die Kommentarfunktionen für alle Seiten deaktiviert habe, mit der
Zeile <?php comments_template( '', true ); ?> glaube ich, dass das Problem dieses ist.
Bin fix und erledigt, denn ich mach die Seite für eine sehr gute Freundin und die macht mich schon irre....
Nerdlady -
-
-
Liebe WP-Wissende,
ich habe mit dem Theme Twentytwelve eine statische Seite erstellt. Nun soll es die Möglichkeit geben auf einer Seite -Sie wird "Gästebuch" genannt- Einträge zu hinterlassen.
Auf allen Seiten habe ich die Kommentarfunktion deaktiviert.
Gibt es ein funktionierendes Gästebuch-Plugin? DW Wolle funktioniert bei der aktuellen WP Version nicht mehr.....
Oder habt Ihr eine Lösung?
Wunschbräune.com ist die Site um die es geht.
Der Verzweiflung nahe hoffe ich auf eure Hilfe.
Herzliche Grüße,
Nerdlady -
Für so tolle und schnelle Hilfe würde ich gern ein "Herz-Like" vergeben, doch wie geht das?