Hallo Zusammen,
ich bastle schon ein paar Tage an einem Wordpress-Blog, nun nach all der Zeit muss ich aber feststellen, dass die Sidebar weder im Internet-Explorer noch in Firefox angezeigt wird :confused:. In meinem Opera Browser funktioniert aber lustiger Weise alles wunderbar. Könnte mir bitte jemand auf die Sprünge helfen, woran das evtl. liegen könnte? Hier noch ein Bild: Klick!
Hier der Code der Sidebar:
PHP
<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<?php if(is_home()) { mistylook_ShowAbout(); } ?>
<li class="sidebox">
<h2><?php _e('Archives'); ?></h2>
<ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
</li>
<li class="sidebox">
<h2><?php _e('Categories'); ?></h2>
<ul>
<?php wp_list_cats('optioncount=1'); ?>
</ul>
</li>
<li class="sidebox">
<h2><?php _e('Pages'); ?></h2>
<ul><?php wp_list_pages('title_li=' ); ?></ul>
</li>
<?php if(is_home()) { mistylook_ShowLinks(); ?>
<li class="sidebox">
<h2><?php _e('Meta'); ?></h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php }?>
<?php endif; ?>
</ul>
</div><!-- end id:sidebar -->
</div><!-- end id:content -->
</div><!-- end id:container -->
Alles anzeigen
Und hier der Index:
PHP
?php get_header();?>
<div id="content">
<div id="content-main">
<?php if ($posts) {
$AsideId = get_settings('mistylook_asideid');
function ml_hack($str)
{
return preg_replace('|</ul>\s*<ul class="asides">|', '', $str);
}
ob_start('ml_hack');
foreach($posts as $post)
{
start_wp();
?>
<?php if ( in_category($AsideId) && !is_single() ) : ?>
<ul class="asides">
<li id="p<?php the_ID(); ?>">
<?php echo wptexturize($post->post_content); ?>
<br/>
<?php comments_popup_link('(0)', '(1)','(%)')?> | <a href="<?php the_permalink(); ?>" title="Permalink: <?php echo wptexturize(strip_tags(stripslashes($post->post_title), '')); ?>" rel="bookmark">#</a> <?php edit_post_link('(edit)'); ?>
</li>
</ul>
<?php else: // If it's a regular post or a permalink page ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="posttitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="post-info"><?php the_time('j. F Y') ?> von <?php the_author_posts_link() ?> <?php edit_post_link('Edit', '', ' | '); ?> </p>
</div>
<div class="entry">
<?php the_content('Continue Reading »'); ?>
<?php wp_link_pages(); ?>
</div>
<p class="postmetadata"> <?php the_category(', ') ?> | <?php
#### Vbridge Replacement code for comments
$vbridge = Comment_Handler($post->ID);
if ($vbridge[id] > 0) {
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) </a> <a href=<?php echo get_option('vbb_VBURL') ?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id] ?>>Kommentar schreiben</a>
<?php
}
##End Vbridge Replacement
?>
<?php comments_template(); ?>
</div>
<?php endif; // end if in category ?>
<?php
}
}
else
{ ?>
<h2 class="center">Nicht gefunden.</h2>
<p class="center">Hier finden sie nicht was sie suchen.</p>
<?php }
?>
<p align="center"><?php posts_nav_link(' - ','« Newer Posts','Older Posts »') ?></p>
</div><!-- end id:content-main -->
<?php get_sidebar();?>
<?php get_footer();?>
Alles anzeigen
Vielen Dank und Grüße
Marc