Online Anzeige für Team-Block

Post Reply

Topic author
Graaft
Active Member
Posts: 30
Joined: 7. December 2010 08:47
phpBB.de User: Graaft
phpBB.com User: Graaft

Online Anzeige für Team-Block

Post by Graaft »

Da es das für das Portal 1.0.6 bereits gab und ich das eine sehr schöne Anzeige für Online User fanf würde ich das jetzt gerne im Portal 2.0 einbauen.
Stellt sich nur die Frage ob das läuft oder ob dieser Mod erst umgeschrieben werden muss?!

Hier der Link zum 1.0.6 Mod: viewtopic.php?f=53&t=3260
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Online Anzeige für Team-Block

Post by Kirk »

Was die beiden php Dateien angeht, dort bleibt alles wie in der Anleitung nur in den beiden html Dateien
wird es ein bischen anders gemacht.
Anleitung für normalen Team Block:
[+] Installations Anleitung
Öffne: root/styles/prosilver/template/portal/modules/leaders.html
Suche nach:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{admin.USERNAME_FULL}</strong></span><br style="clear:both" />
Ersetze es hiermit mit:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{admin.USERNAME_FULL}</strong></span><!-- IF admin.USER_ONLINE eq 'true' --><img src="{T_THEME_PATH}/images/portal/green-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ELSE --><img src="{T_THEME_PATH}/images/portal/red-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ENDIF --><br style="clear:both" />
Suche nach:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{mod.USERNAME_FULL}</strong></span><br style="clear:both" />
Ersetze es hiermit:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{mod.USERNAME_FULL}</strong></span><!-- IF mod.USER_ONLINE eq 'true' --><img src="{T_THEME_PATH}/images/portal/green-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ELSE --><img src="{T_THEME_PATH}/images/portal/red-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ENDIF --><br style="clear:both" />
Anleitung für Erweiterten Team-Block:
[+] Installations Anleitung
Öffne: root/styles/prosilver/template/portal/modules/leaders_ext.html
Suche nach:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{group.member.USERNAME_FULL}</strong></span><br style="clear:both" />
Ersetze es mit:

Code: Select all

		<span style="float:<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->right<!-- ELSE -->left<!-- ENDIF -->;"><img src="{T_THEME_PATH}/images/portal/portal_user.png" width="16" height="16" alt="" /></span><span style="<!-- IF S_CONTENT_DIRECTION eq 'rtl' -->float:right; padding-right:5px;<!-- ELSE -->float:left; padding-left:5px;<!-- ENDIF --> padding-top:2px;"><strong>{group.member.USERNAME_FULL}</strong></span><!-- IF group.member.USER_ONLINE eq 'true' --><img src="{T_THEME_PATH}/images/portal/green-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ELSE --><img src="{T_THEME_PATH}/images/portal/red-on-16.png" width="16" height="16" alt="{L_ONLINE}" style="float: right;" /><!-- ENDIF --><br style="clear:both" />
Gruß Udo

Topic author
Graaft
Active Member
Posts: 30
Joined: 7. December 2010 08:47
phpBB.de User: Graaft
phpBB.com User: Graaft

Re: Online Anzeige für Team-Block

Post by Graaft »

Das ist super... vielen Dank

Die portal/block/leaders_ext.php und die leaders.php gibt es nichtmehr.
Stattdessen die änderungen für den normalen Teamblock und den erweiterten Teamblock in portal/module/portal_leaders.php machen.

Dann funktionierts super :-D
User avatar

Kirk
Dev
Posts: 1956
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Online Anzeige für Team-Block

Post by Kirk »

Ich hab eine komplette Anleitung dazu reingestellt. viewtopic.php?f=54&t=5733
Gruß Udo
Post Reply

Return to “Modification Requests”