<?php
$excluded_articles = explode(',', $this->parent->API->get('excluded_arts', ''));
$excluded_categories = $this->parent->API->get('excluded_cats', '');
?>
!in_array($this->item->id, $excluded_articles) &&
!in_array($this->item->catid, $excluded_categories) &&
teitbite wrote:Hi
W pliku /html/com_content/article/default.php trzeba dodac przed tym duzym warunkiem:
- Code: Select all
<?php
$excluded_articles = explode(',', $this->parent->API->get('excluded_arts', ''));
$excluded_categories = $this->parent->API->get('excluded_cats', '');
?>
a do samego warunku dodac 2 linijki:
- Code: Select all
!in_array($this->item->id, $excluded_articles) &&
!in_array($this->item->catid, $excluded_categories) &&
jezeli beda z tym problemy prosze podeslac ftp, a wprowadze zmiany.
teitbite wrote:Hi
Prosze sprobowac podmienic na ten plik.
<?php
$excluded_articles = explode(',', $templateSettings->get('excluded_arts', ''));
$excluded_categories = $templateSettings->get('excluded_cats', '');
?>
teitbite wrote:Hi
Bardzo przepraszam, programisci odpisali zaraz po moim pytaniu, ale mam cos z kontem mailowym i nie dostalem potwierdzenia. Problem wymagal podmiany 2 lini z kodu, ktory dalem poprzednio. Teraz dziala.
- Code: Select all
<?php
$excluded_articles = explode(',', $templateSettings->get('excluded_arts', ''));
$excluded_categories = $templateSettings->get('excluded_cats', '');
?>
!in_array($this->item->id, $excluded_articles) &&
!in_array($this->item->catid, $excluded_categories) &&