phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
hot topics

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
::  
Author Message
euroman
PR0
PR0


Joined: 21 Oct 2006
Posts: 81

hot topicsPosted: 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
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15127

hot topicsPosted: Sat Feb 10, 2007 7:35 pm    Post subject: Re: hot topics

well, the hot threshold is not a topic type, so you need to calculate it.

In viewforum.php, look for:

Code:
if($replies >= $board_config['hot_threshold'])


Wink

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
euroman
PR0
PR0


Joined: 21 Oct 2006
Posts: 81

hot topicsPosted: Sat Feb 10, 2007 7:47 pm    Post subject: Re: hot topics

Brilliant! Thanks for the tip I got it to work Very Happy
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB Forum
Page 1 of 1

Navigation Similar Topics

Jump to: