Installation notes:This hack will allow you to filter the news by the first letter. Change block in "./inc/shows.inc.php":
Automatically Generated, be sure to be very precise on tabs and spaces.
Replace this:
if(isset($category) and $category != ""){
With:
// Filter by First Character v1.0 - changeblock - Old
// if(isset($category) and $category != ""){
// Filter by First Character v1.0 - changeblock - New
// Delete Block
// Filter by First Character v1.0 - End changeblock
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:
// Filter by First Character v1.0 - changeblock - Old
// }else{ $count_all = count($all_news); }
// Filter by First Character v1.0 - changeblock - New
// Delete Block
// Filter by First Character 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:
// Filter by First Character v1.0 - addblock
if ($first_letter and strtolower($first_letter) != strtolower($news_arr[2][0])) {
continue;
}
// Filter by First Character 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:
// Filter by First Character v1.0 - addblock
if ($first_letter and strtolower($first_letter) != strtolower($news_arr[2][0])) {
continue;
}
// Filter by First Character 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:The syntax to use this hack is either the following in your include code: $first_letter = 'x'; You can also add use this through the url: page.php?first_letter=x
 |