harmonyfandei.com Posted October 4, 2010 Share Posted October 4, 2010 Saya Ingin Memindahkan Kolom Information Dari Modul Kiri Ke Modul Kanan, Tetapi Kenapa Pada Saat Saya Isi Hooknya Tidak Dapat Diisi Dan Cenderung Di Blok, Ada Yang Bisa Memberikan Saya Sebuah Solusi ? Link to comment Share on other sites More sharing options...
cingkonext Posted October 5, 2010 Share Posted October 5, 2010 Saya Ingin Memindahkan Kolom Information Dari Modul Kiri Ke Modul Kanan, Tetapi Kenapa Pada Saat Saya Isi Hooknya Tidak Dapat Diisi Dan Cenderung Di Blok, Ada Yang Bisa Memberikan Saya Sebuah Solusi ? Kamsudnya modul blockinfos? kalo iya coba :1. uninstal dulu modulnya2. buka file blockinfos.php, replace aja semua isi scriptnya dengan ini :> <?php class BlockInfos extends Module { private $_html; public function __construct() { $this->name = 'blockinfos'; $this->tab = 'Blocks'; $this->version = 1.1; parent::__construct(); $this->displayName = $this->l('Info block'); $this->description = $this->l('Adds a block with several information links'); } public function install() { if (!parent::install() OR !$this->registerHook('rightColumn')) return false; Db::getInstance()->Execute(' INSERT INTO `'._DB_PREFIX_.'block_cms`(`id_block`, `id_cms`) VALUES ('.intval($this->id).', 1), ('.intval($this->id).', 2), ('.intval($this->id).', 3), ('.intval($this->id).', 4)'); return true; } public function uninstall() { Db::getInstance()->Execute(' DELETE FROM `'._DB_PREFIX_.'block_cms` WHERE `id_block` ='.intval($this->id)); parent::uninstall(); } public function getContent() { if(isset($_POST['btnSubmit'])) $this->_postProcess(); $this-> _displayForm(); return $this->_html; } private function _displayForm() { global $cookie; $this->_html .= '<form action="'.$_SERVER['REQUEST_URI'].'" method="post"> '.$this->l('Selected files displayed').' '.$this->l('Please check files that will be displayed in this module').'. </pre> <table cellspacing="0" cellpadding="0" style="width:29.5em;"><input type="checkbox" name="checkme" class="noborder"></th> '.$this->l('ID').''.$this->l('Name').'<input type="checkbox" class="noborder" value="'.$row['id_cms'].'" name="categoryBox[]" '.((CMS::isInBlock($row['id_cms'], $this->id)) ? 'checked="checked"' : '').'>'.$row['id_cms'].''.$row['meta_title'].'</table> <br><br><br> <input type="submit" name="btnSubmit" class="button" value="'.$this->l('Update').'"><br><br> </form>';<br> }<br><br> private function _postProcess()<br> {<br> if (Tools::isSubmit('btnSubmit'))<br> {<br> $categoryBox = Tools::getValue('categoryBox');<br> if ($categoryBox AND is_array($categoryBox) AND count($categoryBox))<br> {<br> foreach ($categoryBox AS $row)<br> $cms[] = intval($row);<br> if (CMS::updateCmsToBlock($cms, $this->id))<br> $this->_html .= '<div>'.$this->l('Cms Updated').'</div>';<br> }<br> else<br> {<br> Db::getInstance()->Execute('<br> DELETE FROM `'._DB_PREFIX_.'block_cms`<br> WHERE `id_block` ='.intval($this->id));<br> }<br> }<br> }<br><br> function hookRightColumn($params)<br> {<br> global $smarty, $cookie;<br><br> $cms = CMS::listCms($cookie->id_lang, $this->id);<br> $id_cms = array();<br> foreach($cms AS $row)<br> $id_cms[] = intval($row['id_cms']);<br> $smarty->assign('cmslinks', CMS::getLinks($cookie->id_lang, $id_cms ? $id_cms : NULL));<br> return $this->display(__FILE__, 'blockinfos.tpl');<br> }<br><br> function hookLeftColumn($params)<br> {<br> return $this->hookRightColumn($params);<br> }<br> 3. instal modulnya4. coba bersihkan cache browser nya (mozilla : tools > clear recent history > details > beri tanda contreng/centang cache > Clear now5. coba refresh web nya Link to comment Share on other sites More sharing options...
ipz elhakim Posted November 10, 2010 Share Posted November 10, 2010 kalo cara saya sih tinggal dari BO nya..pilih tab MODULES->positionkemudian hapus Block information dari Left Column Block anda...kemudian Tambah Module (masih di tab position) -> pilih module Block Information -> Hooke Ke Right Column Block .selesai,, silhkan lihat di FO anda.. Link to comment Share on other sites More sharing options...
PerakPutih Posted November 16, 2010 Share Posted November 16, 2010 kalo cara saya sih tinggal dari BO nya..pilih tab MODULES->positionkemudian hapus Block information dari Left Column Block anda...kemudian Tambah Module (masih di tab position) -> pilih module Block Information -> Hooke Ke Right Column Block .selesai,, silhkan lihat di FO anda.. makasiihhhhh brooo... maanfaat juga nihh buat aneeee..... Link to comment Share on other sites More sharing options...
ipz elhakim Posted November 16, 2010 Share Posted November 16, 2010 sama-sama bro PerakPutih... Link to comment Share on other sites More sharing options...
ani_anisyah Posted December 27, 2010 Share Posted December 27, 2010 kalo cara saya sih tinggal dari BO nya..pilih tab MODULES->positionkemudian hapus Block information dari Left Column Block anda...kemudian Tambah Module (masih di tab position) -> pilih module Block Information -> Hooke Ke Right Column Block .selesai,, silhkan lihat di FO anda.. tapi , klo masalah kayak gini gmna ?, saya mau module cart block di sebelah kanan, setelah saya periksa ternyata posisi module nya sudah ada disebelah kanan, tetapi setelah di refresh ttp saja cart blocknya ada di bawah ,, Link to comment Share on other sites More sharing options...
otsuka Posted May 19, 2011 Share Posted May 19, 2011 nice trick..makasehhh.... Link to comment Share on other sites More sharing options...
Radira Posted June 29, 2012 Share Posted June 29, 2012 (edited) hmm Edited June 29, 2012 by Radira (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts