How to integrate popfeed plugin with the jevents component - Joomla! Forum - community, help and support


hi, trying integrate popfeed plugin jevents component. popfeed works joomla articles. need know how or of objects defined. below snippet of code helper.php popfeed plugin.

code: select all

  public function isnotexcluded() {
    if ( (isset($this->article->id)) && ($this->article->id > 0) ) {
      if ( in_array($this->article->id, explode(',', $this->params->get('excluded_ids', ''))) ) {
        return false;
      }
      if ($this->params->get('catids', '') != '') {
        $db = jfactory::getdbo();
        $db->setquery('select count(*) `#__content` '.
                      ' `id` = "'.$aid.'" '.
                      ' , `catid` in ('.$this->params->get('catids', '').')');
        return ($db->loadresult() > 0);
      }
    }
    return true;
  }


in case, or how object $this->article defined. alter helper file , have similar $this->event->id in order suit jevents component

going through https://docs.joomla.org/supporting_plug ... _component trying figure out how create custom plugin groups in joomla. there!





Comments

Popular posts from this blog

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support