toString ( array('path', 'query', 'fragment') ); $app->setUserState( "com_kunena.ActionBulk", JRoute::_( $Breturn ) ); global $is_Moderator; // topic emoticons $topic_emoticons = array (); $topic_emoticons[0] = KUNENA_URLEMOTIONSPATH . 'default.gif'; $topic_emoticons[1] = KUNENA_URLEMOTIONSPATH . 'exclam.gif'; $topic_emoticons[2] = KUNENA_URLEMOTIONSPATH . 'question.gif'; $topic_emoticons[3] = KUNENA_URLEMOTIONSPATH . 'arrow.gif'; $topic_emoticons[4] = KUNENA_URLEMOTIONSPATH . 'love.gif'; $topic_emoticons[5] = KUNENA_URLEMOTIONSPATH . 'grin.gif'; $topic_emoticons[6] = KUNENA_URLEMOTIONSPATH . 'shock.gif'; $topic_emoticons[7] = KUNENA_URLEMOTIONSPATH . 'smile.gif'; $tabclass = array ( "sectiontableentry1", "sectiontableentry2" ); $st_count = 0; if (count($messages[0]) > 0) { foreach ($messages[0] as $leafa) { if ($leafa->ordering > 0) { $st_count++; } } } if (count($messages[0]) > 0) { ?>
subject = kunena_htmlspecialchars($leaf->subject); $leaf->name = kunena_htmlspecialchars($leaf->name); $leaf->email = kunena_htmlspecialchars($leaf->email); $bof_avatar = ""; ?> setQuery("SELECT mesid FROM #__fb_attachments WHERE mesid='{$leaf->id}'"); $attachmentsicon = $kunena_db->loadResult(); //(JJ) AVATAR if ($fbConfig->avataroncat) { if ($fbConfig->avatar_src == "jomsocial" && $leaf->userid) { // Get CUser object $user =& CFactory::getUser($last_reply[$leaf->id]->userid); $bof_avatar = ' '; } else if ($fbConfig->avatar_src == "cb") { $bof_avatar = $kunenaProfile->showAvatar($last_reply[$leaf->id]->userid, 'catavatar'); } else { //first we gather some information about this person unset($CatUser); $kunena_db->setQuery("SELECT * FROM #__fb_users AS su LEFT JOIN #__users AS u on u.id=su.userid WHERE su.userid='{$leaf->userid}'"); $CatUser = $kunena_db->loadObject(); if (is_object($CatUser)) $javatar = $CatUser->avatar; if (isset($javatar)) { $bof_avatar = ''; } } } ?> locked == 0) { if ($fbConfig->shownew && $kunena_my->id != 0 && !$leaf->moved) { if (($prevCheck < $last_reply[$leaf->id]->time) && !in_array($last_reply[$leaf->id]->thread, $read_topics)) { //new post(s) in topic echo ''; } else { //no new posts in topic echo ''; } } else { //not Login echo ''; } } else { echo isset($fbIcons['topiclocked']) ? ''; $topicLocked = 1; } ?> moved == 0) { ?> ordering == 0) { echo "
">
: name)) . ''; ?>
    [X]
" align="left">
" align="left">
'; echo isset($fbIcons['unreadmessage']) ? '' . _GEN_UNREAD . '' : stripslashes($fbConfig->newchar); echo ''; echo isset($fbIcons['readmessage']) ? '' . _GEN_NOUNREAD . '' : stripslashes($fbConfig->newchar); echo ''; echo isset($fbIcons['notloginmessage']) ? '' . _GEN_NOUNREAD . '' : stripslashes($fbConfig->newchar); echo '' . _GEN_LOCKED_TOPIC . '' : '' . _GEN_LOCKED_TOPIC . ' topic_emoticon == 0 ? '' : "topic_emoticon] . "\" alt=\"emo\" border=\"0\" />"; ?> "; } else { echo ""; echo isset($fbIcons['topicsticky']) ? '' . _GEN_ISSTICKY . '' : '' . _GEN_ISSTICKY . ''; $topicSticky = 1; } ?> 0) { echo isset($fbIcons['topicattach']) ? '' . _KUNENA_ATTACH . '' : '' . _KUNENA_ATTACH . ''; } ?>
catid, $leaf->id, kunena_htmlspecialchars(stripslashes($leaf->subject)), '', 'follow', 'fb-topic-title fbm');?> allowfavorites) { $kunena_db->setQuery("SELECT COUNT(*) FROM #__fb_favorites WHERE thread='{$leaf->id}' && userid='{$kunena_my->id}'"); if (intval($kunena_db->loadResult()) > 0) { echo isset($fbIcons['favoritestar']) ? '' . _KUNENA_FAVORITE . '' : '' . _KUNENA_FAVORITE . ''; } } ?> userid, kunena_htmlspecialchars(stripslashes($leaf->name)));?> shownew && $kunena_my->id != 0) { if (($prevCheck < $last_reply[$leaf->id]->time) && !in_array($last_reply[$leaf->id]->thread, $read_topics)) { //new post(s) in topic echo ' (' . $fbConfig->newchar . ")"; } } ?> avataroncat) { echo $bof_avatar; } ?> id]; $threadPages = 1; if ($totalMessages > $fbConfig->messages_per_page) { $threadPages = ceil($totalMessages / $fbConfig->messages_per_page); echo ("["); echo _PAGE.' '.CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->id, 1, $fbConfig->messages_per_page, 1); if ($threadPages > 3) { echo ("..."); $startPage = $threadPages - 2; } else { echo (","); $startPage = 2; } $noComma = true; for ($hopPage = $startPage; $hopPage <= $threadPages; $hopPage++) { if ($noComma) { $noComma = false; } else { echo (","); } echo CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->id, $hopPage, $fbConfig->messages_per_page, $hopPage); } echo ("]"); } ?>
setQuery("SELECT message, mesid FROM #__fb_messages_text WHERE mesid='{$leaf->id}'"); $newURL = $kunena_db->loadResult(); // split the string and separate catid and id for proper link assembly parse_str($newURL, $newURLParams); ?>
emo
subject)), kunena_htmlspecialchars(stripslashes($leaf->subject)), 'follow', 'fb-topic-title-cover');?>
moved ? _KUNENA_TOPIC_MOVED : (int)$thread_counts[$leaf->id]; ?> moved ? _KUNENA_TOPIC_MOVED : (int)$hits[$leaf->id]; ?>
moved ? _KUNENA_TOPIC_MOVED_LONG : date(_DATETIME, $last_reply[$leaf->id]->time); ?> moved) { } else { ?> id]->userid, kunena_htmlspecialchars(stripslashes($last_reply[$leaf->id]->name)));?> moved) { $tmpicon = isset($fbIcons['latestpost']) ? ''._SHOW_LAST.'':' '._SHOW_LAST.''; } echo CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->id, $threadPages, $fbConfig->messages_per_page, $tmpicon, $last_reply[$leaf->id]->id); ?>
" . _VIEW_NO_POSTS . "

"; } ?>