Jump to content
Sign in to follow this  
mathiasmm

[IP.Board 3.3] Nazwy aktywnych użytkowników zamienione na <<<

Recommended Posts

Po aktualizacji forum do wersji 3.3.0, można zauważyć, że w widoku tematu/forum nazwy aktywnych użytkowników są zamienione na <<<.

  1. Zaloguj się do ACP
  2. Wejdź do: Wygląd > Style i szablony
  3. Kliknij na nazwę stylu, który chcesz zedytować
  4. Po lewej stronie, zaznacz "forumIndexTemplate" pod "Widok forum"

Znajdź w bieżącym szablonie:

<if test="showactiveusers:|:!$this->settings['no_au_forum']">

		<div id="forum_active_users" class="active_users stats_list">

				<h4 class="statistics_head">{parse expression="sprintf( $this->lang->words['active_users_titlef'], ($active_user_data['members'] + $active_user_data['guests'] + $active_user_data['anon'] ) )"}</h4>

				<p class="statistics_brief">{parse expression="sprintf( $this->lang->words['active_users_detail'], $active_user_data['members'], $active_user_data['guests'], $active_user_data['anon'] )"}</p>


				<ul class="ipsList_inline">

						<if test="hasactiveusers:|:is_array( $active_user_data['names'] ) AND count( $active_user_data['names'] )">

								<foreach loop="activeusers:$active_user_data['names'] as $p => $r">

						<li>{$r['p_start']}<if test="aumemberid:|:$r['id']"><a href="{parse url=&quot;showuser={$r[" id']}"="" seotitle="{$r['seo']}" template="showuser" base="public" }'="" title="{$r[" p_title']}'=""></a></if><a href="{parse url=&quot;showuser={$r[" id']}"="" seotitle="{$r['seo']}" template="showuser" base="public" }'="" title="{$r[" p_title']}'="">{$r['name']}<if test="aumidend:|:$r['id']"></if></a>{$r['p_end']}<if test="auaddcomma:|:$p + 1 != count( $active_user_data['names'] )">,</if></li>

								</foreach>

						</if>

				</ul>

		</div>

</if> 
Zamień na:

<if test="showactiveusers:|:!$this->settings['no_au_forum'] && $this->memberData['gbw_view_online_lists']">

						<div id="forum_active_users" class="active_users stats_list">

								<h4 class="statistics_head">{parse expression="sprintf( $this->lang->words['active_users_titlef'], $active_user_data['stats']['total'] )"}</h4>

								<p class="statistics_brief">{parse expression="sprintf( $this->lang->words['active_users_detail'], $active_user_data['stats']['members'], $active_user_data['stats']['guests'], $active_user_data['stats']['anon'] )"}</p>


								<ul class="ipsList_inline">

										<if test="hasactiveusers:|:is_array( $active_user_data['names'] ) AND count( $active_user_data['names'] )">

												{parse expression="implode( ', ', $active_user_data['names'] )"}

										</if>

								</ul>

						</div>

				</if>

Zapisz bit i wejdź do "topicViewTemplate" w "Widok tematu". W szablonie znajdź:

!-- ACTIVE USERS -->

<if test="topicActiveUsers:|:is_array( $displayData['active_users'] ) AND count( $displayData['active_users'] )">

		<div id="topic_stats" class="statistics clear clearfix">

				<div id="topic_active_users" class="active_users">

						<h4 class="statistics_head">{parse expression="sprintf( $this->lang->words['active_users_title'], ($displayData['active_users']['members'] + $displayData['active_users']['guests'] + $displayData['active_users']['anon'] ) )"}</h4>

						<p class="statistics_brief desc">{parse expression="sprintf( $this->lang->words['active_users_detail'], $displayData['active_users']['members'], $displayData['active_users']['guests'], $displayData['active_users']['anon'] )"}</p>

						<if test="auNames:|:is_array( $displayData['active_users']['names'] ) AND count( $displayData['active_users']['names'] )">


								<ul class="ipsList_inline">

										<foreach loop="active_users:$displayData['active_users']['names'] as $p => $r">

								<li>{$r['p_start']}<if test="auId:|:$r['id']"><a href="{parse url=&quot;showuser={$r[" id']}"="" seotitle="{$r['seo']}" template="showuser" base="public" }'="" title="{$r[" p_title']}'=""></a></if><a href="{parse url=&quot;showuser={$r[" id']}"="" seotitle="{$r['seo']}" template="showuser" base="public" }'="" title="{$r[" p_title']}'="">{$r['name']}<if test="auEndId:|:$r['id']"></if></a>{$r['p_end']}<if test="lastActiveUser:|:$p + 1 != count( $displayData['active_users']['names'] )">,</if></li>

										</foreach>

								</ul>

						</if>

				</div>

		</div>

</if>

Zamień na:

<!-- ACTIVE USERS -->

<if test="topicActiveUsers:|:is_array( $displayData['active_users'] ) AND count( $displayData['active_users'] )">

		<div id="topic_stats" class="statistics clear clearfix">

				<div id="topic_active_users" class="active_users">

						<h4 class="statistics_head">{parse expression="sprintf( $this->lang->words['active_users_title'], $displayData['active_users']['stats']['total'] )"}</h4>

						<p class="statistics_brief desc">{parse expression="sprintf( $this->lang->words['active_users_detail'], $displayData['active_users']['stats']['members'], $displayData['active_users']['stats']['guests'], $displayData['active_users']['stats']['anon'] )"}</p>

						<if test="auNames:|:is_array( $displayData['active_users']['names'] ) AND count( $displayData['active_users']['names'] )">


								<ul class="ipsList_inline">

										{parse expression="implode( ', ', $displayData['active_users']['names'] )"}

								</ul>

						</if>

				</div>

		</div>

</if>

Zaczerpnięte z IPS Knowledge Base.

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

W celu świadczenie usług przez nasz Serwis na najwyższym poziomie, w ramach Serwisu wykorzystujemy pliki Cookies (tzw. ciasteczka). Korzystając ze stron Serwisu IPSBEYOND.PL bez zmiany ustawień przeglądarki będą one zapisane w pamięci urządzenia. Jeżeli nie dokonacie Państwo zmiany ustawień przeglądarki internetowej to wyrażacie zgodę na zapisywanie plików Cookies.