Recent Topics

[1.10.x] How to show all the authors postings on frontpage

Started by on Feb 05, 2008 – Contents updated: Feb 05, 2008

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?

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:

PHP

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

So in the file you see something like this:

PHP

<h1 class="evo_post_title"><?php $Item->title(); ?></h1>
 
    <div class="evo_post_head">
    <?php
        $Item->permanent_linkarray(
                'text' => '#icon#',
            ) );
 
        $Item->issue_datearray(
                'before'      => ' ',
                'after'       => ' ',
                'date_format' => '#',
            ) );
 
        $Item->issue_timearray(
                'time_format' => 'H:i',
            ) );

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


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.