Mistik Posted September 18, 2014 Share Posted September 18, 2014 По правилам вашего ресурса решил создать еще одну тему на счет своего IPB портала. Так вот, хочу изменить вид кнопок которые находятся в основном блоке новостей. То есть у меня сейчас вот так: А хотелось что бы вот так: Если кто знает как переделать, прошу помощи. Link to comment Share on other sites More sharing options...
newbie Posted September 18, 2014 Share Posted September 18, 2014 Статистика <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 Link to comment Share on other sites More sharing options...
Mistik Posted September 18, 2014 Author Share Posted September 18, 2014 Статистика <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; } Дополнительные св-ва добавите сами по желанию. Получилось так как я хотел но не пойму как сделать что бы кнопка ответы и там где дата были нажимаемые что бы кидало на последнее сообщение в теме Link to comment Share on other sites More sharing options...
siv1987 Posted September 18, 2014 Share Posted September 18, 2014 Добавить к ссылке &view=getlastpost Link to comment Share on other sites More sharing options...
Mistik Posted September 18, 2014 Author Share Posted September 18, 2014 Добавить к ссылке &view=getlastpost Пол дня роюсь и не пойму где там вообще ссылки. Link to comment Share on other sites More sharing options...
newbie Posted September 19, 2014 Share Posted September 19, 2014 Пол дня роюсь и не пойму где там вообще ссылки.Нет "там" ссылок. Сами добавьте. Кол-во ответов {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 Link to comment Share on other sites More sharing options...
Mistik Posted September 19, 2014 Author Share Posted September 19, 2014 Спасибо Вам огромное, как всегда все получилось 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