Recent Topics

1 Nov 22, 2007 14:18    

My b2evolution Version: 2.x

I managed to add an item to the blogroll by cracking open the (core) file ../blogs/inc/widgets/model/_widget.class.php and makin the following alteration:

			if( $Blog && $l_blog_ID == $Blog->ID )
			{ // This is the blog being displayed on this page:
				echo $this->disp_params['item_selected_text_start'];
				echo $l_Blog->dget( 'shortname', 'htmlbody' );
				echo $this->disp_params['item_selected_text_end'];
				echo '</a>';
				echo $this->disp_params['item_selected_end'];
			}
			else
			{
				echo $this->disp_params['item_text_start'];
				echo $l_Blog->dget( 'shortname', 'htmlbody' );
				echo $this->disp_params['item_text_end'];
				echo '</a>';
				echo $this->disp_params['item_end'];
			}
		}
	   /*
		* Add forum to bloglist
		*
		*/
		echo '<li><a href="http://www.forum.hemminga.net" class="default" 
        title="Forum">Forum</a></li>';
		// End Forum
		
		echo $this->disp_params['list_end'];

		echo $this->disp_params['block_end'];


It works beautiful, but i have this dark brown feeling this could be achieved in a much cleaner way. In fact, I'd be helped if I could override the closing </ul> ('list end') and replace by:

<li><a href="http://www.forum.hemminga.net" class="default" title="Forum">Forum</a></li></ul>

Can some one point me in the right direction?

2 Nov 22, 2007 17:25

Bugger, I really need to get working in cvs.

Off the top of my head I can't think of another ( current ) solution, but I did promise the FG that I'd work my way through all the core widgets and add shedloads of params to them all.

I'll add this one to my todo list ;)

¥

3 Nov 23, 2007 07:17

Your TODO list is larger than François'. :p


Form is loading...