Code question? - Joomla! Forum - community, help and support


i'm making site specific edits mambot plugin. force itemid = "itemid=1057"

the code calling item is:

code: select all

      foreach($this->_listmodule $m){
         $order++;
         $secid = $m->id;
         $mid[] = $secid;
         //print_r($this->_sectionparams->tostring());exit();
         if(!isset($this->_listmenu[$secid])){
            $query = "insert #__menu (`menutype`, `name`,  `link`, `type`, `published`, `parent`, `componentid`, `sublevel`, `ordering`, `checked_out`, `checked_out_time`, `pollid`, `browsernav`, `access`, `utaccess`, `params`) values ";
            $query .= "('{$this->_menutype}', '".$m->title."',  'index.php?option=com_alphacontent&section=".$secid."', 'content_blog_section', ".$m->published.", 0, $secid, 0, $order, 0, '0000-00-00 00:00:00', 0, 0, 0, 3, '".$this->_sectionparams->tostring().$this->_gparams->tostring()."\nsectionid=$secid')";   
            $this->_db->setquery($query);
         
            $this->_db->query();
            
            $insertid = $this->_db->insertid();
            $listcategories = $this->getcategories($secid);
            


my question how edit insertid line call itemid=1057??






Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO