![]() ![]() |
Oct 4 2008, 05:11 PM
Post
#1
|
|
|
CuteNews Support Crew Pimp ![]() ![]() ![]() Group: Support Posts: 16,501 Joined: 28-August 05 From: Belgium Member No.: 5,662 |
CuteNews Compatibility: 1.4.5 - 1.4.7
Description: The category icons for articles inside multiple categories don't show. The code for showing icons was never updated when intoducing multiple categories. Instructions: in shows.inc.php find 2 times CODE if($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img style=\"border: none;\" alt=\"".$cat[$news_arr[6]]." icon\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); } else{ $output = str_replace("{category-icon}", "", $output); } and replace with CODE if($news_arr[6] == ""){ $output = str_replace("{category-icon}", "", $output); }
elseif($cat_icon[$news_arr[6]] != ""){ $output = str_replace("{category-icon}", "<img style=\"border: none;\" alt=\"".$cat[$news_arr[6]]." icon\" src=\"".$cat_icon[$news_arr[6]]."\" />", $output); } else{ $icons = explode(",",$news_arr[6]); $show_icons=""; for($counter = 0; $counter < sizeof($icons); $counter++){ if(strlen(trim($cat[$icons[$counter]]))) $show_icons = $show_icons."<img style=\"border: none;\" alt=\"".$cat[$icons[$counter]]." icon\" src=\"".$cat_icon[$icons[$counter]]."\" />"; } $output = str_replace("{category-icon}", "$show_icons", $output); }
Reason for edit: Changed compatibility from "1.4.5 - *" to "1.4.5 - 1.4.7"
-------------------- General FAQ Spam Protection In Cutenews Comments get deleted _______________________ << If you appreciate my help |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 01:49 AM |