Jep, das fand ich eben auch noch ganz nett. So kann im Grunde jeder die Sidebars so anordnen wie er will :-D
Beiträge von danysblog
-
-
So, nachdem mein Blog längere Zeit nicht aktuell war, war es dann auch noch einige Tag offline weil die Datenbank irgend einen Fehler hatte.
Nun gut, habe ich eben die Gelegenheit genutzt, gleich die neuste WP Version zu installieren, alles neu einzustellen und ein neues Theme zu benutzen. :mrgreen:
Leider sind bei der ganzen Sache mit der Datenbank einige Beiträge verloren gegangen.. aber naja, wird nicht tragisch sein.
Hier die URL: Dany’s Blog
-
Hi Leute,
wieder mal ein Porblem:
Mein Blog LINK wird mir Safari und FF korrekt dargestellt. Aber wenn ich mir das ganze mit dem IE anschaue, dann ist die Sidebar plötzlich ganz unten rechts, statt einfach rechts.
Ich habe mal im CSS Stylesheet versucht die Breiten zu verändern, das hat aber nichts gebracht.
Wo könnte der Fehler liegen?:?: -
Danke!
Freigeschaltet, und funktioniert! :-D -
Könnte auch bei meinem Blog jemand mit nem Gravatar einen Kommentar bei irgend einem Beitrag schreiben? Dann sehe ich mal ob es wirklich funzt, oder ob nur immer die Default Bilder angezeigt werden.
-
Na, solange alles funktioniert kann ich gut damit leben ;)
Danke und einen schönen Abend noch!
-
Also, das mit der single.php hat nicht funktioniert.
Aber das mit der default comments.php! Genau das war es offenbar, obwohl ich nicht weiss wieso.
Jedenfalls wirken sich die Änderungen an default/comments.php sofort aus!
Super! Besten Dank!:-D
-
PHP
Alles anzeigen<?php include_once('gravatar.php'); get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <h3 class="storytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> <div class="meta">Kategorie: <?php the_category(',') ?> von <?php the_author() ?> @ <?php the_time('g:i a') ?> <?php the_time('l, j.F Y') ?> <?php edit_post_link(__('Bearbeiten')); ?></div> <div class="storycontent"> <?php the_content(__('(Weiterlesen ...)')); ?> </div> <div class="feedback"> <?php wp_link_pages(); ?> <?php comments_popup_link(__('Kommentare (0)'), __('Ein Kommentar (1)'), __('Kommentare (%)')); ?> </div> <!-- <?php trackback_rdf(); ?> --> </div> <?php comments_template(); ?> <?php endwhile; else: ?> <p>Sorry, das hab ich nicht gefunden.</p> <?php endif; ?> <?php posts_nav_link(' — ', __('« Vorherige Seite'), __('Naechste Seite »')); ?> <?php get_footer(); ?> -
Nein, sonst ist alles ok, alles sauber auf Deutsch, ausser eben das Kommentarfeld und die Kommentare selber.
Darum wundere ich mich ja auch, denn ich habe die comments.php gleich wie die anderen Files bearbeitet. :?Hm, single.php? Das hats im Theme Ordner gar nicht :confused:
-
Nun, wenn ich z.b. was im header.php ändere, dann sehe ich ja ein Resultat. Daher denke ich schon das ich am richtigen Ort bin. Aber du hast recht, ich hatte auch schon daran gedacht ob ich wohl die völlig falschen Dateien bearbeite.
Also die aktuelle comments.php sieht so aus:
PHP
Alles anzeigen<?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 ?> <p class="nocomments">Dieser Beitrag ist Passwort gesch√ºtzt!<p> <?php return; } } /* This variable is for alternating comment background */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <?php $gravatar_default = "http://www.danysblog.ch/wp/wp-content/avatar.png"; ?> <?php if ($comments) : ?> <h3 id="comments">Kommentare:</h3> <ol class="commentlist"> <?php $jw_comment_count=1; ?> <?php foreach ($comments as $comment) : ?> <?php if($comment->comment_author_email == 'admin@danysblog.ch') { ?> <li class="authorcommentbody" id="comment-<?php comment_ID() ?>"> <?php } else { ?> <li class="commentbody" id="comment-<?php comment_ID() ?>"> <?php } ?> <?php $gravatar_url = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5(get_comment_author_email()) . "&default=" . urlencode($gravatar_default) . "&size=40"; ?> <img class="gravatar" src="<?php echo $gravatar_url ?>" alt="Gravatar of <?php comment_author() ?>" /> <?php comment_author_link() ?> <?php if ($comment->comment_approved == '0') : ?> <em>Dein Beitrag muss erst freigeschaltet werden.</em> <?php endif; ?> <br /> <a class="commentlink" href="#comment-<?php comment_ID() ?>" title=""><?php comment_date('l, d. F Y') ?> <?php comment_time('H:i') ?></a> <?php edit_comment_link('e','',''); ?> <div class="commentcount"><?php echo $jw_comment_count; ?></div> <?php comment_text() ?> </li> <?php $jw_comment_count++; ?> <?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) : ?> <!-- If comments are open, but there are no comments. --> <p class="nocomments">Noch keine Kommentare.</p> <?php else : // comments are closed ?> <!-- If comments are closed. --> <p class="nocomments">Kommentare deaktiviert.</p> <?php endif; ?> <?php endif; ?> <?php if ('open' == $post-> comment_status) : ?> <h3 id="respond">Antworten:</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> um einen Kommentar 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>Eingeloggt als <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=">Ausloggen »</a></p> <?php else : ?> <p><input type="text" alt="author" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" /> <label for="author"><small>Name </small></label></p> <p><input type="text" alt="email" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" /> <label for="email"><small>Mail (wird nicht angezeigt) </small></label></p> <p><input type="text" alt="url" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /> <label for="url"><small>Website</small></label></p> <?php endif; ?> <p style="color: #606959; line-height: 1em;"><small><strong>XHTML - </strong>You can use these tags: <?php echo allowed_tags(); ?></small></p> <p><textarea name="comment" id="comment" cols="50" rows="10" tabindex="4"></textarea></p> <p><input name="submit" alt="submit" type="submit" id="submit" tabindex="5" value="Abschicken" /> <input type="hidden" alt="comment post id" name="comment_post_ID" value="<?php echo $id; ?>" /> </p> <?php do_action('comment_form', $post->ID); ?> </form> <?php endif; // If registration required and not logged in ?> <?php endif; // if you delete this the sky will fall on your head ?> -
Also, ich habe alle diesen [COLOR=#000000][COLOR=#0000cc]<?php _e[/COLOR][COLOR=#006600]([/COLOR][COLOR=#cc0000]"xyz"[/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000cc]?> [COLOR=Black]Code entfernt und durch normalen Text ersetzt.
Das komische ist, das immer noch alles auf englisch ist.:confused:
Ich habe diese Code teile per Textsuche gesucht, damit ich auch keines übersehe. Ich habe alle ersetzt. Und immer noch wird das auf Englisch angezeit. Ich kapiers echt nicht mehr :(
[/COLOR][/COLOR] [/COLOR] -
Ach so, ich hatte das jeweils so gemacht:
[COLOR=#000000] [COLOR=#0000CC]<?php _e[/COLOR][COLOR=#006600]([/COLOR][COLOR=#CC0000]"Filed under:"[/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000CC]?>[/COLOR]
wurde zu:
[/COLOR][COLOR=#000000] [COLOR=#0000CC]<?php _e[/COLOR][COLOR=#006600]([/COLOR][COLOR=#CC0000]"Gespeichert unter:"[/COLOR][COLOR=#006600]); [/COLOR][COLOR=#0000CC]?>[/COLOR]
das war aber offenbar falsch.
Dann müsste ich das komplett ersetzten, es würde dort also nur noch stehen:
Gespeichert unter
Also den ganzen Code entfernen, nur noch "nackter" Text?
Besten Dank schon mal!
[/COLOR] -
Files
Hier mal noch die 3 Files comments.php, gravatars.php und index.php.
-
Danke schon mal!
Zu 1.: Nun sehr viel weitere Dateien als comments.php, header.php etc. hats auch nicht. Wo sollte ich sonst noch was ändern? Gespeichert habe ich die Änderungen, das wurde auch entsprechend im WP Editor so angezeigt. Rechte sind auf 777, sollte also gehen mit ändern.
Zu 2.: Gravatare kann man offenbar auch ohne Plugin realisieren, eben durch einfügen von ein wenig Code, was ich nach obenstehender Anleitung gemacht habe. Aber genauso wie bei der Sprache tut sich auch bei den Gravataren trotz Änderung nichts.
-
Hallo Leute,
ich habe seit einigen Tagen mein Blog (http://www.danysblog.ch) auf WordPress umgestellt und bin soweit ganz zufrieden.
Folgende zwei Probleme sind aber noch vorhanden:
1. Ich habe WP zwar auf Deutsch, das Theme (BlueHorizon) ist aber auf englisch. Eigentlich klappt es trotzdem ganz gut, das meiste wird auf deutsch angezeigt. Nur wenn man kommentieren will, dann ist dort alles auf englisch, was ich gerne ändern möchte. Ich habe dazu in den allen möglichen .php template Files des Themes rumgesucht, habe englische Ausdrücke durch deutsche ersetzt, aber trotzdem ist immer noch alles bei den Kommentaren auf englisch. Was mache ich da wohl falsch?
2. Ich möchte bei den comments gerne Gravatare anzeigen lassen. Dazu hab ich das comment.php gemäss Anleitung modifiziert, aber nichts passiert, es zeigt nichts an, auch keine Fehler. Einfach keine Gravatare.
Ich habe gesehen dass es im BlueHorizon Theme ein gravatar.php drin hat. Daran hab ich nix gemacht, ist auch nur ein relativ kurzes php mit wenig Code drin.
Irgendwie komm ich jetzt gar nicht mehr draus ob ich was modifizieren soll/muss, und wann ja, an welchem File. :confused:Für Tipps und Vorschläge wäre ich dankbar :)