Recent Topics

1 Feb 05, 2008 17:02    

My b2evolution Version: 1.10.x

Hi Sir

I am new to b2evolution. I hope to run a multi-author site using b2evolution. I hope to display all the author postings on the frontpage, together with the author names below the title. I saw some sites have done this using b2evolution, eg [url=http://www.adoptionblogs.com/]http://www.adoptionblogs.com/[/url].

Can I know how to do it?

2 Feb 08, 2008 21:08

Hi angsikod,

You simply put this code in /skins/YOURSKIN/index.main.php (in some skins it's posts.main.php) where you want the author name to appear:

  $Item->author( array(
      'before'       => T_('By'),
      'after'        => ' ',
    ) );


So in the file you see something like this:

<h1 class="evo_post_title"><?php $Item->title(); ?></h1>

	<div class="evo_post_head">
	<?php
		$Item->permanent_link( array(
				'text' => '#icon#',
			) );

		$Item->issue_date( array(
				'before'      => ' ',
				'after'       => ' ',
				'date_format' => '#',
			) );

		$Item->issue_time( array(
				'time_format' => 'H:i',
			) );


and your $Item->author thing goes somewhere before or in between two other topics.


Form is loading...