Google beschreibt sehr gut wo der Codeschnipsel hin soll: direkt vor </body>
Gruß
Mo
danke... aber wo find ich den </body>? in welcher Datei? ich hab ihn nicht gefunden!
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenGoogle beschreibt sehr gut wo der Codeschnipsel hin soll: direkt vor </body>
Gruß
Mo
danke... aber wo find ich den </body>? in welcher Datei? ich hab ihn nicht gefunden!
Ich würde gerne das Statistiktool Google Analytiks in meine WP-Page einbinden.
Weiss jemand wo ich den Code einfügen muss? im style.css?
danke für eure Hilfe
Was genau hast du gemacht? Das rote solltest du einfügen, das was bei meinem Code schwarz war hattest du zuvor rot markiert.
habs hingebracht! danke für deine mühe! vielen dank!
super! hab den code nochmals richtig eingefügt:))) :mrgreen:
genau das brauch ich... nur auf den seiten weg, für artikel soll die möglichkeit für später noch da sein...
ich probiers mal:) dankeee:)
ich hab deinen text eingefügt, doch nun kommt dies auf meiner seite:
der Code erscheint auf der Page!
sorry wenn ich etwas unbeholfen bin, aber ich bin noch am lernen!
[size=12]:arrow: http://forum.wordpress-deutschland.org/plugins-und-wi…-den-posts.html[/SIZE]
Ja. Das gilt dann aber generell, nicht nur auf Seiten ("Seiten" im Sinne von WP). Du kannst auch folgendes machen:
PHP<?php [COLOR=Red]if ( ! is_page() ) {[/COLOR] comments_template(); // Get wp-comments.php template [COLOR=#ff0000][B]}[/B][/COLOR] ?>Dann ists nur auf den Seiten weg.
genau das brauch ich... nur auf den seiten weg, für artikel soll die möglichkeit für später noch da sein...
ich probiers mal:) dankeee:)
ich habe leider nur diese im Thema:
comments
comments-popup
footer
funcions
header
index
sidebar
style
dazu den ordner script mit diesen:
moo.fx
moo.fx.pack
prototype.lite
![]()
im Index hab ich noch diesen code gefunden:
<?php
get_header();
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post">
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="meta"><?php _e("Posted by"); ?> <?php the_author() ?> | <?php the_category(',') ?> | <?php the_time('l j F Y'); ?> <?php the_time() ?> <?php edit_post_link(__('Edit This')); ?></div>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
</div>
[COLOR=Red][B]<?php comments_template(); // Get wp-comments.php template ?>
[/B][/COLOR]
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
<?php posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); ?>
<?php get_footer(); ?>
Alles anzeigen
Muss ich einfach der rote teil löschen?????
folgender script enthält comments popup:
<?php
/* Don't remove these lines. */
add_filter('comment_text', 'popuplinks');
foreach ($posts as $post) { start_wp();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo get_settings('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
body { margin: 3px; }
</style>
</head>
<body id="commentspopup">
<h1 id="header"><a href="" title="<?php echo get_settings('blogname'); ?>"><?php echo get_settings('blogname'); ?></a></h1>
<h2 id="comments"><?php _e("Comments"); ?></h2>
<p><a href="<?php echo get_settings('siteurl'); ?>/wp-commentsrss2.php?p=<?php echo $post->ID; ?>"><?php _e("<abbr title=\"Really Simple Syndication\">RSS</abbr> feed for comments on this post."); ?></a></p>
<?php if ('open' == $post->ping_status) { ?>
<p><?php _e("The <acronym title=\"Uniform Resource Identifier\">URI</acronym> to TrackBack this entry is:"); ?> <em><?php trackback_url() ?></em></p>
<?php } ?>
<?php
// this line is WordPress' motor, do not delete it.
$comment_author = (isset($_COOKIE['comment_author_' . COOKIEHASH])) ? trim($_COOKIE['comment_author_'. COOKIEHASH]) : '';
$comment_author_email = (isset($_COOKIE['comment_author_email_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_email_'. COOKIEHASH]) : '';
$comment_author_url = (isset($_COOKIE['comment_author_url_'. COOKIEHASH])) ? trim($_COOKIE['comment_author_url_'. COOKIEHASH]) : '';
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_approved = '1' ORDER BY comment_date");
$commentstatus = $wpdb->get_row("SELECT comment_status, post_password FROM $wpdb->posts WHERE ID = $id");
if (!empty($commentstatus->post_password) && $_COOKIE['wp-postpass_'. COOKIEHASH] != $commentstatus->post_password) { // and it doesn't match the cookie
echo(get_the_password_form());
} else { ?>
<?php if ($comments) { ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) { ?>
<li id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e("by"); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite></p>
</li>
<?php } // end for each comment ?>
</ol>
<?php } else { // this is displayed if there are no comments so far ?>
<p><?php _e("No comments yet."); ?></p>
<?php } ?>
<?php if ('open' == $commentstatus->comment_status) { ?>
<h2><?php _e("Leave a comment"); ?></h2>
<p><?php _e("Line and paragraph breaks automatic, e-mail address never displayed, <acronym title=\"Hypertext Markup Language\">HTML</acronym> allowed:"); ?> <code><?php echo allowed_tags(); ?></code></p>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p>
<input type="text" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />
<label for="author"><?php _e("Name"); ?></label>
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo wp_specialchars($_SERVER["REQUEST_URI"]); ?>" />
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<label for="email"><?php _e("E-mail"); ?></label>
</p>
<p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
<label for="url"><?php _e("<acronym title=\"Uniform Resource Identifier\">URI</acronym>"); ?></label>
</p>
<p>
<label for="comment"><?php _e("Your Comment"); ?></label>
<br />
<textarea name="comment" id="comment" cols="70" rows="4" tabindex="4"></textarea>
</p>
<p>
<input name="submit" type="submit" tabindex="5" value="<?php _e("Say It!"); ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php } else { // comments are closed ?>
<p><?php _e("Sorry, the comment form is closed at this time."); ?></p>
<?php }
} // end password check
?>
<div><strong><a href="javascript:window.close()"><?php _e("Close this window."); ?></a></strong></div>
<?php // if you delete this the sky will fall on your head
}
?>
<!-- // this is just the end of the motor - don't touch that line either :) -->
<?php //} ?>
<p class="credit"><?php timer_stop(1); ?> <?php echo sprintf(__("<cite>Powered by <a href=\"http://wordpress.org\" title=\"%s\"><strong>Wordpress</strong></a></cite>"),__("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></p>
<?php // Seen at [url]http://www.mijnkopthee.nl/log2/archive/2003/05/28/esc(18[/url]) ?>
<script type="text/javascript">
<!--
document.onkeypress = function esc(e) {
if(typeof(e) == "undefined") { e=event; }
if (e.keyCode == 27) { self.close(); }
}
// -->
</script>
</body>
</html>
Alles anzeigen
Weisst du wo ich das ding rauslöschen muss? danke vielmals!
danke für deine Antwort. doch im index.php ist nichts und das singel.php hat das theme nicht. aber ich habe folgende datei: comments und commentspopup... folgender Script enthält comments:
<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
<p><?php _e('Enter your password to view comments.'); ?></p>
<?php return; endif; ?>
<h2 id="comments"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
<?php if ( comments_open() ) : ?>
<a href="#postcomment" title="<?php _e("Leave a comment"); ?>">»</a>
<?php endif; ?>
</h2>
<?php if ( $comments ) : ?>
<ol id="commentlist">
<?php foreach ($comments as $comment) : ?>
<li id="comment-<?php comment_ID() ?>"><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link() ?> — <?php comment_date() ?> @ <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?>
<?php comment_text() ?>
</li>
<?php endforeach; ?>
</ol>
<?php else : // If there are no comments yet ?>
<p><?php _e('No comments yet.'); ?></p>
<?php endif; ?>
<p><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
<?php if ( pings_open() ) : ?>
<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?></a>
<?php endif; ?>
</p>
<?php if ( comments_open() ) : ?>
<h2 id="postcomment"><?php _e('Leave a comment'); ?></h2>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) { ?>
<div id="authorinfo" style="">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="<?php _e('Log out of this account') ?>">Logout »</a>
<?php } else if($comment_author) {
echo ('<span style="" id="showinfo">(<a href="javascript: ShowUtils();">change your information</a>)</span>');
echo'<span id="hideinfo" style="display: none">(<a href="javascript: HideUtils();">Close</a>)</span>';
echo '<div id="authorinfo" style="display: none">';
?>
<?php } else { ?>
<div id="authorinfo" style="">
<?php } ?>
<?php if ( !$user_ID ) { ?>
<p><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" onfocus="this.style.background='#ffffff'" onblur="this.style.background='#ffffff'" />
<label for="author"><small>Name <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" onfocus="this.style.background='#ffffff'" onblur="this.style.background='#ffffff'" />
<label for="email"><small>Mail (will not be published) <?php if ($req) _e('(required)'); ?></small></label></p>
<p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" onfocus="this.style.background='#ffffff'" onblur="this.style.background='#ffffff'" />
<label for="url"><small>Website</small></label></p>
<?php } ?>
<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->
</div>
<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4" onfocus="this.style.background='#ffffff'" onblur="this.style.background='#ffffff'" ></textarea></p>
<p><input name="submit" type="image" id="submit" tabindex="5" src="<?php bloginfo('template_url'); ?>/images/submit.jpg" onmouseover="this.src='<?php bloginfo('template_url'); ?>/images/submit_over.jpg'" onmouseout="this.src='<?php bloginfo('template_url'); ?>/images/submit.jpg'" />
<input type="hidden" 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 else : // Comments are closed ?>
<p><?php _e('Sorry, the comment form is closed at this time.'); ?></p>
<?php endif; ?>
Alles anzeigen
Wie bringe ich die Ansicht, resp die Kommentarfunktion in der Ansicht weg?
Ich habe bei den Einstellungen angegeben, dass keine Komentare gemacht werden können, und doch zeigt es mir auf den Seiten folgendes an:
Keine Kommentare
Noch keine Kommentare.
RSS-Feed für Kommentare zu diesem Artikel.
Die Kommentarfunktion ist zur Zeit leider deaktiviert.
Wie bringe ich dies auf den Seiten weg? Wo muss ich das im Theme ändern?
URL: Köppel Transporte AG
Vielen Dank für Eure Hilfe
könntest du die lösung echt noch hier mitteilen? ich habe dasselbe problem..
ich vermute, dass der server von hoststar noch nicht bereit war:) ich hatte das selbe problem! resp die Domain ging ca 1-2 Tage bis sie bereit war:)
Meinst du Firebug?
Gruß
Mo
jaaaaaaaaaaa genau! danke viel mals:)
Ich weiss dass es ein Addon gibt für den firefox, damit man auf der HP sieht, in welchem bereich man sich befindet und dann die farben etc anpassen kann.
kann mir jemand sagen wie der heisst und wo ich dieses addon finde?
thanks
Alles anzeigenWie in der Überschrift erwähnt hab ich bei der besagten Funktion Probleme...
Leider habe ich sehr große Bilder und viele... die weiß über 800x600 sind. wenn ich diese nun über FTP in die Ordner packe, und die Funktion zum einlesen nutze hängt sich alles auf...
Er will mir einfach keine Bilder da rein laden
Ach wenn ich sie so hochladen will (also im WP) geht es ebenfalls nicht.
Ich hab meinen Space bei goneo und hab PHP5
Sry wenns hier schon ein thema gibt, habs nach 2h nicht gefunden XD
Hast du mal deine uploadkapazität deiner Datenbank resp. Servers gecheckt? womöglich ist da nicht die beste Einstellung getroffen! Es gibt richtlinien die WP benötigt:) weiss sie aber nicht auswendig!
Hallo,
kann ich die Anzahl der Beiträge in meinem Blog (per Seite) verändern.
Also ich habe im September 22 Beiträge geschrieben.
Angezeigt werden aber nur 10.
Ganz unten rechts steht dann "ältere".Kann ich die Beitragsanzahl per Seite erhöhen?
Danke
liebe GrüßeMartin
Neuseeland, wir kommen!
Hallo
ja dies sollte gehen unter => Einstellungen => Lesen => Blogseite zeigen höchstens XX Seiten!
dort kannst du die zahl erhöhen!
Hallo zusammen
Ich habe ein Problem mit dem direkt Upload von Bildern von meinem Computer aus. Es kommt immer diese Fehlermeldung.
Ich vermute, dass es ein Rechtfehler beim Plugin Nextgen Gallery sein wird.
Kann mir da jemand helfen?
vielleicht kennt er Google nicht8-)
Ein Favicon kannst du mit jedem Grafik-Programm erstellen, du musst dein Bildchen eben verkleinern. Irfan View kann das auch alles und kostet nix.
danke! hab die lösung gefunden bei GOOGLE!
Mit welchem Programm kann ich ein favicon.ico erstellen?
Danke und Gruss
du hast wordpress in den unterordner wordpress auf deinem server installiert.
guck mal hier: WordPress Deutschland FAQ
uff dies ist ganz schön kompliziert.... ich probiers mal, hab mal eine datensicherung gemacht:)
wenn ich die beschreibung durchlese, finde ich es ganz schwierig, die bearbeitung im FTP programm
Hallo zusammen....
ich richte mir einen neuen Blog ein und bei der intallation von wp ist mir womöglich ein fehler unterlaufen. Die datenbank wurde richtig in der config datei hinterlegt...
wenn ich nun die installation starten will gemäss Beschreibung von WP
http://www.hanstest.ch/wp-admin/install.php kommt seitenfehler... wenn ich aber hanstest.ch/wordpress/wp-admin/install.php eingebe, kann ich den Blog einrichten... weshalb ist das so?
was muss ich genau ändern? und wie funktioniert das?
vielen dank für eure Hilfe!