Change block in "./inc/shows.inc.php":
Automatically Generated, be sure to be very precise on tabs and spaces.
Replace this:
}else{ $count_all = count($all_news); }
With:
// Author Filter v1.0 - changeblock - Old
// }else{ $count_all = count($all_news); }
// Author Filter v1.0 - changeblock - New
} else {
if (isset($author)) {
foreach($all_news as $news_line){
$news_arr = explode("|", $news_line);
if (in_array($news_arr[1], explode(",", $author))) {
$count_all++;
}
}
} else {
$count_all = count($all_news);
}
}
// Author Filter v1.0 - End changeblock
Add block in "./inc/shows.inc.php":
Automatically Generated, be sure to be very precise on tabs and spaces.
Add this:
// Author Filter v1.0 - addblock
if (isset($author) and
!in_array($news_arr[1], explode(",", $author))) {
continue;
}
// Author Filter v1.0 - End addblock
Between:
$news_arr = explode("|", $news_line);
And:
if($requested_cats and $requested_cats[$news_arr[6]] == TRUE){ $count_all ++; }
Add block in "./inc/shows.inc.php":
Automatically Generated, be sure to be very precise on tabs and spaces.
Add this:
// Author Filter v1.0 - addblock
if (isset($author) and
!in_array($news_arr[1], explode(",", $author))) {
continue;
}
// Author Filter v1.0 - End addblock
Between:
if($category and $requested_cats[$news_arr[6]] != TRUE){ continue; }
And:
if(isset($start_from) and $start_from != ""){
End installation notes:You can now use something like the following in your include code:
$author = "Author1,Author2" ;
 |