PEAK XOOPS - ALTSYS on ImpressCMS1.2 in englishin japanese

ALTSYS on ImpressCMS1.2

List posts in the topic

none ALTSYS on ImpressCMS1.2

msg# 1
depth:
0
Previous post - Next post | Parent - No child | Posted on 2010/2/4 14:36 | Last modified
toychee  Private   Posts: 4
日本語で申し訳ありません。
ImpressCMS1.2 においてaltsys 0.71aのブロック動作が正常に動作しませんでした。$** = new XoopsBlock()の部分が正常に動作せず、モジュールのブロックが正常に取得されない状態です。
(備考 XOOPS 2.5 alphaでは正常に動作しているようです。)

こちらの情報をもとに、
xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php
を以下の用に変更してみました。
それなりに動いてるようですが、当てずっぽうなので、あまり自信がありません、お忙しいでしょうが、お時間がございましたら、検証いただけるとありがたいです。
178c178,183
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
359c364,369
< 		$block_arr[] = new XoopsBlock( $myrow ) ;
---
> 		if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 			$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 			$block_arr[] = $myblock_handler->get($myrow[bid]);
> 		} else {
> 			$block_arr[] = new XoopsBlock( $myrow ) ;
> 		}
420c430,435
< 		$block_arr[] = new XoopsBlock( $myrow ) ;
---
> 		if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 			$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 			$block_arr[] = $myblock_handler->get($myrow[bid]);
> 		} else {
> 			$block_arr[] = new XoopsBlock( $myrow ) ;
> 		}
444c459,464
< 	$block = new XoopsBlock($bid);
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
584c604,609
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
597c622,627
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
615c645,650
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
625c660,665
< 	$cblock = new XoopsBlock() ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$cblock = $myblock_handler->get();
> 	} else {
> 		$cblock = new XoopsBlock() ;
> 	}
670c710,715
< 		$new_block = new XoopsBlock() ;
---
> 		if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 			$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 			$new_block = $myblock_handler->get();
> 		} else {
> 			$new_block = new XoopsBlock() ;
> 		}
703c748,754
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
> 
807c858,863
< 	$block = new XoopsBlock( $bid ) ;
---
> 	if ( defined('ICMS_VERSION_BUILD') && ICMS_VERSION_BUILD > 27  ) { /* ImpressCMS 1.2+ */
> 		$myblock_handler = new IcmsBlockHandler($this->db); /* Will only work in ImpressCMS 1.2+ */
> 		$block = $myblock_handler->get($bid);
> 	} else {
> 		$block = new XoopsBlock( $bid ) ;
> 	}
Votes:7 Average:7.14

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!