4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: honda2000 on July 26, 2011, 05:56:53 PM

Title: Zufallsbild (RandomImage)
Post by: honda2000 on July 26, 2011, 05:56:53 PM
Eine Frage zum Zufallsbild.
Ich möchte das Zufallsbild aus der linke Spalte entfernen, kann nicht schwer sein,
dafür nur auf der home.html, mittig, zentriert, max. 800pix (eher kleiner) unter den neuen Bildern.
Geht das?? Wenn JA, wie??

LG
Tomy
Title: Re: Zufallsbild (RandomImage)
Post by: Rembrandt on July 26, 2011, 06:46:35 PM
Hi!

1.) suche in deinen *html files und lösche folgenden code:
Code: [Select]
       {if random_image}
                <table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                  </tr>
                  <tr>
                    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  <tr>
                    <td align="center" class="row1">
                      <br />
                      {random_image}
                      <br />
                      <br />
                    </td>
                  </tr>
                  <tr>
                    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                </table>
        {endif random_image}
}

2.) füge ein, in allen *.html files wo du das neue random image anzeigen möchtest:
Code: [Select]
       {if random_image}
                <table width="150" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="head2" height="20"> <img src="{template_url}/images/spacer.gif" alt="" width="4" height="4" />{lang_random_image}</td>
                  </tr>
                  <tr>
                    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                  <tr>
                    <td align="center" class="row1">
                      <br />
                      {random_image}
                      <br />
                      <br />
                    </td>
                  </tr>
                  <tr>
                    <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                  </tr>
                </table>
        {endif random_image}
z.b. nach:
Code: [Select]
{lang_site_stats}<br />
3.) suche in deinen template/random_image.html:
Code: [Select]
{thumbnail}
und ersetze es mit:
Code: [Select]
{image}


so mit {image} wird  jetzt das originalbild angezeigt, möchtest du jetzt ein vergrößertes thumbnail anzeigen installiere dir diesen mod:
http://www.4homepages.de/forum/index.php?topic=25017.msg137021#msg137021
und ersetze {image} mit {thumbnail_small}

mfg Andi
Title: Re: Zufallsbild (RandomImage)
Post by: honda2000 on July 26, 2011, 07:57:40 PM
Hm,
 :( :( :(
entweder ich hab das  :)Thumb oder die Mediadatei, eine voreinstellte Größe bekomme ich nicht hin!
...und nu??
Was mach ich falsch??
Title: Re: Zufallsbild (RandomImage)
Post by: Rembrandt on July 27, 2011, 06:42:12 PM
habe das erst jetzt gelesen, bei einer änderung im post bekomme ich keine nachricht.

so was hast du den in der functions.php jetzt drinnen stehn?
Title: Re: Zufallsbild (RandomImage)
Post by: honda2000 on July 27, 2011, 08:41:13 PM
So sieht die jetzt aus.

Title: Re: Zufallsbild (RandomImage)
Post by: Rembrandt on July 27, 2011, 09:39:19 PM
ich habe dir die functions.php angehängt.
und ersetze {thumbnail} mit {thumbnail_big}
in der random_image.html
Title: Re: Zufallsbild (RandomImage)
Post by: honda2000 on July 28, 2011, 06:12:37 AM
Oh,
vielen Dank!
Wo war mein Fehler?
Title: Re: Zufallsbild (RandomImage)
Post by: Rembrandt on July 28, 2011, 06:16:31 AM
k.a. ich habe in der functions.php den code gleich mal profilaktisch getauscht  :)
Title: Re: Zufallsbild (RandomImage)
Post by: honda2000 on July 28, 2011, 07:34:35 PM
 :D :D :D
Blos gut, dass du nicht die komplette functions.php getauscht hast!
DANKE!
Title: Re: Zufallsbild (RandomImage)
Post by: Rembrandt on July 28, 2011, 07:36:34 PM
war doch noch etwas anderes drinnen?  :)