gerbud запрос в /sources/lib/func_topic_linear.php // Vic'er -> Pinned Post in the topic {
if ( $this->topic['pinned_post'] and ($ibforums->vars['pin_p'] == 0) ) {
$this->ipsclass->DB->query("SELECT p.*,
m.id,m.name,m.mgroup,m.email,m.joined,m.posts, m.last_visit, m.last_activity,m.login_anonymous,m.title,m.hide_email, m.warn_level, m.warn_lastwarn,
me.msnname,me.aim_name,me.icq_number,me.signature, me.website,me.yahoo,me.location, me.avatar_location, me.avatar_type, me.avatar_size, m.members_display_name, m.thanks_point
FROM ".SQL_PREFIX."posts p
LEFT JOIN ".SQL_PREFIX."members m ON (m.id=p.author_id)
LEFT JOIN ".SQL_PREFIX."member_extra me ON (me.id=m.id)
WHERE p.post_pinned='1' and p.queued !='1' and p.topic_id=".$this->topic['tid']."");
$pinned_post = $this->ipsclass->DB->fetch_row();
}
// Vic'er -> Pinned Post in the topic }