1.0.3 Удаление комментария
Понимаю, многие в 2.0 версии, ну может кто подскажет, как добавить кнопку для админа удаления комментария из базы, а не скрывать его…
{foreach $topics as $topic name="cmt"} {include './newtemplate.tpl'} {/foreach}
<article> Код топика </article> {if $smarty.foreach.cmt.iteration % 3 == 0}<div style="clear: both;"></div>{/if}
{if $smarty.foreach.cmt.iteration % 3 == 0}<div style="clear: both;"></div>{/if}
foreach ($aForums as $oForum) { $aResult = $this->PluginForum_Forum_GetTopicItemsByForumId($oForum->getId(), array('#order' => array('topic_pinned' => 'desc', 'last_post_id' => 'desc', 'topic_date_add' => 'desc'), '#page' => array($iPage, $iPerPage))); $aResult['collection'] = $this->PluginForum_Forum_GetTopicsAdditionalData($aResult['collection']); foreach ($aResult['collection'] as $oTopic) { //$idTopic = $oTopic->getId(); ... } }