CH Counter Problem in sidebar.php Neu !!!
Guten Morgen an alle, bin neu hier... :oops: Und dann gleich so eine Frage...
Ich möchte gerne den CHCounter in meine buttom.php einbinden. Könnte mir jemand helfen? Wo muss ich den folgenden Code einfügen, damit er unter dem Punkt "Bsucher" angezeigt wird? Wo er hinsoll habe ich mal rot makiert: Vielen Dank für Eure Hilfe schonmal.
Hier meine Buttom.php:
PHP
div id="bottom-sep"> </div>
<div id="bottom">
<div class="bottom-divs">
<!-- Bottom Left -->
<div id="bottom-left">
<?php
$today = current_time('mysql', 1);
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_date_gmt < '$today' ORDER BY post_date DESC LIMIT 10")):
?>
<h2><?php _e("Letzte"); ?><span><?php _e("Beiträge"); ?></span></h2>
<ul>
<?php foreach ($recentposts as $post) { if ($post->post_title == '') $post->post_title = sprintf(__('Post #%s'), $post->ID);
echo "<li><a href='".get_permalink($post->ID)."'>"; the_title(); echo '</a></li>'; }?>
</ul>
<?php endif; ?>
</div>
<!-- Bottom Mid -->
<?php if (function_exists('UTW_ShowWeightedTagSet')) { ?>
<div id="bottom-mid">
<h2><?php _e("Top10"); ?><span><?php _e("Tags"); ?></span></h2>
<ul>
<?php UTW_ShowWeightedTagSet("htmllist","",10) ?>
</ul>
</div>
<?php } else { ?>
<div id="bottom-mid">
<h2><?php _e("Meine"); ?><span><?php _e("Link"); ?></span></h2>
<ul>
<?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'rand', FALSE, FALSE, 10, TRUE); ?>
</ul>
</div>
[COLOR=red]<?php } ?>[/COLOR]
[COLOR=red]<!-- Bottom Right -->[/COLOR]
[COLOR=red]<div id="bottom-right">[/COLOR]
[COLOR=red]<h2><?php _e("Be"); ?><span><?php _e("sucher"); ?></span></h2>[/COLOR]
[COLOR=red]<ul>[/COLOR]
[COLOR=red]<?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'rand', FALSE, FALSE, 10, TRUE); ?>[/COLOR]
[COLOR=red]</ul>[/COLOR]
[COLOR=red]</div>[/COLOR]
[COLOR=red]</div>[/COLOR]
[COLOR=red]</div> <!-- end of #bottom -->[/COLOR]
Alles anzeigen
Und das ist der Code der eingefügt werden müsste oder?
PHP
<?php
// *********** BEGIN: CHCOUNTER ***********
if ( file_exists('chcounter/counter.php') ) {
$chCounter_template = <<<TEMPLATE
<li><h2>Statistik</h2>
<ul>
<li>Gerade online: {V_VISITORS_CURRENTLY_ONLINE}</li>
<li>Besucher heute: {V_VISITORS_TODAY}</li>
<li>Besucher gestern: {V_VISITORS_YESTERDAY}</li>
<li>Besucher gesamt: {V_TOTAL_VISITORS}</li>
</ul>
</li>
TEMPLATE;
include('chcounter/counter.php');
}
// *********** END: CHCOUNTER ***********
?>
Alles anzeigen