Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка 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.

Дата регистрации пользователя при просмотре тем

Featured Replies

Posted

Это тема поддержки статьи: Дата регистрации пользователя при просмотре тем.

Здесь вы можете обсудить все вопросы, связанные с этой статьёй.

Дата добавления статьи: 01 Февраль 2012 - 19:06

Дата обновления статьи: 01 Февраль 2012 - 19:06

  • 3 месяца спустя...

У меня на форуме вот так , а я хочу сделать как у Вас на форуме: Сообщений: 1111 , Регистрация: 11.11.11(без названия месяца, а просто цифры)

Р.S. Огромное спасибо, флудить не стал, + поставил)

Edited by Respected

  • Author

По поводу даты регистрации: Системные настройки --> Дополнительно --> Формат чисел, времени и дат --> Формат даты регистрации

Замени на %d.%m.%y

Строчку сообщений замени на:

Сообщений: {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}[/CODE]

  • 2 years later...

Как поле "Регистрация: %d.%m.%y" взять в окошко? Код вставил куда было написано, пробовал по разному, что-то не получается.

 

post-504-0-90302300-1414877479.png

 

Как поле "Регистрация: %d.%m.%y" взять в окошко? Код вставил куда было написано, пробовал по разному, что-то не получается.

 

attachicon.gifСнимок.PNG

Дайте под спойлер,либо зайлейке в текстовый документ ваш код userinfopane

<div itemscope itemtype="__schema.org/Person" class='user_details'>
	<span class='hide' itemprop="name">{$author['members_display_name']}</span>
	<ul class='basic_info'>
		<if test="membertitle:|:$author['member_title']">
			<p class='desc member_title'>{$author['member_title']}</p>
		</if>
		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if>
		<li class='group_title'>
			{$author['_group_formatted']}
		</li>

	<if test="postCount:|:$author['member_id']">
            <ul class='custom_fields'>
		<li class='post_count desc lighter'>
			<img src="__www.iconsearch.ru/uploads/icons/fugue/16x16/mail.png"> {$this->lang->words['m_posts']} {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}
		</li>
            </ul>
	</if>
        <if test="authorwarn:|:$author['show_warn']">
        <ul class='custom_fields'>
<li class='mp'> <a href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'><img src="__www.iconsearch.ru/uploads/icons/basicset/16x16/warning_16.png"> {parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
</li></li>
</if>
  </ul>
  </if>

	<if test="authorcfields:|:$author['custom_fields'] != """>
		<ul class='custom_fields'>
			<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
				<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
					<if test="$field != ''">
						<li>
							{$field}
						</li>
					</if>
				</foreach>
			</foreach>
	</ul>
		</ul>
	</if>
	
</div>

<div itemscope itemtype="__schema.org/Person" class='user_details'>
	<span class='hide' itemprop="name">{$author['members_display_name']}</span>
	<ul class='basic_info'>
		<if test="membertitle:|:$author['member_title']">
			<p class='desc member_title'>{$author['member_title']}</p>
		</if>
		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if>
		<li class='group_title'>
			{$author['_group_formatted']}
		</li>

	<if test="postCount:|:$author['member_id']">
            <ul class='custom_fields'>
		<li class='post_count desc lighter'>
			<img src="__www.iconsearch.ru/uploads/icons/fugue/16x16/mail.png"> {$this->lang->words['m_posts']} {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}
		</li>
            </ul>
	</if>
        <if test="authorwarn:|:$author['show_warn']">
        <ul class='custom_fields'>
<li class='mp'> <a href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'><img src="__www.iconsearch.ru/uploads/icons/basicset/16x16/warning_16.png"> {parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
</li></li>
</if>
  </ul>
  </if>

	<if test="authorcfields:|:$author['custom_fields'] != """>
		<ul class='custom_fields'>
			<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
				<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
					<if test="$field != ''">
						<li>
							{$field}
						</li>
					</if>
				</foreach>
			</foreach>
	</ul>
		</ul>
	</if>
	
</div>

<div itemscope itemtype="__schema.org/Person" class='user_details'>
	<span class='hide' itemprop="name">{$author['members_display_name']}</span>
	<ul class='basic_info'>
		<if test="membertitle:|:$author['member_title']">
			<p class='desc member_title'>{$author['member_title']}</p>
		</if>
		<if test="avatar:|:$author['member_id']">
			<li class='avatar'>
				<if test="canSeeProfiles:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				<a itemprop="url" href="{parse url="showuser={$author['member_id']}" template="showuser" seotitle="{$author['members_seo_name']}" base="public"}" title="{$this->lang->words['view_profile']}: {$author['members_display_name']}" class='ipsUserPhotoLink'>
				</if>
				<if test="hasVariable:|:$this->settings['member_topic_avatar_max']">
					<img itemprop="image" src='{$author['pp_main_photo']}' class='ipsUserPhoto ipsUserPhoto_variable' />
				<else />
					<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
				</if>
				<if test="canSeeProfiles2:|:$this->memberData['g_is_supmod'] OR ( $this->memberData['g_mem_info'] && ! IPSMember::isInactive( $author ) )">
				</a>
				</if>
			</li>
		<else />
			<li class='avatar'>
				<img itemprop="image" src='{$author['pp_thumb_photo']}' class='ipsUserPhoto ipsUserPhoto_large' />
			</li>
		</if>
		<li class='group_title'>
			{$author['_group_formatted']}
		</li>

	<if test="postCount:|:$author['member_id']">
            <ul class='custom_fields'>
		<li class='post_count desc lighter'>
			<img src="__www.iconsearch.ru/uploads/icons/fugue/16x16/mail.png"> {$this->lang->words['m_posts']} {parse expression="$this->registry->getClass('class_localization')->formatNumber( intval( $author['posts'] ) )"}
		</li>
         <li class='post_count desc lighter'>{$this->lang->words['m_joined']}</span> <span class='post_count desc lighter'>{parse date="$author['joined']" format="joined"}</li>
            </ul>
	</if>
        <if test="authorwarn:|:$author['show_warn']">
        <ul class='custom_fields'>
<li class='mp'> <a href='{parse url="app=members&amp;module=profile&amp;section=warnings&amp;member={$author['member_id']}&amp;from_app={$this->request['app']}&amp;from_id1={$contentid}&amp;from_id2={$options['id2']}" base="public"}' id='warn_link_{$contentid}_{$author['member_id']}' title='{$this->lang->words['warn_view_history']}'><img src="__www.iconsearch.ru/uploads/icons/basicset/16x16/warning_16.png"> {parse expression="sprintf( $this->lang->words['warn_status'], $author['warn_level'] )"}</a>
</li></li>
</if>
  </ul>
  </if>

	<if test="authorcfields:|:$author['custom_fields'] != """>
		<ul class='custom_fields'>
			<foreach loop="customFieldsOuter:$author['custom_fields'] as $group => $data">
				<foreach loop="customFields:$author['custom_fields'][ $group ] as $field">
					<if test="$field != ''">
						<li>
							{$field}
						</li>
					</if>
				</foreach>
			</foreach>
	</ul>
		</ul>
	</if>
	
</div> 
 

Попробуйте так

HooLIGUN, спасибо большое за помощь, всё работает.


Возникла ещё одна проблема. Сделал дату регистрации в виде %d.%m.%y, вроде всё работает нормально, но у тех пользователей, которые зарегистрировались например сегодня недавно, в UserInfoPane пишет: Регистрация: Сегодня, 13:03

 

Можно как нибудь сделать чтобы сразу выводила дату вне зависимости когда зарегистрировался, хоть 1 минуту назад?


Разобрался, извините за флуд.

Edited by Amfy

  • 3 месяца спустя...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 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.