| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
Posted: Sat Feb 10, 2007 7:21 pm Post subject: hot topics |
|
|
I have moded another mod showing last active topics on index. You can see it on the bottom of my page www.thegame-online.dk (the box saying 10 seneste indlæg)
The code that controls the icons is:
| Code: | for($i = 0; $i < $topics; $i++)
{
$mar_title = $row[$i]["topic_title"];
$mar_url = $phpbb_root_path . 'viewtopic.'.$phpEx.'?'.POST_TOPIC_URL.'='.$row[$i]["topic_id"];
$mar_user = $row[$i]["username"];
$topic_unread = ($row[$i]['post_time'] > topic_last_read($row[$i]['forum_id'], $row[$i]['topic_id']));
$new = $topic_unread ? "_new" : "";
if ( $row[$i]["topic_status"] == TOPIC_LOCKED )
{
$pic = $images["folder_locked$new"];
}
else
{
switch ($row[$i]["topic_type"])
{
case POST_GLOBAL_ANNOUNCE:
$pic = $images["folder_global_announce$new"];
break;
case POST_ANNOUNCE:
$pic = $images["folder_announce$new"];
break;
case POST_STICKY:
$pic = $images["folder_sticky$new"];
break;
default:
$pic = $images["folder$new"];
}
} |
I am trying to get it to show icons for hot topics also:
like this:
| Code: | case POST_HOT:
$pic = $images["folder_hot$new"];
break; |
But it has no effect and I cant se why?
The icons in subsilver/images is called:
folder_hot
folder_new_hot
I also created a new icon folder_hot_new but it didnt help
Suggestions much appreciated... |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15127
|
|
| Back to top |
|
 |
euroman PR0

Joined: 21 Oct 2006 Posts: 81
|
Posted: Sat Feb 10, 2007 7:47 pm Post subject: Re: hot topics |
|
|
Brilliant! Thanks for the tip I got it to work  |
|
|
| Back to top |
|
 |
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |