Everything works great, I just have a lame layout question.
Right now my post footers look like:
Quote:
Posted by Author |
(1) Comment
| Edit
|
And I'm trying to get them inline, like:
Quote:
Posted by Author | (1) Comment | Edit
|
But whenever I try to mess with the spacing either nothing happens or it goes screwy. Here is the code that I am using:
Code:
<?php $recent = new WP_Query("cat=4&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<?php
### Vbridge Call
$vbridge = Comment_Handler($post->ID);
###
?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<?php the_content();?><p>Posted by <?php the_author(); ?> | <?php
#### Vbridge Replacement code for comments
if ($vbridge[id] > 0) {
?>
<div class="comments">
<?php
if(is_single()) {
if (is_array($vbridge[replies])) {
?>
<br /><br />
<h3 id="comments">Comments:</h3>
<ol class="commentlist">
<?php
foreach ($vbridge[replies] as $reply) {
?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php echo $vbridge[vb_parser]->do_parse($reply[pagetext], false, true); ?>
<small class="commentmetadata">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/comment_arr.gif" alt="" />
by <cite> <a href=<?php echo get_option('vbb_VBURL') ?>/member.php?u=<?php echo $reply[userid] ?>><?php echo $reply[username]; ?></a></cite>
</small><br />
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
}
}
?>
</ol>
<?php
}
?>
<a href=<?php echo get_option('vbb_VBURL') ?>/showthread.php?t=<?php echo $vbridge[id] ?>>(<?php echo intval($vbridge[count]) ?>) comments</a>
</div>
<?php
}
##End Vbridge Replacement
?> <?php edit_post_link('(Edit)', '', ''); ?></p><div style="clear:both;"></div>
<?php endwhile; ?>