if ($tag === '') { catcherror($lnc[192]); } $tag = str_replace(''', "\\'", $tag); $allentries = $blog->getgroupbyquery("SELECT * FROM `{$db_prefix}tags` WHERE `tagname`='{$tag}' LIMIT 0,1"); if (!is_array($allentries[0]) || $allentries[0]['tagentry'] == '<end>' || $allentries[0]['tagcounter'] == 0) { $section_body_main[] = "<br/><div align='center'><span style='font-size: 14px;'>{$lnc[186]}</span></div><br/>"; } else { $taginfo = $allentries[0]; $entries_query = str_replace(',<end>', '', $taginfo['tagentry']); $entries_query = str_replace('<tag>,', '', $entries_query); $partialquery = "WHERE `blogid` IN ({$entries_query}) AND `property`<'2' ORDER BY `sticky` DESC, `pubtime` DESC"; if ($mbcon['tag_list'] == 1) { $records = $m_b->new_record_array($partialquery, $mbcon['listitemperpage'], $page); $listbody = $m_b->make_excerption($records, 'list'); $section_body_main[] = $m_b->make_list(@implode('', $listbody)); $perpagevalue = $mbcon['listitemperpage']; } else { $records = $m_b->new_record_array($partialquery, $mbcon['exceptperpage'], $page); $section_body_main = $m_b->make_excerption($records); $perpagevalue = $mbcon['exceptperpage']; } $counter_now = $blog->countbyquery("SELECT COUNT(blogid) FROM `{$db_prefix}blogs` WHERE `blogid` IN ({$entries_query}) AND `property`<'2'"); $urlref = getlink_tags(str_replace('%', '%%', urlencode(urlencode($tag))), $mode, '%s'); $pagebar = $m_b->make_pagebar($page, $mbcon['pagebaritems'], $urlref, $counter_now, $perpagevalue, '1'); $pagebar .= " [ {$lnc[181]} <a href=\"" . getlink_tags(urlencode(urlencode($tag)), '1') . "\" title=\"{$lnc[182]}\">{$lnc[183]}</a> | <a href=\"" . getlink_tags(urlencode(urlencode($tag)), '2') . "\" title=\"{$lnc[184]}\">{$lnc[185]}</a> ]"; } $iftoppage = $mbcon['pagebarposition'] == 'down' ? 'none' : 'block'; $ifbottompage = $mbcon['pagebarposition'] == 'up' ? 'none' : 'block'; if ($mbcon['tagunderlinetospace'] == 1) { $allentries[0]['tagname'] = str_replace('_', ' ', $allentries[0]['tagname']);