PEAK XOOPS - Re: myblocksadmin in englishin japanese

Re: myblocksadmin

List posts in the topic

question Re: myblocksadmin

msg# 1.1.1.1.1.1.1.1
depth:
7
Previous post - Next post | Parent - No child | Posted on 2005/5/6 14:33
GIJOE  Gunnery Sergeant   Posts: 4110
hi banesto. (Miguel Indurain?)

Quote:
But here is a question: how can i clone a system block?
I tried to clone new users block, but no luck, there was an error report: invalid block..

Could you recommend me something?

blocks admin module supports cloning block_type of 'C' or 'D'.
'C' means custom block.
'D' means duplicated block.

Althogh I don't recommend it, you can hack like this:

line 342 of blocksadmin.inc.php
	// block type check
	$block_type = $block->getVar('block_type') ;
	if( $block_type != 'C' && $block_type != 'M' && $block_type != 'D' ) {
		redirect_header('myblocksadmin.php',4,'Invalid block');
	}

Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!