hat denn niemand eine idee dazu?? :???: auch im offiziellen forum antwortet mir niemand...:(
Beiträge von UmbertoGecko
-
-
Ich habe so ziemlich dasselbe Problem, jedoch hat das löschen der clear:both line schon das erste album dazu gebracht nach oben zu rutschen, der rest ist weiterhin unter sidebar-level.
hat jemand eine idee dazu??? -
geo mashup plugin ist die lösung. ich bin derzeit auch auf einer (welt-)reise und gebe in jedem post den ich schreibe meinen derzeitigen aufenthaltsort an, dieser wird dann auf einer weltkarte angeziegt und zB je nach eintellung mit dem letzten eintrag verbunden. So entsteht nach und nach deine route auf der karte.
PS: mit etwas customization-arbeit sieht das ganze sogar ziemlich ansprechend aus auf der karte!edit: wenn du einfach eine karte mit deiner route anzeigen willst, erstelle eine karte bei google maps (da kann man auch route einzeichnen) und füge dann die html-code (rechts oben über der karte ist ein button "link" oder so dafür) auf der gewünschten seite ein.
-
Hier nochmal der gesamte code meines seitentemplates (der part mit dem kommentaren ist meine derzeitige comment.php und funktioniert ausserhalb dieses templates ohne probleme..)
PHP
Alles anzeigen[COLOR=Red]<?php /* Template Name: Diskussion */ ?> <?php get_header(); ?> <?php get_sidebar(); ?>[/COLOR] [COLOR=Red] <div id="content" class="page">[/COLOR] [COLOR=Red] <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2><br /> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> [/COLOR] [COLOR=SeaGreen]<?php // 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 (!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; } } [/COLOR] [COLOR=SeaGreen] /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. -->[/COLOR] [COLOR=SeaGreen] <?php if ('open' == $post->comment_status) : ?>[/COLOR] [COLOR=SeaGreen] <br /> <h3 id="respond">Erstelle einen Eintrag</h3> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">eingeloggt</a> sein um kommentieren zu können.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">[/COLOR] [COLOR=SeaGreen] <?php if ( $user_ID ) : ?>[/COLOR] [COLOR=SeaGreen] <p>Logged in as <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">Logout »</a></p>[/COLOR] [COLOR=SeaGreen] <?php else : ?>[/COLOR] [COLOR=SeaGreen] <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />[/COLOR] [COLOR=SeaGreen] <label for="author">Name <?php if ($req) echo "(required)"; ?></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />[/COLOR] [COLOR=SeaGreen] <label for="email">Mail <?php if ($req) echo "(required)"; ?></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />[/COLOR] [COLOR=SeaGreen] <label for="url">Website</label></p> <?php endif; ?>[/COLOR] [COLOR=SeaGreen] <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"><?php if (function_exists('quoter_comment_server')) { quoter_comment_server(); } ?></textarea></p>[/COLOR] [COLOR=SeaGreen] <p><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar eintragen" />[/COLOR] [COLOR=SeaGreen] <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form>[/COLOR] [COLOR=SeaGreen] <br /> <?php endif; // If registration required and not logged in ?>[/COLOR] [COLOR=SeaGreen] <?php if ($comments) : ?> <h2 id="comments"><?php comments_number('Keine Kommentare', 'Ein Kommentar', '% Kommentare' );?></h2> <ol class="commentlist"> <?php foreach ($comments as $comment) : ?> <?php if (get_comment_type() == "comment"){ ?> <li class="<?php if ($comment->comment_author_email == "wayne@dubbo.org") echo 'author'; else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>"> <div class="commentMeta"> <span class="author"><?php comment_author_link() ?></span> <span class="date"><a href="#comment-<?php comment_ID() ?>" title="Comment Permalink"><?php comment_date('M jS Y G:i') ?></a></span> <span class="moderate"><?php edit_comment_link('Editieren','',''); ?></span> </div> <?php if(function_exists('get_avatar')) { echo get_avatar($comment, '40'); } ?> [/COLOR] [COLOR=SeaGreen] <div class="commentText"> <?php if ($comment->comment_approved == '0') : ?> <strong>Your comment is awaiting moderation.</strong> <?php endif; ?> <?php comment_text() ?> </div> <div class="clearfix"></div> </li> <?php } ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> [/COLOR] [COLOR=SeaGreen] <?php if ('open' == $post->comment_status) : ?> <h2 id="comments"><?php comments_number('Keine Kommentare', 'Ein Kommentar', '% Kommentare' );?></h2> <p>Benutze das Eingabefeld am Ende der Seite um ein Kommentar zu verfassen.</p> <?php else : // comments are closed ?> <p class="nocomments">Comments are closed.</p> <?php endif; ?> <?php endif; ?> <?php endif; // if you delete this the sky will fall on your head ?>[/COLOR] [COLOR=Red]<?php get_footer(); ?>[/COLOR] -
Mich würde interessieren, warum per include statt comments_template(... )?
mich würde interessieren was ich in die klammer einfügen muss um das gewünschte ergegbnis zu erhalten....
PS: ich habe nun in der orig. comment.php die form über den kommentaren, funktioniert problemlos... leider will ich es aber ja nur auf der einen seite so. also was ist falsch an meinem seitentemplate?
-
Ich habe gerade eben mal getestet was passiert wenn ich die originale comment.php einfach so in mein template kopiere, und siehe da: funktioniert nicht (es tritt dassebe problem auf wie bei meinen editierten versionen). Wenn ich jedoch einfach das standard template nehme funktionieren die comments (wenn auch nat das commentfeld immer noch unten ist :( ).
Also muss es meiner Einschätzung nach am Template liegen.
Aber was stimmt dann am nachfolgenen nicht?PHP
Alles anzeigen<?php /* Template Name: Diskussion */ ?> <?php get_header(); ?> <?php get_sidebar(); ?> <div id="content" class="page"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2><br /> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> **hier hatte ich den comment-code eingefügt** <?php get_footer(); ?> -
Vielen Dank schonmal für deine Antwort, ich habe nun ein Seitentemplate erstellt in welches ich die comment.php eingefügt habe und dann den Teil welcher die Comments darstellt nach unten kopiert.
Nun habe ich das Problem, dass die Comments niht angezeigt werden... es wird nur angezeigt, dass es 2 Replies gibt.
Wo liegt der Fehler im Code?PHP
Alles anzeigen<?php /* Template Name: Diskussion */ ?> <?php get_header(); ?> <?php get_sidebar(); ?> <div id="content" class="page"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2><br /> <?php the_content(); ?> </div> <?php endwhile; ?> <?php endif; ?> <?php // 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 (!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; } } /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <?php if ('open' == $post->comment_status) : ?> <br /> <h3 id="respond">Erstelle einen Eintrag</h3> <?php if ( get_option('comment_registration') && !$user_ID ) : ?> <p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">eingeloggt sein</a> um einen Eintrag zu schreiben.</p> <?php else : ?> <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform"> <?php if ( $user_ID ) : ?> <p>Logged in as <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">Logout »</a></p> <?php else : ?> <p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author">Name <?php if ($req) echo "(required)"; ?></label></p> <p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email">Mail <?php if ($req) echo "(required)"; ?></label></p> <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url">Website</label></p> <?php endif; ?> <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"><?php if (function_exists('quoter_comment_server')) { quoter_comment_server(); } ?></textarea></p> <p><input name="submit" type="submit" id="submit" tabindex="5" value="Post Comment" /> <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> <?php if ($comments) : ?> <h2 id="comments"><?php comments_number('No Replies', 'One Reply', '% Replies' );?></h2> <ol class="commentlist"> <?php foreach ($comments as $comment) : ?> <?php if (get_comment_type() == "comment"){ ?> <li class="<?php if ($comment->comment_author_email == "wayne@dubbo.org") echo 'author'; else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>"> <div class="commentMeta"> <span class="author"><?php comment_author_link() ?></span> <span class="date"><a href="#comment-<?php comment_ID() ?>" title="Comment Permalink"><?php comment_date('M jS Y') ?></a></span> <span class="moderate"><?php edit_comment_link('Moderate','',''); ?></span> </div> <?php if(function_exists('get_avatar')) { echo get_avatar($comment, '40'); } ?> <div class="commentText"> <?php if ($comment->comment_approved == '0') : ?> <strong>Your comment is awaiting moderation.</strong> <?php endif; ?> <?php comment_text() ?> </div> <div class="clearfix"></div> </li> <?php } ?> <?php endforeach; /* end for each comment */ ?> </ol> <?php else : // this is displayed if there are no comments so far ?> <?php if ('open' == $post->comment_status) : ?> <h2 id="comments"><?php comments_number('No Replies', 'One Reply', '% Replies' );?></h2> <p>Feel free to leave a reply using the form below!</p> <?php else : // comments are closed ?> <p class="nocomments">Comments are closed.</p> </form> <br /> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> </div> <?php endif; ?> <?php endif; ?> <?php get_footer(); ?>Hier der LInk zu besagter Seite: http://www.leaundmarkus.de/wordpress/?page_id=486
Danke + Gruß
Markus -
Hallo,
ich bin derzeit dabei eine einfache Komunikationsplttform für die registrierten Leser meines Blogs zu erstellen. Ein Forum ist zu weitläufig, ich möchte nur etwas wie ein Guestbook in welches jeder posten kann. Ich habe jedoch kein Gästebuch gefunden, welches die Logindaten (falls eingeloggt) von WP übernimmt.
Kennt ihr eins?Die andere Idee war, eine verwirklichung über das Kommentarsystem vom WP zu erstellen. Jedoch möchte ich dazu die Commentbox über den Kommentaren haben und nicht wie üblich darunter. Leider ist mir dies nicht gelungen.
Den Code meiner Comment.php findet ihr hier (http://wordpress.org/support/topic/…=1#post-1482598) ...
Ich hoffe jemand von euch hat eine Idee.
Grüße
Markus