User online / offline Anzeige als Bild in viewtopic
Verfasst: 06.01.2012 14:05
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
Grüße
Theo
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Naja ist wie gesagt, standard vorhanden das Bild.
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: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 -->
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
</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 -->
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> </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 -->
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 -->