Recent Topics

1 Sep 08, 2005 18:51    

I want to add the blog no. which is shown in the admin in front of each blog.
my _main.php:

<div class="bSmallHead">
<?php 
locale_flag( $Item->locale, 'h10px' );
echo ' &nbsp; ';
$Item->issue_date();
echo ' @ ';
$Item->issue_time();
echo ', ', T_('Categories'), ': ';
$Item->categories();
echo ', ';
$Item->wordcount();
echo ' ', T_('words'); 
echo ', '; 
echo T_('by'); 
echo ' ';
?>
<a href="<?php $Blog->disp( 'blogurl', 'raw' ) ?>?author=<?php the_author_ID() ?>" title="zeige alle Blogs dieses Authors"><?php $Item->Author->prefered_name() ?></a></div>

CanĀ“t find anything were the variables are written.

another thing is that I want to count the blogs and the comments, like: weh have 120 blogs with 25 comments on this page.
where can I find the variable for the blogs and comments?

So long
joe

2 Sep 08, 2005 22:22

This should show the blog id:

<?php echo $Item->blog_ID; ?>

3 Sep 09, 2005 10:27

<?php echo $Item->ID; ?> 

Thanks but I want show the Blog-ID see above.

Anyway, I want to have some more in the statistic
like: xxx blogs are written with xxx words and xxx comments.
How can I solve this?

So long
Joe

4 Sep 09, 2005 15:18

personman wrote:

<?php echo $Item->blog_ID; ?>

joachim wrote:

<?php echo $Item->ID; ?>

Note the difference? blog_ID should get you the blog number. ID will get you the post number.

As to counting all sorts of things, check out [url=http://forums.b2evolution.net/viewtopic.php?t=4510]this hack[/url] and see if it helps you go where you want to go.


Form is loading...