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.

Как вывести статус пользователя в тему

Как вывести статус пользователя("о чём ты сейчас думаешь?") в теме под ником пользователя.

Как указано на скриншоте

A4qDh0_nQtuefWK-oWym7Q.png

 

Заранее спасибо.

Featured Replies

Нет данных для этого.

Тащить данные из БД - дополнительный запрос на каждый пост.

 

Можно присоединиться в \admin\applications\forums\modules_public\forums\topics.php

До

		//-----------------------------------------
	// Get posts

добавить

		/* Statuses */ 
	if ($this->settings['su_enabled'])
	{
		$_post_joins[] =  array( 
			'select' => 's.status_content',
			'from'	  => array('member_status_updates' => 's'),
			'where'  => 'm.member_id=s.status_author_id',
			'type'   => 'left'
		);
	}

 

Далее в шаблоне userInfoPane использовать

<if test="$author['status_content']">
<p class='desc'>{$author['status_content']}</p>
</if>

  • Author

Спасибо, всё получилось :)

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

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.