Recent Topics

1 Jun 22, 2009 02:12    

My b2evolution Version: Not Entered

Is there a way to show the post's writer's name automatically after every post?

2 Jun 22, 2009 03:19

Hi bigtree and welcome to the forums.
What version of b2 and what skin are you using?

3 Jun 22, 2009 04:39

THanks.... I am using the latest (2.4.3 I think, not 100% sure) version and with the NaturalRemedy theme (with the leaf)

4 Jun 22, 2009 06:01

In that skins file called .index.main.php find....

<div class="postmetadata">
    	<?php
		// List all tags attached to this post:
		$Item->tags( array(
		'before' =>         ' '.T_('Tags').': ',
		'after' =>          ' ',
		'separator' =>      ', ',
		) );
		?>

		<?php
		$Item->categories( array(
		'before'          => ' '.T_('Posted Under').' ',
		'after'           => '',
		'include_main'    => true,
		'include_other'   => true,
		'include_external'=> true,
		'link_categories' => true,
		) );
		?>
		on
		<?php
		$Item->issue_time( array(
        'time_format' => 'm.j.Y',
		) );
         ?>
		<!-- You can follow any responses to this entry through the RSS feed. -->
		<?php
		$Item->edit_link( array( // Link to backoffice for editing
		'before'    => '',
		'after'     => '',
		) );
		?>
	</div>

and add the following where you would like it to appear...

<?php
         $Item->author( array(
	'before'    => ', '.T_('by').' ',
	'after'     => '',
					) );
       ?>

5 Jun 22, 2009 06:18

Why thanks! It worked like a charm!


Form is loading...