Besser wär gewesen uns zu zeigen wie du es schon versucht hast. Und was genau hat nicht funktioniert ... welche Fehler?
Versuch's mal so:
<form action="http://google.de/search" name="f" class="search">
<input name="q" type="text" class="input" value="Nutze die Macht der Suchfunktion..." onfocus="value=''" />
<input name="q" type="hidden" value="site:<?php echo get_option('home'); ?>" />
<input name="btnG" type="submit" class="button" value="Go" />
</form>
<div class="column_right">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <!-- Calling the widgets if you have them selected in the WordPress admin panel -->
[COLOR=Red]<?php if (is single()) : ?>[/COLOR]
<div class="tab_menu_container">
<ul id="tab_menu"> <!-- Menu for the AJAX box -->
<li class="first"><a rel="tab_content_popular">Umfrage</a></li>
<li><a rel="tab_content_latest">Beliebt</a></li>
<li><a rel="tab_content_comments">Kommentare</a></li>
<li><a rel="tab_content_tags">Schlagworte</a></li>
</ul> <!-- END -->
<div class="clear"></div>
</div>
<div class="tab_container">
<div class="tab_container_in">
<ul id="tab_content_popular" class="tab_content_list"> <!-- Polls -->
<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
<li><?php get_poll();?></li>
<?php endif; ?>
</ul> <!-- END -->
<ul id="tab_content_latest" class="tab_content_list"> <!-- Popular -->
<?php
$now = gmdate("Y-m-d H:i:s",time());
$lastmonth = gmdate("Y-m-d H:i:s",gmmktime(date("H"), date("i"), date("s"), date("m")-1,date("d"),date("Y")));
$popularposts = "SELECT ID, post_title, post_date, comment_count, COUNT($wpdb->comments.comment_post_ID) AS 'popular' FROM $wpdb->posts, $wpdb->comments WHERE comment_approved = '1' AND $wpdb->posts.ID=$wpdb->comments.comment_post_ID AND post_status = 'publish' AND post_date < '$now' AND post_date > '$lastmonth' AND comment_status = 'open' GROUP BY $wpdb->comments.comment_post_ID ORDER BY popular DESC LIMIT 8";
$posts = $wpdb->get_results($popularposts);
$popular = '';
if($posts){
foreach($posts as $post){
$post_title = stripslashes($post->post_title);
$post_date = stripslashes($post->post_date);
$comments = stripslashes($post->comment_count);
$guid = get_permalink($post->ID);
$popular .= '<li><span class="title"><a href="'.$guid.'" title="'.$post_title.'">'.$post_title.'</a></span><br/>
<span class="meta">Dazu <a href="'.$guid.'#commenting" title="Lese die Kommentare von '.$post_title.'">'.$comments.' Kommentare</a> vom '.$post_date.'</span></li>';
}
}echo $popular;
?>
</ul> <!-- END -->
<ul id="tab_content_comments" class="tab_content_list"> <!-- Latest comments -->
<?php
global $wpdb;
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID, comment_author, comment_date, comment_approved,
comment_type,comment_author_url,
SUBSTRING(comment_content,1,80) AS com_excerpt
FROM $wpdb->comments
LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID =
$wpdb->posts.ID)
WHERE comment_approved = '1' AND comment_type = '' AND
post_password = ''
ORDER BY comment_date DESC
LIMIT 8";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
foreach ($comments as $comment) {
$output .= "\n<li><span class='title comment_excerpt'><a href=\"" . get_permalink($comment->ID) .
"#comment-" . $comment->comment_ID . "\" title=\"on " .
$comment->post_title . "\">" .strip_tags($comment->com_excerpt).
"...</a></span><br/>" . "<span class='meta'>".strip_tags($comment->comment_author)
." am ".strip_tags($comment->comment_date)."</span></li>";
}
$output .= $post_HTML;
echo $output;?>
</ul> <!-- END -->
<ul id="tab_content_tags" class="tab_content_list"> <!-- Tagcloud -->
<li>
<?php if ( function_exists('wp_tag_cloud') ) : ?>
<?php wp_tag_cloud(); ?>
<?php endif; ?>
</li>
</ul> <!-- END -->
</div>
</div>
[COLOR=Red]<?php [/COLOR][COLOR=Red]endif; ?>[/COLOR]
<!-- START Textlinks Box -->
<div class="column_right">
<div class="tab_container">
<div class="tab_container_in">
<h2>Persönliche Link Empfehlungen</h2>
<span class="meta_subtext">
<p><a href="http://www.fotovoltaikshop.de">Fotovoltaik</a></p>
<p><a href="http://www.reitarena.com">Reiterferien</a></p>
<?php tla_ads(); ?>
</span>
</div>
</div>
</div>
<div class="clear"></div>
<!-- END Texlinks Box -->
<div class="column_right">
<div class="tab_container">
<div class="tab_container_in">
<h2>Blog Statistiken</h2>
<p>
Besucher Heute: <?php cystats_countVisits('today'); ?><br />
Besucher Gestern: <?php cystats_countVisits('yesterday'); ?><br />
</p><p>
Online seit: <?php cystats_firstPostDays($showmode=true); ?> Tagen<br />
</p><p>
Gesamte Artikel: <?php cystats_countPosts($showmode=true); ?><br />
<?php if (function_exists('feedstats_getfeeds')) : ?>
<?php fs_getfeeds(); ?>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="clear"></div>
Alles anzeigen