View Single Post
  #897  
Old 02-12-2008, 06:28 PM
WEBclay's Avatar
WEBclay WEBclay is offline
 
Join Date: Aug 2006
Location: Switzerland
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jafo232 View Post
My bad.. You have only shown me the partial code, would need to see everything you did.

No problems, here you go:

single.php
PHP Code:
<?php get_header(); ?>
<!--
***********************************************************************************************************
/* CONTENT
***********************************************************************************************************
-->
<div id="content_wrapper">
<div id="content_single">

<div class="navigation">
<div class="alignleft"><?php previous_post_link('&laquo; %link'?></div>
<div class="alignright"><?php next_post_link('%link &raquo;'?></div>
</div>

<div style="clear:both;">&nbsp;</div>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $vbridge 
Comment_Handler($post->ID); ?>

<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

<div class="entry">
<?php the_content('Read the rest of this entry &raquo;'); ?>
<div style="clear:both;">&nbsp;</div>

<?php the_tags'<p>Tags: '', ''</p>'); ?>




<?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 echo comment_ID() ?>">
            <?php echo $vbridge[vb_parser]->do_parse($reply->pagetextfalsetrue); ?>
            <small class="commentmetadata">
            &nbsp;&nbsp;&nbsp;&nbsp;<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> | <a href=<?php echo get_option('vbb_VBURL'?>/newreply.php?do=newreply&noquote=1&t=<?php echo $vbridge[id?>>Add your comments</a>
</div>
<?php
}
##End Vbridge Replacement
?>

<p class="postmetadata alt">
<small>
This entry was posted on <?php the_time('l, F jS, Y'?> at <?php the_time() ?> and is filled under <?php the_category(', '?>. You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Both comments and pings are currently closed.

<?php edit_post_link('Edit this entry.','',''); ?>

</small>
</p>

</div>
</div>

<?php endwhile; else: ?>

<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

</div><!-- END CONTENT_SINGLE -->

<div id="content_single_right">
<br />
GOOGLEADS
</div><!-- END CONTENT_right -->

</div><!-- END CONTENT_WRAPPER -->

<?php get_footer(); ?>
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01326 seconds
  • Memory Usage 1,837KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete