Recent Topics

1 Mar 25, 2006 20:08    

Hey, I would like this changed.

Instead of doing this;

	switch( $disp )
	{
		case 'comments':
			// this includes the last comments if requested:
			require( dirname(__FILE__).'/_lastcomments.php' );
			break;

		case 'arcdir':
			// this includes the archive directory if requested
			require( dirname(__FILE__).'/_arcdir.php');
			break;

		case 'profile':
			// this includes the profile form if requested
			require( dirname(__FILE__).'/_profile.php');
			break;

		case 'msgform':
			// this includes the email form if requested
			require( dirname(__FILE__).'/_msgform.php');
			break;

		case 'subs':
			// this includes the subscription form if requested
			require( dirname(__FILE__).'/_subscriptions.php');
			break;
	}

We do this;


if(!isset($MainList)){
	if( file_exists(get_path('skins').'_'.$disp.'.php') )
		include(get_path('skins').'_'.$disp.'.php');
	else					
		echo("The Requested Page was not Found!<br />Please Contact the Owner of this Blog.");
}else{
	$MainList->display_if_empty();
}

Hopefully u get the idea.
All that will need changing so far is the '_subscriptions.php' file to be renamed to '_subs.php'.

Thanks
-balupton[/code]

2 Mar 30, 2006 01:09

Thanks for pointing it out. I've added it to the todo list.


Form is loading...