Seite 1 von 1

[Gelöst] Subalben Ordnen (phpBB Gallery Version 1.1.6)

Verfasst: 13.10.2013 02:21
von Z-MANN
Hallo,
ich möchte bei der "phpBB Gallery Version 1.1.6" die Subalben so ordnen wie bei den Subforen Snippet
( Display subforums in two columns ).

Dies ist der Code umbau für die Subforen:
open: styles\prosilver\template\forumlist_body.html
find:

Code: Alles auswählen

<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}<!-- ENDIF -->
replace with:

Code: Alles auswählen

               <!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS --><br /><strong>{forumrow.L_SUBFORUM_STR}</strong>
                  <!-- BEGIN subforum -->
                     <span class="<!-- IF forumrow.subforum.S_ROW_COUNT is odd -->column2<!-- ELSE -->column1<!-- ENDIF -->"><a href="{forumrow.subforum.U_SUBFORUM}" class="subforum <!-- IF forumrow.subforum.S_UNREAD is odd -->unread<!-- ELSE -->read<!-- ENDIF -->">{forumrow.subforum.SUBFORUM_NAME}</a></span>
                  <!-- END subforum -->
               <!-- ENDIF -->
Habe diesen Code wie folgt verändert und in die "albumlist_body.html" eingebaut:
open: styles\prosilver\template\gallery\albumlist_body.html
find:

Code: Alles auswählen

<!-- IF albumrow.SUBALBUMS and albumrow.S_LIST_SUBALBUMS --><br /><strong>{albumrow.L_SUBALBUM_STR}</strong> {albumrow.SUBALBUMS}<!-- ENDIF -->
Und wie folgt ersetzt:

Code: Alles auswählen

<!-- IF albumrow.SUBALBUMS and albumrow.S_LIST_SUBALBUMS --><br /><strong>{albumrow.L_SUBALBUM_STR}</strong>
                  <!-- BEGIN subalbum -->
                     <span class="<!-- IF albumrow.subalbum.S_ROW_COUNT is odd -->column2<!-- ELSE -->column1<!-- ENDIF -->"><a href="{albumrow.subalbum.U_SUBALBUM}" class="subalbum <!-- IF albumrow.subalbum.S_UNREAD is odd -->unread<!-- ELSE -->read<!-- ENDIF -->">{albumrow.subalbum.SUBALBUM_NAME}</a></span>
                  <!-- END subalbum -->
               <!-- ENDIF -->
Jetzt das Problem. Die Unteralben werden wie die Unterforen geordnet Angezeigt, jedoch sind die Icons vor den Unterbalben verschwunden???
Woran kann es liegen das die Icons nicht mehr angezeigt werden?

Re: Gallery Subalben Ordnen

Verfasst: 13.10.2013 08:58
von Miriam
Finde in Deinem Code:

Code: Alles auswählen

class="subalbum
tausche aus gegen:

Code: Alles auswählen

class="subforum

Re: Gallery Subalben Ordnen

Verfasst: 13.10.2013 13:36
von Z-MANN
Danke Miriam!

Für alle die dies auch möchten: Mit dem folgenden Snippet kann man nun die Subalben in der Galerie ordenen!

open: styles\prosilver\template\gallery\albumlist_body.html
find:

Code: Alles auswählen

<!-- IF albumrow.SUBALBUMS and albumrow.S_LIST_SUBALBUMS --><br /><strong>{albumrow.L_SUBALBUM_STR}</strong> {albumrow.SUBALBUMS}<!-- ENDIF -->
replace with:

Code: Alles auswählen

<!-- IF albumrow.SUBALBUMS and albumrow.S_LIST_SUBALBUMS --><br /><strong>{albumrow.L_SUBALBUM_STR}</strong><br />
                  <!-- BEGIN subalbum -->
                     <span class="<!-- IF albumrow.subalbum.S_ROW_COUNT is odd -->column2<!-- ELSE -->column1<!-- ENDIF -->"><a href="{albumrow.subalbum.U_SUBALBUM}" class="subforum <!-- IF albumrow.subalbum.S_UNREAD is odd -->unread<!-- ELSE -->read<!-- ENDIF -->">{albumrow.subalbum.SUBALBUM_NAME}</a></span>
                  <!-- END subalbum -->
               <!-- ENDIF -->
Gruß Z-MANN