Mistik 1 09/18/2014 06:41 AM По правилам вашего ресурса решил создать еще одну тему на счет своего IPB портала. Так вот, хочу изменить вид кнопок которые находятся в основном блоке новостей. То есть у меня сейчас вот так: А хотелось что бы вот так: Если кто знает как переделать, прошу помощи. Share this post Link to post Share on other sites
newbie 1,721 09/18/2014 02:10 PM Статистика <span class='right'> {parse format_number="$topic['views']"} {$this->lang->words['views']} · {parse format_number="$topic['posts']"} {$this->lang->words['replies']} <if test="entryHasPosts:|:$topic['posts']"> ( {$this->lang->words['last_reply_by']} <if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if> ) </if> </span> заменить на <span class='right'> <span class='portal_stat'>{parse format_number="$topic['views']"} {$this->lang->words['views']}</span> <span class='portal_stat'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</span> <if test="entryHasPosts:|:$topic['posts']"> <span class='portal_stat'><if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if></span> <span class='portal_stat'>{parse date="$topic['last_post']" format="DATE"}</span> </if> </span> В css-файл Портала добавить .portal_stat { border-left: 1px solid #000000; padding: 0 10px; } Дополнительные св-ва добавите сами по желанию. 1 Share this post Link to post Share on other sites
Mistik 1 09/18/2014 03:00 PM Статистика <span class='right'> {parse format_number="$topic['views']"} {$this->lang->words['views']} · {parse format_number="$topic['posts']"} {$this->lang->words['replies']} <if test="entryHasPosts:|:$topic['posts']"> ( {$this->lang->words['last_reply_by']} <if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if> ) </if> </span> заменить на <span class='right'> <span class='portal_stat'>{parse format_number="$topic['views']"} {$this->lang->words['views']}</span> <span class='portal_stat'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</span> <if test="entryHasPosts:|:$topic['posts']"> <span class='portal_stat'><if test="entryLastPoster:|:$topic['last_poster_id']"><a href='{parse url="showuser={$topic['last_poster_id']}" template="showuser" seotitle="{$topic['seo_last_name']}" base="public"}'>{$topic['last_poster_name']}</a><else />{$this->settings['guest_name_pre']}{$topic['last_poster_name']}{$this->settings['guest_name_suf']}</if></span> <span class='portal_stat'>{parse date="$topic['last_post']" format="DATE"}</span> </if> </span> В css-файл Портала добавить .portal_stat { border-left: 1px solid #000000; padding: 0 10px; } Дополнительные св-ва добавите сами по желанию. Получилось так как я хотел но не пойму как сделать что бы кнопка ответы и там где дата были нажимаемые что бы кидало на последнее сообщение в теме Share this post Link to post Share on other sites
siv1987 2,623 09/18/2014 06:14 PM Добавить к ссылке &view=getlastpost Share this post Link to post Share on other sites
Mistik 1 09/18/2014 06:39 PM Добавить к ссылке &view=getlastpost Пол дня роюсь и не пойму где там вообще ссылки. Share this post Link to post Share on other sites
newbie 1,721 09/19/2014 04:48 AM Пол дня роюсь и не пойму где там вообще ссылки.Нет "там" ссылок. Сами добавьте. Кол-во ответов {parse format_number="$topic['posts']"} {$this->lang->words['replies']}Меняйте на <a href='{parse url="showtopic={$topic['tid']}&view=getlastpost" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}'>{parse format_number="$topic['posts']"} {$this->lang->words['replies']}</a> Дата последнего поста {parse date="$topic['last_post']" format="DATE"}Меняйте на<a href='{parse url="showtopic={$topic['tid']}&view=getlastpost" base="public" seotitle="{$topic['title_seo']}" template="showtopic"}'>{parse date="$topic['last_post']" format="DATE"}</a> 1 Share this post Link to post Share on other sites
Mistik 1 09/19/2014 08:14 AM Спасибо Вам огромное, как всегда все получилось Share this post Link to post Share on other sites