Recent Topics

1 Jul 05, 2007 02:13    

My b2evolution Version: 1.8.x

I would like to make the default behaviour for my three blogs be to show the index. That means that when the URL entered is http://ray.tomes.biz/b2/index.php/c the result will be the same as when this is done http://ray.tomes.biz/b2/index.php/c?disp=arcdir&mylist=1

Is this something that is possible? Sorry, but my php and such are at the brink of understanding, but I wouldn't want to tinker with it on my own.

Glad I didn't manage to get in before the system crashed. Now I only have to type it in once (he said hopefully) :lol:

Just realised that this will also mean that the "recently" link on the right will need to do the original default behaviour, not the new one.

2 Jul 05, 2007 04:18

I made a hack like this last week, was pretty cool.

Here is the alteration for you (apply in index.php)

# Additionnaly, you can set other values (see URL params in the manual)...
# $order = 'ASC'; // This for example would display the blog in chronological order...

# Customized Display
if
(	// Pre-Reqs for our customized display
	$blog === 3 /* i'm guessing 3 is the id of your blog 'c' */
	&& !isset($_REQUEST['disp'])	/* altern display */
	&& !isset($_REQUEST['m'])		/* archives */
	&& !isset($_REQUEST['s'])		/* search */
	&& !isset($_REQUEST['more'])	/* single post */
	// && !isset($_REQUEST['cat'])			/* categories */
	// && !isset($_REQUEST['catsel[]'])		/* categories */
)
{	# Do our customized display
	$disp = 'arcdir';
	$mylist = 1; // not sure what this is for.... but you said you needed it RTomes....
}

// That's it, now let b2evolution do the rest! :)
require $inc_path.'_blog_main.inc.php';

3 Jul 05, 2007 09:54

Thanks Balupton. We are having a mad time here the next few days (my 60th birthday preparations), so will wait until after that to try this out. All the best!

4 Jul 05, 2007 18:07

Damn yer old :|

Happy Birthday :D

¥


Form is loading...