Recent Topics

1 Dec 18, 2010 14:12    

My b2evolution Version: Not Entered

I have an aggregated blog and i want to display posts differently according to which blog they belong.AFAIK posts are not directly associated to blogs but are associated via their categories

Any idea how can i get blog id of the post and make:

<div class="post blog1...

<div class="post blog4...

2 Dec 18, 2010 18:20

tilqicom wrote:

My b2evolution Version: Not Entered

2.4.x inc/items/model/_itemlight.class.php :

	/**
	 * Derived from $main_cat_ID
	 *
	 * This is set at instanciation.
	 *
	 * @var integer
	 */
	var $blog_ID;
	/**
	 * The Blog of the Item (lazy filled, use {@link get_Blog()} to access it.
	 * @access protected
	 * @var Blog
	 */
	var $Blog;

echo '<div class="post blog'.$Item->blog_ID.'">'."\n";

At a guess

¥

3 Dec 19, 2010 13:25

yaay :D nailed it!


Form is loading...