gazgaz Posted May 3, 2013 Share Posted May 3, 2013 День добрый Уважаемые! В очередной раз обращаюсь к Вам с просьбой. Надеюсь на помощь. Суть вопроса:как перенаправлять нажавшего на "комментарии" к статье в ветку форумагде автоматически создана новость IP.Content'ом.а отображение комментариев в теле самой новости я бы убрал понимаю, что, наверное, нужно переделать часть кода шаблона (Front Page (Single Column)) который я использую: <a href='{$record['record_link']}#commentsStart' class='comments'>{$record['record_comments']} {$this->lang->words['fpdt_comments']}</a> <if test="$record['record_comments_queued'] AND $data['database']['moderate_approvec']"> <em class='moderated'><a href='{$record['record_link']}?comments=unapproved#commentsStart' title='{$this->lang->words['comments_pending_app_title']}' class='comments' data-tooltip="{parse expression="sprintf( $this->lang->words['comments_queued_tooltip'], $record['record_comments_queued'])"}">{parse expression="sprintf( $this->lang->words['ccsc_queued_badge'], $record['record_comments_queued'] )"}</a></em> </if> Но как? Заранее благодарю за помощь! Link to comment Share on other sites More sharing options...
Bot Posted May 3, 2013 Share Posted May 3, 2013 Обратите внимание "Board url", указанный вами в профиле, некорректен, либо недоступен на данный момент. Пожауйста, заполните его, потому что он скорее всего потребуется при диагностике вашей проблемы. 1 Link to comment Share on other sites More sharing options...
newbie Posted May 3, 2013 Share Posted May 3, 2013 День добрый Уважаемые!ДобрыйКак вариант,<if test="$record['record_topicid']"> <php>$topic = $this->DB->buildAndFetch( array( 'select' => 'tid,title_seo', 'from' => 'topics', 'where' => "tid={$record['record_topicid']}" ) );</php> <a href='{parse url="showtopic={$topic['tid']}" seotitle="{$topic['title_seo']}" template="showtopic" base="public"}'>Topic comments</a> <else /> <a href='{$record['record_link']}#commentsStart' class='comments'>{$record['record_comments']} {$this->lang->words['fpdt_comments']}</a> </if> 1 Link to comment Share on other sites More sharing options...
gazgaz Posted May 3, 2013 Author Share Posted May 3, 2013 (edited) ДобрыйКак вариант,<if test="$record['record_topicid']"> <php>$topic = $this->DB->buildAndFetch( array( 'select' => 'tid,title_seo', 'from' => 'topics', 'where' => "tid={$record['record_topicid']}" ) );</php> <a href='{parse url="showtopic={$topic['tid']}" seotitle="{$topic['title_seo']}" template="showtopic" base="public"}'>Topic comments</a> <else /> <a href='{$record['record_link']}#commentsStart' class='comments'>{$record['record_comments']} {$this->lang->words['fpdt_comments']}</a> </if> Блин расцеловал бы))) Шутка... Спасибище огромное!!! Вы выручаете во второй раз уже. п.с.: я просто читал это но не до понял видать((( Edited May 3, 2013 by gazgaz Link to comment Share on other sites More sharing options...
newbie Posted May 3, 2013 Share Posted May 3, 2013 п.с.: я просто читал это но не до понял видать((( А я не читал. В следующий раз указывайте источник Ваших головняков :D 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now