4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Turboss on October 01, 2005, 04:28:30 PM

Title: Gästebuch in Template einbinden
Post by: Turboss on October 01, 2005, 04:28:30 PM
Erstmal ein freundliches Hallo an dieses tolle Forum hier!

Ich habe folgende Frage:
Ich möchte ein Gästebuch in mein Template einbinden. Das GB läuft läuft soweit, der Link ist auf der Haupseite zu sehen. Nur möchte ich nicht, dass sich eine neue Seite öffnet, sondern sich das GB im Template bzw. der Haupseite öffnet. Wie kann ich das umsetzen?

Danke im voraus!!
Title: Re: Gästebuch in Template einbinden
Post by: Acidgod on October 01, 2005, 04:48:24 PM
neues template (zB gaestebuch.html) erstellen, an der stelle wo das GB rein soll ein iframe reinsetzen.
Und dann rufst Du in Zukunft dein GB mit /index.php?template=gaestebuch auf...

Ist ne sehr einfache lösung aber es funzt...
Title: Re: Gästebuch in Template einbinden
Post by: Turboss on October 01, 2005, 05:02:17 PM
Boahh das ging ja schnell!

@Acidgod:
Das sit echt nett von dir, dass du soo schnell geantwortet hast! Aber kannst du mir Dummchen den vorgang noch ein wenig mehr erklären? Soo fit bin ich dann doch noch nicht mit php :cry:.
Title: Re: Gästebuch in Template einbinden
Post by: Acidgod on October 01, 2005, 05:28:42 PM
Code: [Select]
{header}
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <table width="640" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td colspan="4"><img src="{template_url}/images/header_top.gif" width="640" height="6" alt="" /></td>
        </tr>
        <tr>
          <td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="60" alt="" /></td>
          <td width="405"><img src="{template_url}/images/header_logo.gif" width="405" height="60" alt="" /></td>
          <td width="225" align="right">
            <form method="post" action="{url_search}">
              <table border="0" cellspacing="0" cellpadding="1">
                <tr>
                  <td>
                    <input type="text" name="search_keywords" size="15" class="searchinput" />
                  </td>
                  <td>
                    <input type="submit" value="{lang_search}" class="button" name="submit" />
                  </td>
                </tr>
                <tr valign="top">
                  <td colspan="2"><a href="{url_search}" class="smalltext">{lang_advanced_search}</a></td>
                </tr>
              </table>
            </form>
          </td>
          <td align="right" width="6"><img src="{template_url}/images/header_right.gif" width="6" height="60" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bordercolor">
      <table width="640" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
            <table width="638" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td class="navbar" height="23">
                  <table width="636" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}</td>
                      <td align="right">
<a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
<a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;
  </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table width="638" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" class="row2" valign="top">
                  <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_registered_user}</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">{user_box}</td>
                    </tr>
                    <tr>
                      <td class="tablebgcolor"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                    </tr>
                  </table>
  {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}
                </td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="1" height="1" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="18" height="18" /></td>
                <td width="450" valign="top">
<!--- HIER MUSS DEINE GB URL REIN --->
<iframe src="http://picsforfree.de" name="Fenster">
Your Browser doesn´t support IFrames
</iframe>

                  <p>&nbsp;</p>
                </td>
                <td width="19" valign="top"><img src="{template_url}/images/spacer.gif" alt="" width="19" height="19" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="640" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6"><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
          <td width="405">&nbsp;</td>
          <td width="225">&nbsp;</td>
          <td width="6"><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

speichere die Datei als gb.html und rufe dein Gästebuch über /index.php?template=gb auf...

Aber ändere die URL wo mein KOMMENTAR steht noch ab und viola alles ist fertig...
Title: Re: Gästebuch in Template einbinden
Post by: Turboss on October 01, 2005, 06:41:58 PM
Klaase, habe vielen Dank, Acidgod!!! :)
Title: Re: Gästebuch in Template einbinden
Post by: Turboss on October 01, 2005, 06:56:25 PM
So, gemacht getan, nur sieht es ein wenig komisch aus?!

http://turbo.ohost.de/index.php?template=gb

so sollte es im Original aussehen:

http://turbo.tu.ohost.de/index.php
Title: Re: Gästebuch in Template einbinden
Post by: Acidgod on October 01, 2005, 07:33:47 PM
Mensch ich habe ja auch ein Template von dem default Templatepack als basis genommen...

Den Rest musste jetzt aber auch alleine schaffen...

www.selfhtml.de da wird dir geholfen... suche einfach mal nach iframe/breite/höhe/css ...
Title: Re: Gästebuch in Template einbinden
Post by: Turboss on October 01, 2005, 07:42:35 PM
ok danke