Advertisement
Guest User

Untitled

a guest
Oct 7th, 2012
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.49 KB | None | 0 0
  1. function render_entry($topic) {
  2.         global $DB, $std, $ibforums;
  3.        
  4.         $topic['last_text']   = $ibforums->lang['last_post_by'];
  5.        
  6.         $topic['last_poster'] = ($topic['last_poster_id'] != 0)
  7.                                 ? "<a href='{$this->base_url}showuser={$topic['last_poster_id']}'>{$topic['last_poster_name']}</a>"
  8.                                 : "-".$topic['last_poster_name']."-";
  9.                                
  10.         $topic['starter']     = ($topic['starter_id']     != 0)
  11.                                 ? "<a href='{$this->base_url}showuser={$topic['starter_id']}'>{$topic['starter_name']}</a>"
  12.                                 : "-".$topic['starter_name']."-";
  13.      
  14.         if ($topic['poll_state'])
  15.         {
  16.             $topic['prefix']     = $ibforums->vars['pre_polls'].' ';
  17.         }
  18.        
  19.         if ( ($ibforums->member['id']) and ($topic['author_id']) )
  20.         {
  21.             $show_dots = 1;
  22.         }
  23.    
  24.         $topic['folder_img']     = $std->folder_icon($topic, $show_dots, $this->read_array[$topic['tid']]);
  25.        
  26.         // My modified code here
  27.         if ( $topic['topic_icon']     = $topic['icon_id']  ) {
  28.                     if (is_numeric($topic['icon_id'])) {
  29.                     "<img src='".$ibforums->vars['img_url']."/icon{$topic['icon_id']}.gif' alt='{$topic['icon_id']}' />";
  30.                     } else {
  31.                     "<span class='text-icon {$topic['icon_id']}'>{$topic['icon_id']}</span>";
  32.                     }
  33.                 } else {
  34.                  "";
  35.                  }
  36.  
  37.         /* THE ORIGINAL HERE
  38.         $topic['topic_icon']     = $topic['icon_id']  ? '<img src="'.$ibforums->vars['img_url'] . '/icon' . $topic['icon_id'] . '.gif" border="0" alt="' . $topic['icon_id'] . '" />'
  39.                                                       : '&nbsp;';
  40.         END ORIGINAL */
  41.  
  42. // some other code ...
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement