idagalma Posted February 21, 2009 Share Posted February 21, 2009 Teman-teman !Situs saya kok tampilan blockadvertising nya kok jadi double ya, soalnya ada disebelah kiri dan juga disebelah kanan, kembar gitu lhoh !Kira -kira ada yg tahu dimana letak script yg harus dirubah, sehingga tampilannya cukup satu ajathanks ! Link to comment Share on other sites More sharing options...
Ardian Yuli Setyanto Posted February 21, 2009 Share Posted February 21, 2009 pernah ngedit file .php nya ? karena di situ ada register hook untuk left / right. Link to comment Share on other sites More sharing options...
idagalma Posted February 25, 2009 Author Share Posted February 25, 2009 trus yg perlu diubah atau dihapus baris yg mana ya dari script ini :} function install() { if (!parent::install()) return false; if (!$this->registerHook('rightColumn') OR !$this->registerHook('leftColumn')) return false; return true; }makasih ! Link to comment Share on other sites More sharing options...
idagalma Posted February 27, 2009 Author Share Posted February 27, 2009 bagi yg tahu tolong dong bagaimana cara merubah script ini supaya iklannya tidak tampil di dua tempat yaitu kanan dan kiri, maksudku agar iklannya tampil di sebalh kiri ajadari script ini apa yg dirubah, pls help !<?phpclass BlockAdvertising extends Module{ function __construct() { $this->name = 'blockadvertising'; $this->tab = 'Blocks'; $this->version = 0.1; parent::__construct(); // The parent construct is required for translations $this->page = basename(__FILE__, '.php'); $this->displayName = $this->l('Block advertising'); $this->description = $this->l('Adds a block to display an advertising'); } function install() { if (!parent::install()) return false; if (!$this->registerHook('rightColumn') OR !$this->registerHook('leftColumn')) return false; return true; } /** * Returns module content * * @param array $params Parameters * @return string Content */ function hookRightColumn($params) { global $smarty; $smarty->assign('image', './modules/'.$this->name.'/advertising.jpg'); return $this->display(__FILE__, 'blockadvertising.tpl'); } function hookLeftColumn($params) { return $this->hookRightColumn($params); }}?> Link to comment Share on other sites More sharing options...
Ardian Yuli Setyanto Posted February 27, 2009 Share Posted February 27, 2009 ok. bos, tak periksa dulu ya. Link to comment Share on other sites More sharing options...
idagalma Posted February 27, 2009 Author Share Posted February 27, 2009 Ok, Makasih banyak !, saya tunggu..!Salam sukses ! Link to comment Share on other sites More sharing options...
Prestafreak™ Posted February 27, 2009 Share Posted February 27, 2009 Dah dicoba dihilangkan dari Back Office->Modules->PositionsTrus kita delete salah satunya (mau dihilangkan yang kanan ato yang kiri) dari right/left column blocks.Aku attach gambar, sebagai contoh aja karena aku gak install modul itu Link to comment Share on other sites More sharing options...
idagalma Posted February 27, 2009 Author Share Posted February 27, 2009 makasih buanyak ! udah bisa sekarang, eh ternyata rahasianya ada di modul yach ! salam sukses ! Link to comment Share on other sites More sharing options...
idagalma Posted February 27, 2009 Author Share Posted February 27, 2009 Jika iklan kanan dan kiri keduanya dipakai, tapi tampilan iklannya beda dan tidak kembar, guimana tuh ? Link to comment Share on other sites More sharing options...
Prestafreak™ Posted February 28, 2009 Share Posted February 28, 2009 Cara gampang ya tinggal copy modulnya aja, ganti nama dikit (termasuk code php dan tpl yang related dengan nama modul tersebut).Sorry saya gak pake modul itu, jadi gak bisa ngasih contohnya. php ma tpl nya... (gak susah2 amat kok...) sambil coba2 sendiri dulu.. Ntar kalo masih stuck... kalo sempat aku bantu... (lagi sibuk nih...)BTW webnya dah diupdate ya... sekarang advertising modulnya tinggal dikiri aja. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now