PEAK XOOPS - Re: AltSys: Bug: Block Config Option (Multi-Select) Save Fails in englishin japanese

Re: AltSys: Bug: Block Config Option (Multi-Select) Save Fails

List posts in the topic

none Re: AltSys: Bug: Block Config Option (Multi-Select) Save Fails

msg# 1.3.1
depth:
2
Previous post - Next post | Parent - No child | Posted on 2009/10/31 7:06
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi info.

Quote:

Working (in System Blocks area):
UPDATE newblocks SET options='0|5|0|12,10,8|0|0|block', isactive=1, title='More Spotlights', content='', side=8, weight=1, visible=1, c_type='H', template='smartsection_items_spot.html', bcachetime=0, last_modified=1256826349 WHERE bid=120

Not Working (in AltSys Blocks area):
UPDATE newblocks SET options='0|5|0|Array|0|0|block', isactive=1, title='More Spotlights', content='', side=8, weight=1, visible=1, c_type='', template='smartsection_items_spot.html', bcachetime=0, last_modified=1256826310 WHERE bid=120
It looks a new feature above X2.
(To pass arrays as the parameter)

I don't know any modules using the feature, try it.

line 452 in TRUST/libs/altsys/class/MyBlocksAdmin.class.php
	if( is_array( $options ) && count( $options ) > 0 ) {
		foreach( array_keys( $options ) as $key ) {
			if( is_array( $options[ $key ] ) ) {
				$options[ $key ] = implode( ',' , $options[ $key ] ) ;
			}
		}
		$block->setVar( 'options' , implode( '|' , $options ) ) ;
	}

If it works fine, I'll update it.
Votes:19 Average:3.68

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!