|
id]; ?>
|
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);
?>
topic_emoticon == 0 ? ' ' : " topic_emoticon] . "\" alt=\"emo\" border=\"0\" />"; ?>
|
ordering == 0) {
echo "";
}
else
{
echo " | ";
}
?>
attachmesid > 0) {
echo isset($fbIcons['topicattach']) ? ' ' : ' ';
}
?>
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']) ? '  ' : '  ';
} else if (array_key_exists('favoritestar_grey', $fbIcons))
{
echo isset($fbIcons['favoritestar_grey']) ? '  ' : '  ';
}
}
?>
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);
?>
|
|
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) {?>
' : ' ';
$topicLocked = 1; ?>
|
ordering != 0) { ?>
': ' ';
$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)); ?>
|
|