Recent Topics

1 Aug 13, 2006 23:08    

Hey guys,

I'm looking for a way to have my linkblog only display the last or maybe last 2 posts from a certain category. I know that has something to with category delimiters, well i don't KNOW i'm just assuming.

Here's the code for my linkblog:

<?php
	/**
	 * This is the template that displays the linkblog
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 *
	 * b2evolution - {@link http://b2evolution.net/}
	 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
	 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/}
	 *
	 * @package evoskins
	 * @subpackage custom
	 */
	if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

	# maximum number of linkblog entries to display:
	if(!isset($linkblog_limit)) $linkblog_limit = 1;
	# global linkblog delimiters:
	if(!isset($linkblog_main_start)) $linkblog_main_start = '<div><h3>'.
																														T_('Most Recent Post').'</h3>';
	if(!isset($linkblog_main_end)) $linkblog_main_end = '</div>';
	# Category delimiters:
	if(!isset($linkblog_catname_before)) $linkblog_catname_before = '<h4>';
	if(!isset($linkblog_catname_after)) $linkblog_catname_after = '</h4><ul>';
	if(!isset($linkblog_catlist_end)) $linkblog_catlist_end = '</ul>';
	# Item delimiters:
	if(!isset($linkblog_item_before)) $linkblog_item_before = '<li>';
	if(!isset($linkblog_item_after)) $linkblog_item_after = '</li>';

	/**
	 * This skin has no special formatting for the linkblog, so...
	 * However you can replace this file with the full handler (in /blogs) and customize it!
	 * all we want to do here, is call the default linkblog handler.
	 */
	require get_path('skins').'_linkblog.php';

?>

WWhat do i change in order to make it only pull post from category "whatever"?

Thanks in advance.

2 Aug 16, 2006 14:17

http://doc.b2evolution.net/HEAD/evocore/ItemList.html#methodItemList see if that helps ;)

, [ mixed $cat = '' ] , [ array $catsel = array() ] ,

mixed $cat List of cats to restrict to
array $catsel Array of cats to restrict to

The best way to find out wether the evocore can do something is to look at it :D I prefer just scanning all the files with dreamweaver till i find the method i want, but you may prefer the tech docs as they are more 'friendly'.


Form is loading...