Recent Topics

1 Jul 12, 2006 18:10    

I'd like to show two blogs (could be two categories too), side by side on the front page of my blog.

One of them would be my personal blog, and the other the articles my readers send to me (I would record them as posts, but it is important that people see the 10 last articles or at least the titles on the front page).

I would prefer not using the blogroll feature, as I would like the blogs to have the same width.

Can I do this with b2e ? Or do I have to go for a CMS like Mambo ?
Thanks
PS: I can't program PHP

2 Jul 12, 2006 18:34

I have managed to get two blogs side by side on my home page.

I used the a_noskin.php template and took out everything I didn't want, mostly the stuff on the right hand side with the calendar and so on.

Then in my home page I call the template twice having set which blog I wanted etc. The important bit is like this:


<div class="blogholder">
  <div class="blog">
    <?php
$blog = 2;		
$skin = '';
$show_statuses = array();
$linkblog_cat = '';
$linkblog_catsel = array( );
$timestamp_min = '';
$timestamp_max = 'now';
require(dirname(__FILE__).'/b2evolution/b2evocore/_blog_main.php');
include "a_noskin.php";
    ?>
  </div>
  <div class="blog">
    <?php
$blog = 3;		
$skin = '';
$show_statuses = array();
$linkblog_cat = '';
$linkblog_catsel = array( );
$timestamp_min = '';
$timestamp_max = 'now';
require(dirname(__FILE__).'/b2evolution/b2evocore/_blog_main.php');
include "a_noskin.php";
    ?>
  </div>
</div>

This works for me, but I've just posted elsewhere on this forum today because I can't get the categories displayed this way. It breaks on the second blog, and I think something needs to be cleared out or reset before I make the second call.

Anyway, it might give you a start.


Form is loading...