Anasayfa FORUMLAR Üye Girişi Dosyalar Dersler İpuçları Yardımcı Araçlar Hakkımızda
KİMLER BAĞLI
Toplam Üye: 32638
Aktif Üye: 0
Aktif Ziyaretçi: 828
Üye Adı
Şifre
Beni Hatırla
          Yeni Üye KayıtYeni Üye Kayıt
          Şifremi UnuttumŞifremi Unuttum
FORUMLAR
 facebookda paylas eklenti..
(11345 okuma, 11 yanıt)
 Üyelerin profilerine yoru..
(11251 okuma, 10 yanıt)
 Forum Mesajları..
(7018 okuma, 4 yanıt)
 Forumun üst bölümüne nası..
(6085 okuma, 2 yanıt)
 Power Nuke Hakkinda Uzma..
(15799 okuma, 19 yanıt)
 mesajı begenme eklentisi..
(6962 okuma, 4 yanıt)
 imza karakterlerinin sayı..
(6368 okuma, 4 yanıt)
 Forumda Embed kodlar..
(66663 okuma, 11 yanıt)
 Eğitim Sitesi için banner..
(8308 okuma, 5 yanıt)
 Forum Da ki katogorileri ..
(6157 okuma, 5 yanıt)
 Forum Admin Panelde Kulla..
(4163 okuma, 1 yanıt)
 lewel mod..
(6841 okuma, 5 yanıt)
 Avatar boyunu ayarlama..
(6911 okuma, 5 yanıt)
 Foruma iframe Kodları Cal..
(6262 okuma, 4 yanıt)
 Üye paneli..
(11901 okuma, 14 yanıt)
 popüler Hikaye Yan Blok..
(3681 okuma, 0 yanıt)
 Rütbe resmi..
(5308 okuma, 3 yanıt)
 Alt Forum Ekletisinde Alt..
(5909 okuma, 3 yanıt)
 Advanced Username Color..
(10814 okuma, 12 yanıt)
 body kismi hangi nuke say..
(5341 okuma, 2 yanıt)
 Forumda Son konuları Site..
(3690 okuma, 0 yanıt)
 wep sitesi yapanlar..
(4528 okuma, 2 yanıt)
 Bu Eklentinin Aynısı Lazı..
(9495 okuma, 11 yanıt)
 Forumu düzenleyeyim derke..
(5163 okuma, 3 yanıt)
 www.teselliver.com siteye..
(4876 okuma, 2 yanıt)
 Php Nuke BB Calısmaları..
(3497 okuma, 1 yanıt)
 İstek İstatistikler Modu..
(4693 okuma, 2 yanıt)
 Formumuzu Gelistirmek Ve ..
(3274 okuma, 0 yanıt)
 Arkadaşlar cinsiyet ve do..
(7832 okuma, 6 yanıt)
 7.9 Blue Editoins Formunu..
(3563 okuma, 0 yanıt)
 mesajdan sonra sponsor re..
(4633 okuma, 2 yanıt)
 Buyrun yapamayanlar için ..
(32412 okuma, 38 yanıt)
 Entegreler Sıtede bulamad..
(4021 okuma, 1 yanıt)
 En Gelısmıs Phpbb Sürümü ..
(6500 okuma, 5 yanıt)
 konu başlıkları hazır for..
(3839 okuma, 0 yanıt)
 Eklenti..
(3988 okuma, 1 yanıt)
 AJAX Sohbet Odası - Shout..
(13661 okuma, 17 yanıt)
 Sohbet Modu..
(5589 okuma, 3 yanıt)
 Smilar Topics..
(3909 okuma, 1 yanıt)
 Foruma Small Shoutbox..
(3251 okuma, 0 yanıt)
 Php Nuke 8.0 A FCK Editör..
(6431 okuma, 5 yanıt)
 mod fourum message..
(4803 okuma, 2 yanıt)
 Php Nuke Formunu Nasıl Ge..
(8995 okuma, 10 yanıt)
 Bu eklentinin adı nedir ?..
(5024 okuma, 2 yanıt)
 Cash Mod 221 - Türkçe [MO..
(6252 okuma, 3 yanıt)
 Kilitlenen Konunun Üzerin..
(16096 okuma, 16 yanıt)
 Forum da Bu Hatayı veriyo..
(7127 okuma, 4 yanıt)
 phpnuke foruma güvenlik k..
(5659 okuma, 3 yanıt)
 daha önce bu konuya bakan..
(5845 okuma, 3 yanıt)
 BBtoNuke 2.22 to BBtoNuke..
(3690 okuma, 0 yanıt)
Netopsiyon Online: Forums
Netopsiyon Online :: Başlık görüntüleniyor - nicklerde renk çıkması gerekmezmi viewtopic dosyası
 AramaArama   RütbelerRütbeliler   ProfilProfil   GirişGiriş 


nicklerde renk çıkması gerekmezmi viewtopic dosyası

 
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> NukeBB Eklentileri
Önceki başlık :: Sonraki başlık  
Yazar Mesaj
karaca25
Mesaj: 500+
Mesaj: 500+





Kayıt: Oct 02, 2007
Mesajlar: 717

MesajTarih: 2009-05-10, 14:16:20    Mesaj konusu: nicklerde renk çıkması gerekmezmi viewtopic dosyası Alıntıyla Cevap Gönder

Kod:
<php>sql_query($sql)) )
            {
               message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql);
            }

            if ( !($row = $db->sql_fetchrow($result)) )
            {
               message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit');
            }

            $post_id = $row['post_id'];

            if (isset($HTTP_GET_VARS['sid']))
            {
               header($header_location . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id", true));
               exit;
            }
            else
            {
               header($header_location . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id#$post_id", true));
               exit;
            }
         }
      }
                header($header_location . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true));
                exit;

   }
   else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' )
   {
      $sql_condition = ( $HTTP_GET_VARS['view'] == 'next' ) ? '>' : '<sql_ordering>sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Could not obtain newer/older topic information", '', __LINE__, __FILE__, $sql);
      }

      if ( $row = $db->sql_fetchrow($result) )
      {
         $topic_id = intval($row['topic_id']);
      }
      else
      {
         $message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics';
         message_die(GENERAL_MESSAGE, $message);
      }
   }
}

//
// This rather complex gaggle of code handles querying for topics but
// also allows for direct linking to a post (and the calculation of which
// page the post is on and the correct display of viewtopic)
//
$join_sql_table = (!$post_id) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 ";
$join_sql = (!$post_id) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id </a>= $min_post_time";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, "Could not obtain limited topics count information", '', __LINE__, __FILE__, $sql);
   }

   $total_replies = ( $row = $db->sql_fetchrow($result) ) ? intval($row['num_posts']) : 0;

   $limit_posts_time = "AND p.post_time >= $min_post_time ";

   if ( !empty($HTTP_POST_VARS['postdays']))
   {
      $start = 0;
   }
}
else
{
   $total_replies = intval($forum_topic_data['topic_replies']) + 1;

   $limit_posts_time = '';
   $post_days = 0;
}

$select_post_days = '<select>';
for($i = 0; $i </option>sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Could not get main information for similar topics", '', __LINE__, __FILE__, $sql);
}
$topics = array();
while ( $row = $db->sql_fetchrow($result) )
{
  $topics[] = $row;
}
  $count_similar = count($topics);
if ( $count_similar > 0 )
{
  $template->assign_block_vars('similar', array(
         'L_SIMILAR' => $lang['Similar'],
         'L_TOPIC' => $lang['Topic'],
         'L_AUTHOR' => $lang['Author'],
         'L_FORUM' =>  $lang['Forum'],
         'L_REPLIES' => $lang['Replies'],
         'L_LAST_POST' => $lang['Posted'])
  );
 

for($i = 0; $i <count_similar>sql_query($sql)) )
 {
     message_die(GENERAL_ERROR, "Could not get similar topics", '', __LINE__, __FILE__, $sql);
 }
 
  while ( $row = $db->sql_fetchrow($result) )
  {
   $similar = $row;
   
   $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_t']) : array();
   $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_f']) : array();
   $topic_type =  ( $similar['topic_type'] == POST_ANNOUNCE ) ? $lang['Topic_Announcement'] .' ': '';
    $topic_type .= ( $similar['topic_type'] == POST_STICKY ) ? $lang['Topic_Sticky'] .' ': '';
    $topic_type .= ( $similar['topic_vote'] ) ? $lang['Topic_Poll'] .' ': '';
   $replies = $similar['topic_replies'];
   
   if( $similar['topic_status'] == TOPIC_LOCKED )
   {
      $folder = $images['folder_locked'];
      $folder_new = $images['folder_locked_new'];
   }
   else if( $similar['topic_type'] == POST_ANNOUNCE )
   {
      $folder = $images['folder_announce'];
      $folder_new = $images['folder_announce_new'];
   }
   else if( $similar['topic_type'] == POST_GLOBAL_ANNOUNCE )
   {
      $folder = $images['folder_global_announce'];
      $folder_new = $images['folder_global_announce_new'];
   }
   else if( $similar['topic_type'] == POST_STICKY )
   {
      $folder = $images['folder_sticky'];
      $folder_new = $images['folder_sticky_new'];
   }
   else
   {
      if( $replies >= $board_config['hot_threshold'] )
      {
         $folder = $images['folder_hot'];
         $folder_new = $images['folder_hot_new'];
      }
      else
      {
         $folder = $images['folder'];
         $folder_new = $images['folder_new'];
      }
   }
  if( $userdata['session_logged_in'] )
   {
      if( $similar['post_time'] > $userdata['user_lastvisit'] )
      {
         if( !empty($tracking_topics) || !empty($tracking_forums) || isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_f_all']) )
         {
            $unread_topics = true;
            if( !empty($tracking_topics[$topic_id]) )
            {
               if( $tracking_topics[$topic_id] >= $similar['post_time'] )
               {
                  $unread_topics = false;
               }
            }
            if( !empty($tracking_forums[$forum_id]) )
            {
               if( $tracking_forums[$forum_id] >= $similar['post_time'] )
               {
                  $unread_topics = false;
               }
            }
            if( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_f_all']) )
            {
               if( $HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] .'_f_all'] >= $similar['post_time'] )
               {
                  $unread_topics = false;
               }
            }

            if( $unread_topics )
            {
               $folder_image = $folder_new;
               $folder_alt = $lang['New_posts'];
               $newest_img = '<a href="'. append_sid("><img src="'. $images['icon_newest_reply'] .'" alt="'. $lang['View_newest_post'] .'" title="'. $lang['View_newest_post'] .'" border="0" /></a> ';
            }
            else
            {
               $folder_image = $folder;
               $folder_alt = ( $similar['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
               $newest_img = '';
            }
         }
         else
         {
            $folder_image = $folder_new;
            $folder_alt = ( $similar['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['New_posts'];
            $newest_img = '<a href="'. append_sid("><img src="'. $images['icon_newest_reply'] .'" alt="'. $lang['View_newest_post'] .'" title="'. $lang['View_newest_post'] .'" border="0" /></a> ';
         }
      }
      else
      {
         $folder_image = $folder;
         $folder_alt = ( $similar['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
         $newest_img = '';
      }
   }
   else
   {
      $folder_image = $folder;
      $folder_alt = ( $similar['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['No_new_posts'];
      $newest_img = '';
   }

   $title = (strlen($similar['topic_title']) > 40) ? (substr($similar['topic_title'], 0, 37) . '...') : $similar['topic_title'];
   $topic_url = '<a href="'. append_sid(" POST_TOPIC_URL='. $similar['>'. $title . '</a>';

   $author_url = append_sid("profile.$phpEx?mode=viewprofile&amp;". POST_USERS_URL .'='. $similar['user_id']);

   $author = ( $similar['user_id'] != ANONYMOUS ) ? '<a href="'. append_sid(" POST_USERS_URL='. $similar['>'. $similar['username'] .'</a>' : ( ($similar['post_username'] != '' ) ? $similar['post_username'] : $lang['Guest'] );
 
   $forum_url = append_sid("viewforum.$phpEx?f=". $similar['forum_id']); 
   $forum = '<a href="'. $forum_url .'">'. $similar['forum_name'] .'</a>';
   $post_url = '<a href="modules.php?name=Forums&file=viewforum&'. append_sid(" POST_POST_URL='. $similar['><img src="'. $images['icon_latest_reply'] .'" alt="'. $lang['View_latest_post'] .'" title="'. $lang['View_latest_post'] .'" border="0" /></a>';
   $post_time = create_date($board_config['default_dateformat'], $similar['topic_time'], $board_config['board_timezone']);
 
    $template->assign_block_vars('similar.topics', array(
         'FOLDER' => $folder_image,
         'ALT' => $folder_alt,
         'TYPE' => $topic_type,
         'TOPICS' => $topic_url,
         'AUTHOR' => $author,
         'FORUM' => $forum,
         'REPLIES' => $replies,
         'NEWEST' => $newest_img,
         'POST_TIME' => $post_time,
         'POST_URL' => $post_url)
    );
  } // while
 } // for $i
} // if ( $count_similar > 0 )
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_color_gc, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile,u.user_allow_viewonline, u.user_session_time, p.*,  pt.post_text, pt.post_subject, pt.bbcode_uid
   FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
        WHERE p.topic_id = '$topic_id'
      $limit_posts_time
      AND pt.post_id = p.post_id
      AND u.user_id = p.poster_id
   ORDER BY p.post_time $post_time_order
   LIMIT $start, ".$board_config['posts_per_page'];
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Could not obtain post/user information.", '', __LINE__, __FILE__, $sql);
}

$postrow = array();
if ($row = $db->sql_fetchrow($result))
{
   do
   {
      $postrow[] = $row;
   }
   while ($row = $db->sql_fetchrow($result));
   $db->sql_freeresult($result);

   $total_posts = count($postrow);
}
else
{
   include("includes/functions_admin.php");
   sync('topic', $topic_id);

   message_die(GENERAL_MESSAGE, $lang['No_posts_topic']);
}

$resync = FALSE;
if ($forum_topic_data['topic_replies'] + 1 <start> $forum_topic_data['topic_replies'])
{
   $row_id = intval($forum_topic_data['topic_replies']) % intval($board_config['posts_per_page']);
   if ($postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies'])
   {
      $resync = TRUE;
   }
}
elseif (count($postrow) <board_config>sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id);
   $row = $db->sql_fetchrow($result);
   $total_replies = $row['total'];
}

$sql = "SELECT *
   FROM " . RANKS_TABLE . "
   ORDER BY rank_special, rank_min";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Could not obtain ranks information.", '', __LINE__, __FILE__, $sql);
}

$ranksrow = array();
while ( $row = $db->sql_fetchrow($result) )
{
   $ranksrow[] = $row;
}
$db->sql_freeresult($result);

//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);

//
// Censor topic title
//
if ( count($orig_word) )
{
   $topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}

//
// Was a highlight request part of the URI?
//
$highlight_match = $highlight = '';
if (isset($HTTP_GET_VARS['highlight']))
{
   // Split words and phrases
   $words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));

   for($i = 0; $i <sizeof> $view_prev_topic_url,
   'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
   'url' => $view_next_topic_url,
   'title' => $lang['View_next_topic']
);
$nav_links['up'] = array(
   'url' => $view_forum_url,
   'title' => $forum_name
);

$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new'];
$reply_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $lang['Topic_locked'] : $lang['Reply_to_topic'];
$post_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'];
$post_alt = ( $forum_topic_data['forum_status'] == FORUM_LOCKED ) ? $lang['Forum_locked'] : $lang['Post_new_topic'];

//
// Set a c o o k i e for this topic
//
if ( $userdata['session_logged_in'] )
{
   $tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_t']) : array();
   $tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['c o o k i e_name'] . '_f']) : array();

   if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) )
   {
      $topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
   }
   else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) )
   {
      $topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
   }
   else
   {
      $topic_last_read = $userdata['user_lastvisit'];
   }

   if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) )
   {
      asort($tracking_topics);
      unset($tracking_topics[key($tracking_topics)]);
   }

   $tracking_topics[$topic_id] = time();

   setc o o k i e($board_config['c o o k i e_name'] . '_t', serialize($tracking_topics), 0, $board_config['c o o k i e_path'], $board_config['c o o k i e_domain'], $board_config['c o o k i e_secure']);
}

//
// Load templates
//
$template->set_filenames(array(
   'body' => 'viewtopic_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);

//
// Output page header
//
$page_title = $lang['View_topic'] .' - ' . $topic_title;
include("includes/page_header.php");

//
// User authorisation levels output
//
$s_auth_can = ( ( $is_auth['auth_post'] ) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot'] ) . '<br>';
$s_auth_can .= ( ( $is_auth['auth_reply'] ) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot'] ) . '<br>';
$s_auth_can .= ( ( $is_auth['auth_edit'] ) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot'] ) . '<br>';
$s_auth_can .= ( ( $is_auth['auth_delete'] ) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot'] ) . '<br>';
$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br>';

$topic_mod = '';

if ( $is_auth['auth_mod'] )
{
        $s_auth_can .= sprintf($lang['Rules_moderate'], '<a href="' . append_sid(">', '</a>');

        $topic_mod .= '<a href="' . append_sid("><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a>&nbsp;';

        $topic_mod .= '<a href="' . append_sid("><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a>&nbsp;';

        $topic_mod .= ( $forum_topic_data['topic_status'] == TOPIC_UNLOCKED ) ? '<a href="' . append_sid("><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a>&nbsp;' : '<a href="' . append_sid("><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a>&nbsp;';

        $topic_mod .= '<a href="' . append_sid("><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a>&nbsp;';
}

//
// Topic watch information
//
$s_watching_topic = '';
if ( $can_watch_topic )
{
   if ( $is_watching_topic )
   {
                $s_watching_topic = '<a href="' . append_sid(">' . $lang['Stop_watching_topic'] . '</a>';
                $s_watching_topic_img = ( isset($images['topic_un_watch']) ) ? '<a href="' . append_sid("><img src="' . $images['topic_un_watch'] . '" alt="' . $lang['Stop_watching_topic'] . '" title="' . $lang['Stop_watching_topic'] . '" border="0"></a>' : '';
   }
   else
   {
                $s_watching_topic = '<a href="' . append_sid(">' . $lang['Start_watching_topic'] . '</a>';
                $s_watching_topic_img = ( isset($images['Topic_watch']) ) ? '<a href="' . append_sid("><img src="' . $images['Topic_watch'] . '" alt="' . $lang['Stop_watching_topic'] . '" title="' . $lang['Start_watching_topic'] . '" border="0"></a>' : '';
   }
}

//
// If we've got a hightlight set pass it on to pagination,
// I get annoyed when I lose my highlight after the first page.
//
$pagination = ( $highlight != '' ) ? generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight", $total_replies, $board_config['posts_per_page'], $start) : generate_pagination("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order", $total_replies, $board_config['posts_per_page'], $start);

//
// Send vars to template
//
$template->assign_vars(array(
   'FORUM_ID' => $forum_id,
    'FORUM_NAME' => $forum_name,
    'TOPIC_ID' => $topic_id,
    'TOPIC_TITLE' => $topic_title,
   'PAGINATION' => $pagination,
   'PAGE_NUMBER' => sprintf($lang['Page_of'], ( floor( $start / intval($board_config['posts_per_page']) ) + 1 ), ceil( $total_replies / intval($board_config['posts_per_page']) )),

   'POST_IMG' => $post_img,
   'REPLY_IMG' => $reply_img,
      'L_PRINT' => ($lang['Print_View']) ? $lang['Print_View'] : 'Printable version',
      'U_PRINT' => append_sid("printview.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;start=$start"),
   'L_AUTHOR' => $lang['Author'],
   'L_MESSAGE' => $lang['Message'],
   'L_POSTED' => $lang['Posted'],
   'L_POST_SUBJECT' => $lang['Post_subject'],
   'L_VIEW_NEXT_TOPIC' => $lang['View_next_topic'],
   'L_VIEW_PREVIOUS_TOPIC' => $lang['View_previous_topic'],
   'L_POST_NEW_TOPIC' => $post_alt,
   'L_POST_REPLY_TOPIC' => $reply_alt,
   'L_BACK_TO_TOP' => $lang['Back_to_top'],
   'L_DISPLAY_POSTS' => $lang['Display_posts'],
   'L_LOCK_TOPIC' => $lang['Lock_topic'],
   'L_UNLOCK_TOPIC' => $lang['Unlock_topic'],
   'L_MOVE_TOPIC' => $lang['Move_topic'],
   'L_SPLIT_TOPIC' => $lang['Split_topic'],
   'L_DELETE_TOPIC' => $lang['Delete_topic'],
   'L_GOTO_PAGE' => $lang['Goto_page'],

   'S_TOPIC_LINK' => POST_TOPIC_URL,
   'S_SELECT_POST_DAYS' => $select_post_days,
   'S_SELECT_POST_ORDER' => $select_post_order,
   'S_POST_DAYS_ACTION' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . '=' . $topic_id . "&amp;start=$start"),
   'S_AUTH_LIST' => $s_auth_can,
   'S_TOPIC_ADMIN' => $topic_mod,
   'S_WATCH_TOPIC' => $s_watching_topic,
   'S_WATCH_TOPIC_IMG' => $s_watching_topic_img,

   'U_VIEW_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;start=$start&amp;postdays=$post_days&amp;postorder=$post_order&amp;highlight=$highlight"),
   'U_VIEW_FORUM' => $view_forum_url,
   'U_VIEW_OLDER_TOPIC' => $view_prev_topic_url,
   'U_VIEW_NEWER_TOPIC' => $view_next_topic_url,
   'U_POST_NEW_TOPIC' => $new_topic_url,
   'U_POST_REPLY_TOPIC' => $reply_topic_url)
);

//
// Does this topic contain a poll?
//
if ( !empty($forum_topic_data['topic_vote']) )
{
   $s_hidden_fields = '';

   $sql = "SELECT vd.vote_id, vd.vote_text, vd.vote_start, vd.vote_length, vr.vote_option_id, vr.vote_option_text, vr.vote_result
      FROM " . VOTE_DESC_TABLE . " vd, " . VOTE_RESULTS_TABLE . " vr
      WHERE vd.topic_id = $topic_id
         AND vr.vote_id = vd.vote_id
      ORDER BY vr.vote_option_id ASC";
   if ( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, "Could not obtain vote data for this topic", '', __LINE__, __FILE__, $sql);
   }

   if ( $vote_info = $db->sql_fetchrowset($result) )
   {
      $db->sql_freeresult($result);
      $vote_options = count($vote_info);

      $vote_id = $vote_info[0]['vote_id'];
      $vote_title = $vote_info[0]['vote_text'];

      $sql = "SELECT vote_id
         FROM " . VOTE_USERS_TABLE . "
         WHERE vote_id = $vote_id
            AND vote_user_id = " . intval($userdata['user_id']);
      if ( !($result = $db->sql_query($sql)) )
      {
         message_die(GENERAL_ERROR, "Could not obtain user vote data for this topic", '', __LINE__, __FILE__, $sql);
      }

      $user_voted = ( $row = $db->sql_fetchrow($result) ) ? TRUE : 0;
      $db->sql_freeresult($result);

      if ( isset($HTTP_GET_VARS['vote']) || isset($HTTP_POST_VARS['vote']) )
      {
         $view_result = ( ( ( isset($HTTP_GET_VARS['vote']) ) ? $HTTP_GET_VARS['vote'] : $HTTP_POST_VARS['vote'] ) == 'viewresult' ) ? TRUE : 0;
      }
      else
      {
         $view_result = 0;
      }

      $poll_expired = ( $vote_info[0]['vote_length'] ) ? ( ( $vote_info[0]['vote_start'] + $vote_info[0]['vote_length'] <time>set_filenames(array(
            'pollbox' => 'viewtopic_poll_result.tpl')
         );

         $vote_results_sum = 0;

         for($i = 0; $i < $vote_options; $i++)
         {
            $vote_results_sum += $vote_info[$i]['vote_result'];
         }

         $vote_graphic = 0;
         $vote_graphic_max = count($images['voting_graphic']);

         for($i = 0; $i <vote_options> 0 ) ? $vote_info[$i]['vote_result'] / $vote_results_sum : 0;
            $vote_graphic_length = round($vote_percent * $board_config['vote_graphic_length']);

            $vote_graphic_img = $images['voting_graphic'][$vote_graphic];
            $vote_graphic = ($vote_graphic <vote_graphic_max>assign_block_vars("poll_option", array(
               'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'],
               'POLL_OPTION_RESULT' => $vote_info[$i]['vote_result'],
               'POLL_OPTION_PERCENT' => sprintf("%.1d%%", ($vote_percent * 100)),

               'POLL_OPTION_IMG' => $vote_graphic_img,
               'POLL_OPTION_IMG_WIDTH' => $vote_graphic_length)
            );
         }

         $template->assign_vars(array(
            'L_TOTAL_VOTES' => $lang['Total_votes'],
            'TOTAL_VOTES' => $vote_results_sum)
         );

      }
      else
      {
         $template->set_filenames(array(
            'pollbox' => 'viewtopic_poll_ballot.tpl')
         );

         for($i = 0; $i <vote_options>assign_block_vars("poll_option", array(
               'POLL_OPTION_ID' => $vote_info[$i]['vote_option_id'],
               'POLL_OPTION_CAPTION' => $vote_info[$i]['vote_option_text'])
            );
         }

         $template->assign_vars(array(
            'L_SUBMIT_VOTE' => $lang['Submit_vote'],
            'L_VIEW_RESULTS' => $lang['View_results'],

            'U_VIEW_RESULTS' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&amp;postdays=$post_days&amp;postorder=$post_order&amp;vote=viewresult"))
         );

         $s_hidden_fields = '<input><input>';
      }

      if ( count($orig_word) )
      {
         $vote_title = preg_replace($orig_word, $replacement_word, $vote_title);
      }

      $s_hidden_fields .= '<input>';

      $template->assign_vars(array(
         'POLL_QUESTION' => $vote_title,

         'S_HIDDEN_FIELDS' => $s_hidden_fields,
         'S_POLL_ACTION' => append_sid("posting.$phpEx?mode=vote&amp;" . POST_TOPIC_URL . "=$topic_id"))
      );

      $template->assign_var_from_handle('POLL_DISPLAY', 'pollbox');
   }
}

//
// Update the topic view counter
//
$sql = "UPDATE " . TOPICS_TABLE . "
   SET topic_views = topic_views + 1
        WHERE topic_id = '$topic_id'";
if ( !$db->sql_query($sql) )
{
   message_die(GENERAL_ERROR, "Could not update topic views.", '', __LINE__, __FILE__, $sql);
}

//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
for($i = 0; $i <total_posts> $userdata['user_lastvisit'] && $postrow[$i]['post_time'] > $topic_last_read )
   {
      $mini_post_img = $images['icon_minipost_new'];
      $mini_post_alt = $lang['New_post'];
   }
   else
   {
      $mini_post_img = $images['icon_minipost'];
      $mini_post_alt = $lang['Post'];
   }

   $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#' . $postrow[$i]['post_id'];

   //
   // Generate ranks, set them to empty string initially.
   //
   $poster_rank = '';
   $rank_image = '';
   if ( $postrow[$i]['user_id'] == ANONYMOUS )
   {
   }
   else if ( $postrow[$i]['user_rank'] )
   {
      for($j = 0; $j < count($ranksrow); $j++)
      {
         if ( $postrow[$i]['user_rank'] == $ranksrow[$j]['rank_id'] && $ranksrow[$j]['rank_special'] )
         {
            $poster_rank = $ranksrow[$j]['rank_title'];
            $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br>' : '';
         }
      }
   }
   else
   {
      for($j = 0; $j <count>= $ranksrow[$j]['rank_min'] && !$ranksrow[$j]['rank_special'] )
         {
            $poster_rank = $ranksrow[$j]['rank_title'];
            $rank_image = ( $ranksrow[$j]['rank_image'] ) ? '<img src="' . $ranksrow[$j]['rank_image'] . '" alt="' . $poster_rank . '" title="' . $poster_rank . '" border="0" /><br>' : '';
         }
      }
   }

   //
   // Handle anon users posting with usernames
   //
   if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' )
   {
      $poster = $postrow[$i]['post_username'];
      $poster_rank = $lang['Guest'];
   }

   $temp_url = '';

   if ( $poster_id != ANONYMOUS )
   {
      $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id");
      $profile_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_profile'] . '" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" border="0" /></a>';
      $profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';

      $temp_url = append_sid("privmsg.$phpEx?mode=post&amp;" . POST_USERS_URL . "=$poster_id");
                if (is_active("Private_Messages")) {
      $pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
      $pm = '<a href="' . $temp_url . '">' . $lang['Send_private_message'] . '</a>';
                }

      if ( !empty($postrow[$i]['user_viewemail']) || $is_auth['auth_mod'] )
      {
         $email_uri = ( $board_config['board_email_form'] ) ? append_sid("profile.$phpEx?mode=email&amp;" . POST_USERS_URL .'=' . $poster_id) : 'mailto:' . $postrow[$i]['user_email'];

         $email_img = '<a href="' . $email_uri . '"><img src="' . $images['icon_email'] . '" alt="' . $lang['Send_email'] . '" title="' . $lang['Send_email'] . '" border="0" /></a>';
         $email = '<a href="' . $email_uri . '">' . $lang['Send_email'] . '</a>';
      }
      else
      {
         $email_img = '';
         $email = '';
      }
                if (( $postrow[$i]['user_website'] == "http:///") || ( $postrow[$i]['user_website'] == "http://")){
                    $postrow[$i]['user_website'] =  "";
                }
                if (($postrow[$i]['user_website'] != "" ) && (substr($postrow[$i]['user_website'],0, 7) != "http://")) {
                    $postrow[$i]['user_website'] = "http://".$postrow[$i]['user_website'];
                }

      $www_img = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww"><img src="' . $images['icon_www'] . '" alt="' . $lang['Visit_website'] . '" title="' . $lang['Visit_website'] . '" border="0" /></a>' : '';
      $www = ( $postrow[$i]['user_website'] ) ? '<a href="' . $postrow[$i]['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';

      if ( !empty($postrow[$i]['user_icq']) )
      {
         $icq_status_img = '<a href="http://wwp.icq.com/' . $postrow[$i]['user_icq'] . '#pager"><img src="http://web.icq.com/whitepages/online?icq=' . $postrow[$i]['user_icq'] . '&img=5" width="18" height="18" border="0" /></a>';
         $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '"><img src="' . $images['icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $lang['ICQ'] . '" border="0" /></a>';
         $icq =  '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $postrow[$i]['user_icq'] . '">' . $lang['ICQ'] . '</a>';
      }
      else
      {
         $icq_status_img = '';
         $icq_img = '';
         $icq = '';
      }

      $aim_img = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&amp;message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
      $aim = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&amp;message=Hello+Are+you+there?">' . $lang['AIM'] . '</a>' : '';

      $temp_url = append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=$poster_id");
      $msn_img = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '"><img src="' . $images['icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $lang['MSNM'] . '" border="0" /></a>' : '';
      $msn = ( $postrow[$i]['user_msnm'] ) ? '<a href="' . $temp_url . '">' . $lang['MSNM'] . '</a>' : '';

      $yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
      $yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';
   }
   else
   {
      $profile_img = '';
      $profile = '';
      $pm_img = '';
      $pm = '';
      $email_img = '';
      $email = '';
      $www_img = '';
      $www = '';
      $icq_status_img = '';
      $icq_img = '';
      $icq = '';
      $aim_img = '';
      $aim = '';
      $msn_img = '';
      $msn = '';
      $yim_img = '';
      $yim = '';
   }

   $temp_url = append_sid("posting.$phpEx?mode=quote&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
   $quote_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_quote'] . '" alt="' . $lang['Reply_with_quote'] . '" title="' . $lang['Reply_with_quote'] . '" border="0" /></a>';
   $quote = '<a href="' . $temp_url . '">' . $lang['Reply_with_quote'] . '</a>';

   $temp_url = append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&amp;showresults=posts");
   $search_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" title="' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '" border="0" /></a>';
   $search = '<a href="' . $temp_url . '">' . sprintf($lang['Search_user_posts'], $postrow[$i]['username']) . '</a>';

   if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
   {
      $temp_url = append_sid("posting.$phpEx?mode=editpost&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
      $edit_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_edit'] . '" alt="' . $lang['Edit_delete_post'] . '" title="' . $lang['Edit_delete_post'] . '" border="0" /></a>';
      $edit = '<a href="' . $temp_url . '">' . $lang['Edit_delete_post'] . '</a>';
   }
   else
   {
      $edit_img = '';
      $edit = '';
   }

   if ( $is_auth['auth_mod'] )
   {
                $temp_url = append_sid("modcp.$phpEx?mode=ip&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&amp;" . POST_TOPIC_URL . "=" . $topic_id);
      $ip_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_ip'] . '" alt="' . $lang['View_IP'] . '" title="' . $lang['View_IP'] . '" border="0" /></a>';
      $ip = '<a href="' . $temp_url . '">' . $lang['View_IP'] . '</a>';

                $temp_url = append_sid("posting.$phpEx?mode=delete&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
      $delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
      $delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
   }
   else
   {
      $ip_img = '';
      $ip = '';

      if ( $userdata['user_id'] == $poster_id && $is_auth['auth_delete'] && $forum_topic_data['topic_last_post_id'] == $postrow[$i]['post_id'] )
      {
                        $temp_url = append_sid("posting.$phpEx?mode=delete&amp;" . POST_POST_URL . "=" . $postrow[$i]['post_id']);
         $delpost_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_delpost'] . '" alt="' . $lang['Delete_post'] . '" title="' . $lang['Delete_post'] . '" border="0" /></a>';
         $delpost = '<a href="' . $temp_url . '">' . $lang['Delete_post'] . '</a>';
      }
      else
      {
         $delpost_img = '';
         $delpost = '';
      }
   }

   $post_subject = ( $postrow[$i]['post_subject'] != '' ) ? $postrow[$i]['post_subject'] : '';

   $message = $postrow[$i]['post_text'];
   $bbcode_uid = $postrow[$i]['bbcode_uid'];

   $user_sig = ( $postrow[$i]['enable_sig'] && $postrow[$i]['user_sig'] != '' && $board_config['allow_sig'] ) ? $postrow[$i]['user_sig'] : '';
   $user_sig_bbcode_uid = $postrow[$i]['user_sig_bbcode_uid'];

   //
   // Note! The order used for parsing the message _is_ important, moving things around could break any
   // output
   //

   //
   // If the board has HTML off but the post has HTML
   // on then we process it, else leave it alone
   //
   if ( !$board_config['allow_html'] || !$userdata['user_allowhtml'])
   {
      if ( $user_sig != '' )
      {
         $user_sig = preg_replace('#(<41>)#is', "&lt;\\2&gt;", $user_sig);
      }

      if ( $postrow[$i]['enable_html'] )
      {
         $message = preg_replace('#(<41>)#is', "&lt;\\2&gt;", $message);
      }
   }

   //
   // Parse message and/or sig for BBCode if reqd
   //
   if ($user_sig != '' && $user_sig_bbcode_uid != '')
   {
      $user_sig = ($board_config['allow_bbcode']) ? bbencode_second_pass($user_sig, $user_sig_bbcode_uid) : preg_replace("/\:$user_sig_bbcode_uid/si", '', $user_sig);
   }

   if ($bbcode_uid != '')
   {
      $message = ($board_config['allow_bbcode']) ? bbencode_second_pass($message, $bbcode_uid) : preg_replace("/\:$bbcode_uid/si", '', $message);
   }

   if ( $user_sig != '' )
   {
      $user_sig = make_clickable($user_sig);
   }
   $message = make_clickable($message);

   //
   // Parse smilies
   //
   if ( $board_config['allow_smilies'] )
   {
      if ( $postrow[$i]['user_allowsmile'] && $user_sig != '' )
      {
         $user_sig = smilies_pass($user_sig);
      }

      if ( $postrow[$i]['enable_smilies'] )
      {
         $message = smilies_pass($message);
      }
   }

   //
   // Highlight active words (primarily for search)
   //
   if ($highlight_match)
   {
      // This was shamelessly 'borrowed' from volker at multiartstudio dot de
      // via php.net's annotated manual
      $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span><b>\\\\1</b></span>', '\\0')", '>' . $message . '<'), 1, -1));
   }

   //
   // Replace naughty words
   //
   if (count($orig_word))
   {
      $post_subject = preg_replace($orig_word, $replacement_word, $post_subject);

      if ($user_sig != '')
      {
         $user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<41>' . $user_sig . '<'), 1, -1));
      }

      $message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<41>' . $message . '<'), 1, -1));
   }

   //
   // Replace newlines (we use this rather than nl2br because
   // till recently it wasn't XHTML compliant)
   //
   if ( $user_sig != '' )
   {
      $user_sig = '<br>_________________<br>' . str_replace("\n", "\n<br>\n", $user_sig);
   }

   $message = str_replace("\n", "\n<br>\n", $message);

   //
   // Editing information
   //
   if ( $postrow[$i]['post_edit_count'] )
   {
      $l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total'];

      $l_edited_by = '<br><br>' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
   }
   else
   {
      $l_edited_by = '';
   }

   //
   // Again this will be handled by the templating
   // code at some point
   //
    $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
   $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
   $num ++;
   $template->assign_block_vars('postrow', array(
      'ROW_COLOR' => '#' . $row_color,
      'ROW_CLASS' => $row_class,
      'POSTER_NAME' => ($strike_poster = check_strike_username($poster_id)) ? $strike_poster : $poster,
            'POSTER_RANK' => (check_strike_username($poster_id)) ? $lang['Strike_username_rank'] : $poster_rank,
      'RANK_IMAGE' => $rank_image,
      'POSTER_JOINED' => $poster_joined,
      'POSTER_POSTS' => $poster_posts,
      'POSTER_FROM' => $poster_from,
      'POSTER_AVATAR' => $poster_avatar,
                'POSTER_ONLINE' => (($postrow[$i]['user_session_time'] >= ( time() - 300 )) && ($postrow[$i]['user_allow_viewonline'])) ? '<img src="./modules/Forums/templates/subSilver/images/online.gif" alt="' . $lang['Online'] . '" title="' . $lang['Online'] . '" border="0" />' : '<img src="./modules/Forums/templates/subSilver/images/offline.gif" alt="' . $lang['Offline'] . '" title="' . $lang['Offline'] . '" border="0" />',
      'POST_DATE' => $post_date,
      'POST_SUBJECT' => $post_subject,
      'MESSAGE' => $message,
      'SIGNATURE' => $user_sig,
      'EDITED_MESSAGE' => $l_edited_by,

      'MINI_POST_IMG' => $mini_post_img,
      'PROFILE_IMG' => $profile_img,
      'PROFILE' => $profile,
      'SEARCH_IMG' => $search_img,
      'SEARCH' => $search,
      'PM_IMG' => $pm_img,
      'PM' => $pm,
      'EMAIL_IMG' => $email_img,
      'EMAIL' => $email,
      'WWW_IMG' => $www_img,
      'WWW' => $www,
      'ICQ_STATUS_IMG' => $icq_status_img,
      'ICQ_IMG' => $icq_img,
      'ICQ' => $icq,
      'AIM_IMG' => $aim_img,
      'AIM' => $aim,
      'MSN_IMG' => $msn_img,
      'MSN' => $msn,
      'YIM_IMG' => $yim_img,
      'YIM' => $yim,
      'EDIT_IMG' => $edit_img,
      'EDIT' => $edit,
      'QUOTE_IMG' => $quote_img,
      'QUOTE' => $quote,
      'IP_IMG' => $ip_img,
      'IP' => $ip,
      'DELETE_IMG' => $delpost_img,
      'DELETE' => $delpost,

      'L_MINI_POST_ALT' => $mini_post_alt,

      'U_MINI_POST' => $mini_post_url,
      'U_POST_ID' => $postrow[$i]['post_id'])
   );
 if($i == $ad_after)
   {
      $row_color = ( !($num % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
      $row_class = ( !($num % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
      $num ++;

      $mini_post_url = append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $postrow[$i]['post_id']) . '#ad';
      $template->assign_block_vars('postrow', array(
         'ROW_COLOR' => '#' . $row_color,
         'ROW_CLASS' => $row_class,
         'POST_DATE' => $post_date,
         'POST_SUBJECT' => 'Please Click to support this site',
         'MINI_POST_IMG' => $mini_post_img,
         'POSTER_NAME' => 'Google',
/********************************************************************/
/* Advanced Username Color v.1.0.5   nuke.pehaspe.com     BAŞLANGIC */
/********************************************************************/

      'POSTER_NAME' => CheckUsernameColor($postrow[$i]['user_color_gc'], $postrow[$i]['username']),
         
/********************************************************************/
/* Advanced Username Color v.1.0.5   nuke.pehaspe.com           SON */
/********************************************************************/
      'POSTER_RANK' => 'AdSense',
         'POSTER_AVATAR' => '<A HREF="http://www.cyber-mag.com/googleisearch.htm" target="blank"><img SRC="images/google_logo.png" Border=0></A>',
         'MESSAGE' => '<div><SPAN>
<s><google_ad_client></s>
<s>
</s>
<s>
</s><BR><BR></SPAN></div>',
         'L_MINI_POST_ALT' => $mini_post_alt,
         'U_MINI_POST' => $mini_post_url,
         'U_POST_ID' => 'ad')
      );
}
}
include($phpbb_root_path . 'quick_reply.'.$phpEx);
$template->pparse('body');

include("includes/page_tail.php");

?>


BU DOSYADA HATA OLAN YER VARMI? ADSENSE ÜZERİNDE ÇIKAN NİCKLER  RENKLİ  DİĞER YORUMLARDAKİ NİCKLER STANDART ÇIKIYOR...
Başa dön
Kullanıcının profilini görüntüle Özel mesaj gönder
Bu Site Google Adsense ile Gelir Elde Ediyor









Tarih: 2024-05-01, 22:27:26    Mesaj konusu: Forum Arası Reklamlar


Başa dön
Önceki mesajları göster:   
Bu forum kilitlendi: mesaj gönderemez, cevap yazamaz ya da başlıkları değiştiremezsiniz   Bu başlık kilitlendi: mesajları değiştiremez ya da cevap yazamazsınız    Netopsiyon Online Forum Ana Sayfa -> Php-Nuke -> NukeBB Eklentileri Tüm zamanlar GMT + 3 Saat
1. sayfa (Toplam 1 sayfa)

 
Geçiş Yap:  
Bu forumda yeni başlıklar açamazsınız
Bu forumdaki başlıklara cevap veremezsiniz
Bu forumdaki mesajlarınızı değiştiremezsiniz
Bu forumdaki mesajlarınızı silemezsiniz
Bu forumdaki anketlerde oy kullanamazsınız

Benzer Konular

Başlık Yazar Forum Cevaplar Tarih
Yeni mesaj yok sql dosyası olan modüller nasıl yükle... bolu Php Nuke Blocklar 1 2010-04-17, 21:45:28 Son Mesajı Görüntüle
Yeni mesaj yok News modulünin sql dosyası hangileri? Sergen Php Nuke Modülleri 1 2010-04-12, 15:04:54 Son Mesajı Görüntüle
Yeni mesaj yok Ziayaretci Defteri Renk Ayarlaması So... cuneytsonmez Php Nuke Sorunlarınız 3 2010-03-19, 02:01:28 Son Mesajı Görüntüle
Yeni mesaj yok Hemşeri Modülünün Sql Dosyası Bozuk cyprus_tde Php Nuke Sorunlarınız 4 2010-03-02, 21:51:59 Son Mesajı Görüntüle
Yeni mesaj yok yorum iletisim yerlede Ana Sayfanın C... spakme Php Nuke Sorunlarınız 3 2010-02-27, 18:14:23 Son Mesajı Görüntüle

Copyright © 2002-2024 Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. - Bütün hakları saklıdır!
Bu site Netopsiyon.com.tr Sunucularında Barındırılmaktadır.
Netopsiyon Bilişim Teknolojileri San. Tic. Ltd.Şti. Netopsiyon Copyright