Seite 1 von 1

"Who Was Here?" 1.0.0-RC1 Liste für Gäste ausblend

Verfasst: Fr 31.Okt, 2008 08:18
von felix
Hallo,

bei dem Mod "Who Was Here?" 1.0.0-RC1 als auch bei der normalen Liste "Wer ist online" möchte ich gerne das die Gäste nicht sehen wer online war oder ist.

Ich habe das jetzt so gemacht:

subsilver2/template/index_body.html

Code: Alles auswählen

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<br clear="all" />

	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="2"><!-- IF U_VIEWONLINE --><h4><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h4><!-- ELSE --><h4>{L_WHO_IS_ONLINE}</h4><!-- ENDIF --></td>
	</tr>
	<tr>
	<!-- IF LEGEND -->
		<td class="row1" rowspan="2" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ELSE -->
		<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<!-- ENDIF -->
		<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /><br /><!-- IF S_USER_LOGGED_IN -->{LOGGED_IN_USER_LIST}</span></td>
	<!-- ENDIF -->
	</tr>
	<!-- IF LEGEND -->
		<tr>
			<td class="row1"><b class="gensmall">{L_LEGEND} :: {LEGEND}</b></td>
		</tr>
	<!-- ENDIF -->
	</table>
	<!-- IF WHO_WAS_HERE_LIST2 -->
		<br clear="all" />

		<table class="tablebg" width="100%" cellspacing="1">
		<tr>
			<td class="cat" colspan="2"><h4>{L_WHO_WAS_HERE}</h4></td>
		</tr>
		<tr>
			<td class="row1" align="center" valign="middle"><img src="{T_THEME_PATH}/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
			<td class="row1" width="100%"><span class="genmed">{WHO_WAS_HERE_LIST2} ({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br /><!-- IF S_USER_LOGGED_IN -->{WHO_WAS_HERE_LIST}</span></td>
		<!-- ENDIF -->
		</tr>
		</table>
	<!-- ELSEIF U_ACP -->

und für die prosilver/template/index_body.html

Code: Alles auswählen

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <!-- IF S_USER_LOGGED_IN --><br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
		<!-- ENDIF -->
		<!-- IF WHO_WAS_HERE_LIST2 -->
		<h3>{L_WHO_WAS_HERE}</h3>
		<p>{WHO_WAS_HERE_LIST2} ({WHO_WAS_HERE_EXP})<br />{WHO_WAS_HERE_RECORD}<br /><!-- IF S_USER_LOGGED_IN -->{WHO_WAS_HERE_LIST}</p>
		<!-- ENDIF -->
	<!-- ELSEIF U_ACP -->
		<h3>{L_WHO_WAS_HERE}</h3>
		<p>{L_WWH_UPDATE_NEED}</p>
	<!-- ENDIF -->
<!-- ENDIF -->
Sieht jetzt etwas wild aus.
Es scheint auch zu funktionieren, ist das so ok?

Grüße
Felix

Verfasst: Fr 31.Okt, 2008 10:00
von oxpus
Sieht jetzt etwas wild aus.
Es scheint auch zu funktionieren, ist das so ok?
Solange es doch funktioniert, ist das Layout des Templates doch wohl egan, oder?

Verfasst: Fr 31.Okt, 2008 22:55
von felix
Hi,

ich dachte weil das <!-- IF S_USER_LOGGED_IN --> doch beim phpbb2 immer in einer extra Zeile stehen musste, oder?

Du hast eigentlich Recht, wenns funktioniert. :cool:

Verfasst: Sa 01.Nov, 2008 11:53
von oxpus
Also anders als die Blöcke <!-- BEGIN --- --> / <!-- END ... --> müssen die reinen Schalter <!-- IF ... --> / <!-- ENDIF --> nicht in extra Zeilen stehen, sondern können auch mitten in einer Zeile enthalten sein, wie z. B. in einem <a>-Link...