Author Topic: Zufallsbild (RandomImage)  (Read 11172 times)

0 Members and 1 Guest are viewing this topic.

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Zufallsbild (RandomImage)
« 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

Rembrandt

  • Guest
Re: Zufallsbild (RandomImage)
« Reply #1 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

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Zufallsbild (RandomImage)
« Reply #2 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??
« Last Edit: July 26, 2011, 10:05:28 PM by honda2000 »

Rembrandt

  • Guest
Re: Zufallsbild (RandomImage)
« Reply #3 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?

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Zufallsbild (RandomImage)
« Reply #4 on: July 27, 2011, 08:41:13 PM »
So sieht die jetzt aus.


Rembrandt

  • Guest
Re: Zufallsbild (RandomImage)
« Reply #5 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

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Zufallsbild (RandomImage)
« Reply #6 on: July 28, 2011, 06:12:37 AM »
Oh,
vielen Dank!
Wo war mein Fehler?

Rembrandt

  • Guest
Re: Zufallsbild (RandomImage)
« Reply #7 on: July 28, 2011, 06:16:31 AM »
k.a. ich habe in der functions.php den code gleich mal profilaktisch getauscht  :)

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Zufallsbild (RandomImage)
« Reply #8 on: July 28, 2011, 07:34:35 PM »
 :D :D :D
Blos gut, dass du nicht die komplette functions.php getauscht hast!
DANKE!

Rembrandt

  • Guest
Re: Zufallsbild (RandomImage)
« Reply #9 on: July 28, 2011, 07:36:34 PM »
war doch noch etwas anderes drinnen?  :)