Jump to content

Как вывести описание форумов на главную?


vinegredz
 Share

Recommended Posts

Ткните, в каком файле и куда конкретно нужно засунуть этот код:

 

<p class='desc __forum_desc ipsType_small'>{$forum_data['description']}</p>

 

У меня в подфорумах есть текстовое описание:

 

post-55941-0-49399900-1397679864.png

 

А на главной, такого описания нет:

 

post-55941-0-47163900-1397679921.png

 

Их там, так то не должно быть в шаблоне по умолчанию. Но нужно добавить. Как?

post-55941-0-49399900-1397679864_thumb.png

post-55941-0-47163900-1397679921_thumb.png

Link to comment
Share on other sites

Спасибо, разобрался! Теперь другой вопрос, какая часть кода отвечает за отображение подфорумов на главной? Как удалить вот это:

 

post-55941-0-18787000-1397720033.png

post-55941-0-18787000-1397720033_thumb.png

Link to comment
Share on other sites

Теперь другой вопрос, какая часть кода отвечает за отображение подфорумов на главной? Как удалить вот это:

Тот же шаблон

 

													<if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
													<br />
													<ol class='ipsList_inline ipsType_small subforums' id='subforums_{$forum_data['id']}'>
														<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
															<if test="showSubForumsLit:|:$__data[3]"><li class='unread'><else /><li></if>
																<a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{parse expression="IPSText::striptags( IPSText::htmlspecialchars($__data[1]) )"}'>{$__data[1]}</a><if test="isNotLast:|: empty($__data[4] )">,</if>
															</li>
														</foreach>
													</ol>
												</if>

 

  • Upvote 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...