Author Topic: Erweiterung/zusätzliche seite  (Read 3908 times)

0 Members and 1 Guest are viewing this topic.

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Erweiterung/zusätzliche seite
« on: November 29, 2005, 01:39:42 PM »
hab da ein kleines problem

also, benutze ein template mit einer datei, die zusätlich angelegt wird
etwa wie 4dark/4blueo1/4blueo2.php die ins root der galerie gehören

von da aus soll eine datei angesteuert werden, welche ein impressum, agb´s ect enthält, mehrere dateien sollen aufgerufen werden.

wie mach ich das am schnellsten??

ein template kopieren z.b. home.html

überflüssigen inhalt raus, neuen inhalt rein!

wie rufe ich jetzt aus dem root die datei im ordner templates/default auf?

oder denke ich "um die ecke??

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Erweiterung/zusätzliche seite
« Reply #1 on: November 29, 2005, 02:21:52 PM »
Hallo,

das habe ich auch so versucht und bin kläglich gescheitert.
Habe auch eine Linkliste einbauen wollen und es klappte leider nicht.

Solltest Dir Mal genauer die verlinkung von Lightbox etc. anschauen, dann kannst Du es vielleicht nachvollziehen.

Ich hatte leider noch keine Zeit dazu, bin da aber auch noch am Ball, da ich unterm {header} noch eine Leiste mit Button eingebaut habe.

Grüße Darkness  :mrgreen:

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Erweiterung/zusätzliche seite
« Reply #2 on: November 29, 2005, 05:11:47 PM »
naja, welches template hast du denn genommen, um die seiten zu integrieren?? genauso möchte ich es ja auch haben!

kannst du ne anleitung oder ein beispiel (genaue daten) als zip-file online stellen??

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Erweiterung/zusätzliche seite
« Reply #3 on: November 29, 2005, 05:23:23 PM »
Hallo,

ich habe die lightbox.html genommen, alles soweit entfernt und den Inhalt in der Mitte eingefügt.

{header}
 <tr>
    <td class="bordercolor">
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
           

<table width="100%" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td class="navbar" height="23">
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td align="left" width="50%">
        <img src="{template_url}/images/spacer.gif" width="4" height="4" alt="" />{clickstream}
       </td>
       <td align="right" width="50%">
       
        <a href="{url_top_images}"><b>{lang_top_images}</b></a>&nbsp;
        <a href="{url_new_images}"><b>{lang_new_images}</b></a>&nbsp;&nbsp;
       </td>
      </tr>
     </table>
    </td>
   </tr>
  </table>
          <table width="100%" 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}
      {potd_image}
      {calendar}<br>
      {stats}
      <?php include("4darkm.php"); ?>
                  <br />
                </td>
                <td width="1" class="bordercolor" valign="top"><img src="{template_url}/images/spacer.gif" width="1" height="1" alt="" /></td>
                <td width="18" valign="top"><img src="{template_url}/images/spacer.gif" width="18" height="18" alt="" /></td>
                <td width="100%" valign="top"><br />
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><b class="title">{lang_lightbox}</b></td>
                      <td align="right">
                        <script language=JavaScript>
                    function clearlightbox() {
                        if (confirm('{lang_delete_lightbox_confirm}')) {
                         location.href = "{url_delete_lightbox}";
                        }
                       }
                    </script>
                        <a href="javascript:clearlightbox()"><b>{lang_delete_lightbox}</b></a>
                  </td>
                    </tr>
                  </table>
                  <hr size="1" />
              </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>
     
    </td>
  </tr>
{footer}


Dann habe ich Gleichnamig eine .php datei im ROOT_PATH erstellt und diese verlinkt

In der php Datei habe ich dann entsprechend die Abrufer der Daten aus der DB aufgeführt.

Grüße Darkness  :mrgreen:

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Erweiterung/zusätzliche seite
« Reply #4 on: November 30, 2005, 11:40:02 PM »
alles supi!