Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

ROZWIĄZANY: Edycja widoku moderatorów


TurkuSevdaliAska

Rekomendowane odpowiedzi

Chciałabym usunąć 3 pierwszych userów z widoku listy moderatów. W firebugu sprawdziłam, że (chyba) odpowiada za tę listę fragment:

<table class="ipb_table" cellspacing="0">

I tam jest póżniej:

row1

row2

row1

row2

Chciałabym usunąć pierwsze 3 tj. pgrubione, tylko że nie wiem który to dokładnie fragment w bicie, o ile jest to skin_stats:

<!-- This is looped over once for admins, once for supmods, and then once for forum mods -->
<table class='ipb_table'>
<caption class='maintitle'>{$group}</caption>
<tr class='header'>
	<th scope='col' style='width: 3%'> </th>
	<th scope='col' style='width: 25%'>{$this->lang->words['leader_name']}</th>
	<th scope='col' style='width: 35%' class='short'>{$this->lang->words['leader_forums']}</th>
	<th scope='col' style='width: 25%'>{$this->lang->words['leader_location']}</th>
	<th scope='col' style='width: 12%'> </th>
</tr>
<if test="hasLeaders:|:count($members) AND is_array($members)">
	{parse striping="staff" classes="row1,row2"}
	<foreach loop="members:$members as $info">
		<tr class='{parse striping="staff"}'>
			<td>
				<img src='{$info['pp_mini_photo']}' alt='photo' class='photo' width='{$info['pp_mini_width']}' height='{$info['pp_mini_height']}' />
			</td>
			<td>
				<if test="leadermid:|:$info['member_id'] > 0">
					<a href='{parse url="showuser={$info['member_id']}" seotitle="{$info['members_seo_name']}" template="showuser" base="public"}' title='{$this->lang->words['view_profile']}'>{$info['members_display_name']}</a> {parse template="user_popup" group="global" params="$info['member_id'],$info['members_seo_name']"}
				<else />
					{$info['members_display_name']}
				</if>
			</td>
			<td class='altrow short'>
				<if test="specificForums:|:is_array($info['forums'])">
					<form method="post" action="{parse url="" base="public"}" id="jmenu{$info['member_id']}" class='jump'>
						<select name="showforum">
							<option value="-1">{parse expression="sprintf($this->lang->words['no_forums'],count($info['forums']))"}</option>
							<option value="-1">---------------------------</option>
							<foreach loop="forums:$info['forums'] as $id => $name">
								<option value="{$id}">{$name}</option>
							</foreach>
						</select>
						<input type='submit' class='input_submit alt' value='{$this->lang->words['go_button']}' />
					</form>
				<else />
					{$info['forums']}
				</if>
			</td>
			<td>
				<if test="isonline:|:$info['_online']">
					{$info['online_extra']}
				</if>
			</td>
			<td class='short altrow'>
				<ul class='user_controls clear'>
					<if test="isFriendable:|:$this->memberData['member_id'] AND $this->memberData['member_id'] != $info['member_id'] && $this->settings['friends_enabled'] AND $this->memberData['g_can_add_friends']">
						<if test="isFriend:|:IPSMember::checkFriendStatus( $info['member_id'] )">
							<li class='mini_friend_toggle is_friend' id='friend_xxx_{$info['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=remove&member_id={$info['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['remove_friend']}'>{parse replacement="remove_friend"}</a></li>
						<else />
							<li class='mini_friend_toggle is_not_friend' id='friend_xxx_{$info['member_id']}'><a href='{parse url="app=members&module=profile&section=friends&do=add&member_id={$info['member_id']}&secure_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['add_friend']}'>{parse replacement="add_friend"}</a></li>							  
						</if>
					</if>
					<if test="canPm:|:$this->memberData['g_use_pm'] AND $this->memberData['member_id'] != $info['member_id'] AND $this->memberData['members_disable_pm'] == 0 AND IPSLib::moduleIsEnabled( 'messaging', 'members' )">
						<li class='pm_button' id='pm_xxx_{$info['member_id']}'><a href='{parse url="app=members&module=messaging&section=send&do=form&fromMemberID={$info['member_id']}" base="public"}' title='{$this->lang->words['pm_member']}'>{parse replacement="send_msg"}</a></li>
					</if>
					<if test="hasBlog:|:$info['has_blog'] AND IPSLib::appIsInstalled( 'blog' )">
						<li><a href='{parse url="app=blog&module=display&section=blog&mid={$info['member_id']}" base="public"}' title='{$this->lang->words['view_blog']}'>{parse replacement="blog_link"}</a></li>
					</if>
					<if test="hasGallery:|:$info['has_gallery'] AND IPSLib::appIsInstalled( 'gallery' )">
						<li><a href='{parse url="app=gallery&module=user&section=user&user={$info['member_id']}" base="public"}' title='{$this->lang->words['view_gallery']}'>{parse replacement="gallery_link"}</a></li>
					</if>
				</ul>
			</td>
		</tr>
	</foreach>
</if>
</table>
<br />

Türkülerdir Sevdam...

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Przed tym:

<foreach loop="members:$members as $info"></foreach>

Daj:

<php>
$members = array_slice( $members, 3 );
</php>

  • Lubię to 1

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu.

Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.