Seite 1 von 2

User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 14:05
von DerTheo
Gibt es eine Mod die neben dem Usernamen oder unter dem Avatar ein Bild anzeigt, wenn der User online bzw offline ist?

Grüße
Theo

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 14:27
von Würzi
Moin,

ich verstehe die Frage nicht so recht. :-?

Bei prosilver wird doch in der viewtopic angezeigt, ob ein User online ist. :-?

Mfg dat Wuerzi

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 14:35
von SarahUV
ich glaube, er meint das hier:

[ externes Bild ]

oben rechts ...


lg

sarah

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 14:39
von hackepeter13
SarahUV hat geschrieben:ich glaube, er meint das hier:

[ externes Bild ]

oben rechts ...
Naja ist wie gesagt, standard vorhanden das Bild.

@DerTheo
Wenn du einen anderen Style verwendest, solltest du das auch angeben. ;)

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 15:43
von DerTheo
Sorry ganz vergessen: Style: Lucid Lime
Phpbb3.0.8

Ich dachte einfach an ein Bild direkt neben dem Usernamen oder unter dem Avatar, wenn man ein Thema betrachtet. Evtl. eine rote Lampe wenn der User offline ist, grün wenn er online ist. Grafik ist eig egal, da kann ich dann selber was basteln :)

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 15:45
von Crizzo
viewtopic_body.html, dort packst du dann sowas hin:

Code: Alles auswählen

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> <img src="online.gif" .... /> <!-- ELSE --><img src="offline.gif" .... /> <!-- ENDIF -->

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 17:08
von DerTheo
BlackHawk87 hat geschrieben:viewtopic_body.html, dort packst du dann sowas hin:

Code: Alles auswählen

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> <img src="online.gif" .... /> <!-- ELSE --><img src="offline.gif" .... /> <!-- ENDIF -->
Danke, hab mal folgendes in die viewtopic_body.html mit Notepad++ verbaut:

Code: Alles auswählen

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> <img src="./images/icons/misc/online.png" title="User ist online"/> <!-- ELSE --><img src="./images/icons/misc/offline.png" title="User ist offline"/> <!-- ENDIF -->
Cache geleert, Template Themes und Grafiksammlung aktualisiert. Leider bleibt bei jedem User die Anzeige auf Offline.
FireFox cache habe ich auch noch geleert (Extras / Einstellungen / Erweitert / Netzwerk / Cache: Jetzt leeren)

Der teil meiner viewopic sieht so aus:

Code: Alles auswählen

	</div>

		<!-- IF not postrow.S_IGNORE_POST -->
			<dl class="postprofile" id="profile{postrow.POST_ID}">
			<dt>
				    <!-- IF postrow.POSTER_AVATAR and S_USER_LOGGED_IN and not S_GROUP_10 and not S_IS_BOT  -->
					<!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
				<!-- ENDIF -->
Hier eingefügt:

Code: Alles auswählen

<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> <img src="./images/icons/misc/online.png" title="User ist online"/> <!-- ELSE --><img src="./images/icons/misc/offline.png" title="User ist offline"/> <!-- ENDIF -->

Code: Alles auswählen

				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>

			<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

		<dd>&nbsp;</dd>

		<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> <!-- IF S_DISPLAY_SEARCH --><a href="{postrow.U_SEARCH}">{postrow.POSTER_POSTS}</a><!-- ELSE -->{postrow.POSTER_POSTS}<!-- ENDIF --></dd><!-- ENDIF -->		
		<!-- IF postrow.POSTER_JOINED --><dd><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
Weiß jemand an was das liegen könnte?

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 17:13
von Crizzo
Lad mal deine viewtopic_body.html hier rein: https://www.phpbb.de/support/pastebin.php und verlink es mal. :)

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 17:28
von DerTheo
Hoffe ich verlinke darauf richtig^^
https://www.phpbb.de/support/pastebin.p ... view&s=918

Vielen Dank für die Hilfe :)

Re: User online / offline Anzeige als Bild in viewtopic

Verfasst: 06.01.2012 17:30
von Crizzo
Hi,

da kann ich deine Code-Stelle:

Code: Alles auswählen

    <!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> <img src="./images/icons/misc/online.png" title="User ist online"/> <!-- ELSE --><img src="./images/icons/misc/offline.png" title="User ist offline"/> <!-- ENDIF -->
Aber nirgends finden. Wo hast du die denn eingebaut?