Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[3.3] Номер темы в списке

Здравствуйте, помогите узнать номер темы в списке тем форума..

Хочу, что бы рядом с название темы выводился ее номер по порядку (1,2,3...)

Featured Replies

ACP > Look & Feel > Ваш скин > Forum View > Topic

 

Найти:

 

	<h4>
		{$data['prefix']}
		<a itemprop="url" id="tid-link-{$data['_tid']}" href="{$data['_url']}" title='{parse expression="strip_tags($data['title'])"} {$this->lang->words['topic_started_on']} {parse date="$data['start_date']" format="LONG"}' class='topic_title' <if test="topicDeletedReason:|:$data['_isDeleted']">data-tooltip="{parse expression="sprintf( $this->lang->words['tdb__forumindex'], $other_data['sdData'][ $data['tid'] ]['members_display_name'] )"} {parse date="$other_data['sdData'][ $data['tid'] ]['sdl_obj_date']" format="long"}
				<if test="showReason:|:$forum_data['permissions']['SoftDeleteReason']">
					<br /><span><if test="$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']">{$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']}<else />{$this->lang->words['tdb__noreasongi']}</if></span>
				</if>
			"</if>>
			<span itemprop="name">{$data['title']}</span>
		</a>
	</h4>

Добавить после:

 

</h4>

Следующий код:

 

(topic ID - {$data['tid']})

Результат:

26-07-2012 16-13-43.png

  • Author

В этом случае выводится номер топика в системе..

Мне нужен его порядковый номер в списке тем, когда форум просматриваешь, например на странице выводится 20 тем, вот мне надо, что бы все темы были пронумерованы от 1 до 20

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.