2012年3月10日土曜日

 個々最近のCMS事情を所感でまとめると、開発ベースとしての枠組みはCakePHPを始めとするMVCフレームワークが担うのでそれほど重用視されなくなった。だから世界的にみてもDrupal,Joomlaが弱くなったと思う。

 で、WordPressが健在なのはノンプログラムでユーザーのやりたい事を実現させている事だと思う。デザイナーやコーダ、ブロガーがコンテンツを仕事や趣味に切り盛りする手段という事です。

 さて、ではXOOPSはどこにという事で、現況の立ち位置はDrupal,Joomla組なんですね。だからマインドマップではデザイナーやコーダ向けの枝葉とCakePHP向けの枝葉を延ばすのが生き残り策だと思います。

 もしも、デザイナーやコーダがハッピーになれて、MVCフレームワークの開発者がハッピーに慣れるなら最高の環境を提供できるじゃないですか。そしてMVCならXOOPS独自の作法を考えなくてもいいのがCakeCMSモジュールでCake流にCMSを調理できるという事です。そしてCakeのViewをsmartyに出せばコーダはハッピーにコードが掛けるという目論見です。

 Smartyがデザイナーに取って難しいという議論はまた次回。。

 雑感でした。

2012年2月25日土曜日

XOOPS Cube weblinks モジュールのハッキング

XOOPS Cube weblinks モジュールのハッキング

登録データを編集する際のフォーム生成プロセス

modlink.php 修正用コントローラ
+ print_modify_form()    //修正ビューの生成
  + show_user_form()
    + $this->_link_form_handler->show_user_form()
      + $this->_load_define();
        + $this->_linkitem_define_handler->load();
          実体:weblinks_get_handler( 'linkitem_define',  $dirname );
       の実体:happy_linux_get_handler($name, $module_dir, 'weblinks');
                       ⬆class
                       
       $class = 'weblinks_linkitem_define_handler';
      
       これが呼ばれる。結果、
      
       weblinks_linkitem_define_handler.php の load() 関数が呼び出される。

2012年2月14日火曜日

galleria 1.2.6js bug

galleria 1.2.6js bug







Error message : Could not extract width/height from image: brabra.....


Before
                    // Delay the callback to "fix" the Adblock Bug
                    // http://code.google.com/p/adblockforchrome/issues/detail?id=3701
                    if ( ( !this.width || !this.height ) ) {
                        window.setTimeout( (function( img ) {
                            return function() {
                                if ( img.width && img.height ) {
                                    complete.call( img );
                                } else {
                                    Galleria.raise('Could not extract width/height from image: ' + img.src +
                                        '. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
                                }
                            };
                        }( this )), 2);
                    } else {
                        complete.call( this );
                    }
After
                    // Delay the callback to "fix" the Adblock Bug
                    // http://code.google.com/p/adblockforchrome/issues/detail?id=3701
                    if ( ( !this.width || !this.height ) ) {
                        window.setTimeout( (function( img ) {
                            return function() {
                                if ( img.width && img.height ) {
                                    complete.call( img );
                                } else {
                                    try {
                                        $('<img/>').attr('src',$(img).attr("src")).load(function() {complete.call( this )})
                                        } catch(error_message) {
                                        Galleria.raise('Could not extract width/height from image: ' + img.src +
                                        '. Traced measures: width:' + img.width + 'px, height: ' + img.height + 'px.');
                                    }
                                }
                            };
                        }( this )), 2);
                    } else {
                        complete.call( this );
                    }