toString ( array('path', 'query', 'fragment') ); $app->setUserState( "com_kunena.ActionBulk", JRoute::_( $Breturn ) ); global $is_Moderator; $kunena_my = &JFactory::getUser(); // Func Check if (strtolower($func) == 'latest' || strtolower($func) == '') { $funclatest = 1; } else { $funclatest = 0; } if (strtolower($func) == 'mylatest') { $funcmylatest = 1; } else { $funcmylatest = 0; } // 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 && !$funcmylatest) || ($leafa->myfavorite && $funcmylatest)) { $st_count++; } } } if (count($messages[0]) > 0) { ?>
name = kunena_htmlspecialchars(stripslashes($leaf->name)); $leaf->email = kunena_htmlspecialchars(stripslashes($leaf->email)); ?> moved == 0) { // Need to add +1 as we only have the replies in the buffer $totalMessages = $thread_counts[$leaf->id] + 1; $curMessageNo = $totalMessages - ($last_read[$leaf->id]->unread ? $last_read[$leaf->id]->unread-1 : 0); $threadPages = ceil($totalMessages / $fbConfig->messages_per_page); $unreadPage = ceil($curMessageNo / $fbConfig->messages_per_page); ?> ordering == 0) { echo "
">
: name)) . ''; ?>
  [X]
" align="left">
" align="left">
id]; ?> topic_emoticon == 0 ? '' : "topic_emoticon] . "\" alt=\"emo\" border=\"0\" />"; ?> "; } else { echo ""; } ?> attachmesid > 0) { echo isset($fbIcons['topicattach']) ? '' . _KUNENA_ATTACH . '' : '' . _KUNENA_ATTACH . ''; } ?>
catid, $leaf->id, kunena_htmlspecialchars(stripslashes($leaf->subject)), kunena_htmlspecialchars(stripslashes($messagetext[$leaf->id])) , 'follow', 'fb-topic-title fbm');?> allowfavorites && array_key_exists($leaf->id, $favthread)) { if ($leaf->myfavorite) { echo isset($fbIcons['favoritestar']) ? '' . _KUNENA_FAVORITE . '' : '' . _KUNENA_FAVORITE . ''; } else if (array_key_exists('favoritestar_grey', $fbIcons)) { echo isset($fbIcons['favoritestar_grey']) ? '' . _KUNENA_FAVORITE . '' : '' . _KUNENA_FAVORITE . ''; } } ?> 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 CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->id, $unreadPage, $fbConfig->messages_per_page, ' (' . $last_read[$leaf->id]->unread . ' ' . stripslashes($fbConfig->newchar) . ')', $last_read[$leaf->id]->lastread); } } ?> $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->thread, $hopPage, $fbConfig->messages_per_page, $hopPage); } echo ("]"); } ?>
setQuery("SELECT message 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 fbm');?>
time , time() + ($fbConfig->board_ofset * 3600)); ?> name) { echo ''; echo _GEN_BY.' '.CKunenaLink::GetProfileLink($fbConfig, $leaf->userid, $leaf->name); echo ''; } ?> catid, kunena_htmlspecialchars(stripslashes($leaf->catname))); ?> : id]; ?> locked != 0) {?> ' : '' . _GEN_LOCKED_TOPIC . ''; $topicLocked = 1; ?>
ordering != 0) { ?> ': '' . _GEN_ISSTICKY . ''; $topicSticky = 1; ?> avataroncat > 0) { ?> avatar_src == "jomsocial" && $leaf->userid) { // Get CUser object $jsuser =& CFactory::getUser($last_reply[$leaf->id]->userid); $useravatar = ' '; echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, $useravatar); } else if ($fbConfig->avatar_src == "cb") { $useravatar = $kunenaProfile->showAvatar($last_reply[$leaf->id]->userid, 'fb_list_avatar'); echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, $useravatar); } else if ($fbConfig->avatar_src == "aup") // integration AlphaUserPoints { $api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php'; if ( file_exists($api_AUP)) { ( $fbConfig->fb_profile=='aup' ) ? $showlink=1 : $showlink=0; echo AlphaUserPointsHelper::getAupAvatar( $last_reply[$leaf->id]->userid, $showlink, 40, 40 ); } // end integration AlphaUserPoints } else { $javatar = $last_reply[$leaf->id]->avatar; if ($javatar!='') { echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, ''); } else { echo CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, ''); } }?> default_sort == 'asc') { if ($leaf->moved == 0) echo CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->thread, $threadPages, $fbConfig->messages_per_page, _GEN_LAST_POST, $last_reply[$leaf->id]->id); else echo _KUNENA_MOVED . ' '; } else { echo CKunenaLink::GetThreadPageLink($fbConfig, 'view', $leaf->catid, $leaf->thread, 1, $fbConfig->messages_per_page, _GEN_LAST_POST, $last_reply[$leaf->id]->id); } if ($leaf->name) echo ' '._GEN_BY. ' '.CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, stripslashes($last_reply[$leaf->id]->name), 'nofollow', 'topic_latest_post_user'); ?>
id]->time , time() + ($fbConfig->board_ofset * 3600)); ?>
" . _VIEW_NO_POSTS . "

"; } ?>