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

Przydatne :)


Jeżeli pomogłem wciśnij

rep_up.png :)

Zanim napiszesz temat, sprawdź czy podobny nie istnieje na forum.

Share this post


Link to post
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
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.