Seite 1 von 4
Zufällige Bilder aus Fotoalbum in Mitte von Portal
Verfasst: 21.06.2006 13:31
von Gismo110
Hi all,
Ich möchte gerne zufällig ein Bild in Mitte meines Portals anzeigen lassen. Die Bilder sollten auf eine bestimmte Größe gequetscht werden und unter dem Wilkommentext stehen.
Wie stell ich das an?
Ich habe das FAP (Full Album Pack) installiert und das ezportal von Smartor.
Verfasst: 22.06.2006 12:32
von Gismo110
*schieb*
Verfasst: 22.06.2006 17:40
von dslmonster
Hallo Gismo,
Für das ezPortal gibt es einen Block der dir Bilder aus dem Fotoalbum.
das Add-On unter den Namen: photo_album_block_1.0.1em...
findest du
hier:
mußt dann nur die stelle in deiner portal_body.tpl ändern, da es Standart mäßig an der rechten Seite gepackt wird (so glaube ich das in Erinnerung zu haben)
hoffe dir damit erstmal geholfen zu haben.
gruß
dslmonster
Verfasst: 23.06.2006 10:48
von Gismo110
hi
danke für die antwort. das es da einen mod fürs portal gibt ist mir bewusst ist auch bei mir eingebaut. die schwierigkeit für mich ist nur das so umzubaun das es in der mitte in einem block auch angezeigt wird
das kann ich nicht
Verfasst: 23.06.2006 13:20
von dslmonster
soll der Block nur in der mitte angezeigt werden? oder soll der block 2mal angezeigt werden?
Verfasst: 23.06.2006 13:30
von Gismo110
nur in der mitte und das dann in groß - also das bild
das soll unter dem willkommenstext im ersten block erscheinen
nur 1 zufälliges bild in groß das bei jedem aktualisieren ein neues ist dann bin ich zufrieden

Verfasst: 23.06.2006 13:45
von dslmonster
oki,
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/portal_body.tpl
#
#-----[ FINDEN & AUSCHNEIDEN ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="25" nowrap="nowrap">{L_NEWEST_PICS}</th>
</tr>
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<!-- BEGIN recent_detail -->
<tr>
<td class="row1" width="{S_COL_WIDTH}" align="center"><a href="{recent_pics.recent_detail.U_PIC}"{TARGET_BLANK}><img src="{recent_pics.recent_detail.THUMBNAIL}" border="0" alt="{recent_pics.recent_detail.DESC}" title="{recent_pics.recent_detail.DESC}" vspace="10" /></a></td>
</tr>
<tr>
<td class="row2" align="center">
<span class="gensmall">
{L_PIC_TITLE}: {recent_pics.recent_detail.TITLE}<br />
{L_POSTER}: {recent_pics.recent_detail.POSTER}<br />
{L_POSTED}: {recent_pics.recent_detail.TIME}<br />
{L_DIMENSION}: {recent_pics.recent_detail.DIMENSION}<br />
{L_SIZE}: {recent_pics.recent_detail.SIZE}<br />
{L_VIEW}: {recent_pics.recent_detail.VIEW}<br />
{recent_pics.recent_detail.RATING}{recent_pics.recent_detail.COMMENTS}<br />
</span>
</td>
</tr>
<!-- END recent_detail -->
<!-- END recent_pics -->
<tr>
<td class="row3" height="25" align="center"><span class="gensmall">[ <a href="{U_ALBUM}">{L_ALBUM}</a> ]</span></td>
</tr>
</table>
<br />
#
#-----[ FIND ]------------------------------------------
#
<br />
<!-- END welcome_text -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="25" nowrap="nowrap">{L_NEWEST_PICS}</th>
</tr>
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<!-- BEGIN recent_detail -->
<tr>
<td class="row1" width="{S_COL_WIDTH}" align="center"><a href="{recent_pics.recent_detail.U_PIC}"{TARGET_BLANK}><img src="{recent_pics.recent_detail.THUMBNAIL}" border="0" alt="{recent_pics.recent_detail.DESC}" title="{recent_pics.recent_detail.DESC}" vspace="10" /></a></td>
</tr>
<tr>
<td class="row2" align="center">
<span class="gensmall">
{L_PIC_TITLE}: {recent_pics.recent_detail.TITLE}<br />
{L_POSTER}: {recent_pics.recent_detail.POSTER}<br />
{L_POSTED}: {recent_pics.recent_detail.TIME}<br />
{L_DIMENSION}: {recent_pics.recent_detail.DIMENSION}<br />
{L_SIZE}: {recent_pics.recent_detail.SIZE}<br />
{L_VIEW}: {recent_pics.recent_detail.VIEW}<br />
{recent_pics.recent_detail.RATING}{recent_pics.recent_detail.COMMENTS}<br />
</span>
</td>
</tr>
<!-- END recent_detail -->
<!-- END recent_pics -->
<tr>
<td class="row3" height="25" align="center"><span class="gensmall">[ <a href="{U_ALBUM}">{L_ALBUM}</a> ]</span></td>
</tr>
</table>
<br />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
Das war es schon, habs bei mir getestet uns es klappt.
Hoffe es is das was Du Dir gedacht hast.
gruß
dslmonster
Verfasst: 23.06.2006 14:48
von Gismo110
fast richtig
ich möchte das im gleichen block haben wie den willkommenstext -> also quasi da drunter im gleichen block. Ich will keinerlei details zum bild haben und auch nur ein bild unter den text. Die zwei zufälligen bilder an der seite die ich drinne haben sollen da bleiben und das einzelne bild unterm willkommenstext soll so groß sein wie der block also von der breite her
so sind sie ja nur mini
kannste mir da auch helfen?
Verfasst: 23.06.2006 16:09
von dslmonster
So habe nun etwas hier gefuckelt bis ich es soweit hatte wie du es dir vieleicht vorstellst.
Das mit der Bild größe habe ich noch nicht hinbekommen, liegt wohl daran das als Bild nur das THUMBNAIL angezeigt wird, daher ist das bild sehr *klein*
Aber hier erstmal die Änderung:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/portal_body.tpl
#
#-----[ FINDEN & LÖSCHEN ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th class="thTop" height="25" nowrap="nowrap">{L_NEWEST_PICS}</th>
</tr>
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<!-- BEGIN recent_detail -->
<tr>
<td class="row1" width="{S_COL_WIDTH}" align="center"><a href="{recent_pics.recent_detail.U_PIC}"{TARGET_BLANK}><img src="{recent_pics.recent_detail.THUMBNAIL}" border="0" alt="{recent_pics.recent_detail.DESC}" title="{recent_pics.recent_detail.DESC}" vspace="10" /></a></td>
</tr>
<tr>
<td class="row2" align="center">
<span class="gensmall">
{L_PIC_TITLE}: {recent_pics.recent_detail.TITLE}<br />
{L_POSTER}: {recent_pics.recent_detail.POSTER}<br />
{L_POSTED}: {recent_pics.recent_detail.TIME}<br />
{L_DIMENSION}: {recent_pics.recent_detail.DIMENSION}<br />
{L_SIZE}: {recent_pics.recent_detail.SIZE}<br />
{L_VIEW}: {recent_pics.recent_detail.VIEW}<br />
{recent_pics.recent_detail.RATING}{recent_pics.recent_detail.COMMENTS}<br />
</span>
</td>
</tr>
<!-- END recent_detail -->
<!-- END recent_pics -->
<tr>
<td class="row3" height="25" align="center"><span class="gensmall">[ <a href="{U_ALBUM}">{L_ALBUM}</a> ]</span></td>
</tr>
</table>
<br />
#
#-----[ FIND ]------------------------------------------
#
</table>
<br />
<!-- END welcome_text -->
#
#-----[ BEVOR, ADD ]------------------------------------------
#
<!-- BEGIN no_pics -->
<tr>
<td class="row1" align="center" height="50"><span class="gen">{L_NO_PICS}</span></td>
</tr>
<!-- END no_pics -->
<!-- BEGIN recent_pics -->
<!-- BEGIN recent_detail -->
<tr>
<td class="row1" width="100%" align="center"><a href="{recent_pics.recent_detail.U_PIC}"{TARGET_BLANK}><img src="{recent_pics.recent_detail.THUMBNAIL}" border="0" alt="{recent_pics.recent_detail.DESC}" title="{recent_pics.recent_detail.DESC}" vspace="10" /></a></td>
</tr>
<!-- END recent_detail -->
<!-- END recent_pics -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
Ich hoffe maml es klappt soweit, bei Dir.
Und das mit dem Bild werde ich mir auch mal anschauen, vieleicht hat ja noch jemand anderes ne Idee dafür
Verfasst: 23.06.2006 18:26
von Gismo110
wenn ich das mache passiert bei mir gar nix
komisch
ich stelle mal meine portal_body online
vielleicht kannst du mal gucken ob du mir die so modden kannst wies bei dir funktioniert das wär klasse
wenn du zeit hast
hier der link:
http://mitglied.lycos.de/gismo1101/portal_body.txt