Author Topic: Eigene PHP-Seiten hinzufügen  (Read 12996 times)

0 Members and 1 Guest are viewing this topic.

Offline Hansy

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.autospiegel.com
Eigene PHP-Seiten hinzufügen
« on: October 04, 2002, 10:34:14 AM »
Hallo Ihr Lieben,

sorry, wenn ich schon wieder nerve  :lol:

Ich bin in php nicht so bewandelt, daher ist meine Frage für Einige vielleicht überflüssig. Aber ich würde gerne wissen, wie ich eigene, zusätzliche PHP-Seiten in 4images gestalten kann. Beispiel: Eine Hilfe/FAQ Seite, bei der das Design beibehalten werden soll und im rechten Seitenbereich die Hilfe/FAQ beschrieben werden soll.

http://www.autospiegel-archiv.com/4images

Ist das überhaupt machbar? Wenn ja wie? Ihr würdet mir sehr helfen!

Vielen Dank im voraus,
Gruss, Hansy

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Eigene PHP-Seiten hinzufügen
« Reply #1 on: October 04, 2002, 12:00:50 PM »
einfach ein template aus 4images nehmen...
z.b. home.html

nach wünschen bearbeiten, unnötige {categories} rausschmeissen..

als faq.html speichern und mit

http://www.autospiegel-archiv.com/4images/?template=faq
aufrufen..

das wars ;)

demo: http://www.nicky.net/4images/gallery/?template=hilfe
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Hansy

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://www.autospiegel.com
Eigene PHP-Seiten hinzufügen
« Reply #2 on: October 04, 2002, 12:39:15 PM »
THANKS!

Habe es ausprobiert - es klappt wunderbar! Vielen Dank für die Hilfe!

Gruss, Hansy

Offline Sopur

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Bilder des Harassenlaufs in Basel
Re: Eigene PHP-Seiten hinzufügen
« Reply #3 on: April 25, 2005, 12:11:07 PM »
Wenn ich den Link auf der linken Seite haben möchte (dort wo "Passwort vergessen" und "Registrieren" steht) wo muss ich den Code einbauen?
Vielen Dank!
M
F
G
Sopur

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Eigene PHP-Seiten hinzufügen
« Reply #4 on: April 25, 2005, 03:08:26 PM »
für nicht eingeloggte User in : /templates/<dein_template>/user_loginform.html

für eingeloggte User in : /templates/<dein_template>/user_logininfo.html

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sopur

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Bilder des Harassenlaufs in Basel
Re: Eigene PHP-Seiten hinzufügen
« Reply #5 on: April 25, 2005, 10:10:26 PM »
Hm - ich habe das jetzt versucht: info.html erstellt und jetzt versuche ich darauf zu linken, leider funktioniert es nicht: sowhol (wenn ich direkt auf die .html linke kommt die Seite nicht im Template sondern als einzelne Seite, also ohne Navigation, auch (wenn ich auf ?template=info verlinke passiert das selbe.
Wie genau muss ich die Seite erstellen? Muss ich noch eine php Seite machen?
Vielen Dank für Eure Hilfe - ich hab leider nicht so viel Ahnung von der Sache...
M
F
G
Sopur

PS: Seite: www.harassenlauf.com

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Eigene PHP-Seiten hinzufügen
« Reply #6 on: April 25, 2005, 10:51:45 PM »
Hallo Sopur,

1. neues Template erstellen ... analog home.html o.d.gl. und nur den Inhalt anpassen (nicht {user_box}, {random_image}, {clickstream} u.s.w. ändern) ... und im template-Ordner speichern (z.B. info.html)
2. Link auf deine Info-Seite :
Code: [Select]
<a href="http://www.deine_seite/.../index.php?template=info">Info</a>

mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Sopur

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Bilder des Harassenlaufs in Basel
Re: Eigene PHP-Seiten hinzufügen
« Reply #7 on: April 26, 2005, 12:14:30 AM »
Hm - ich bin glaub echt zu dumm dafür: was genau muss ich in der home.html lassen wie's ist? Bzw. wo muss ich den HTML Code einfügen (kann ich überhaupt normalen HTML Code einfügen?)
Vielen, vielen Dank!
MFG
Sopur

Offline Sopur

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Bilder des Harassenlaufs in Basel
Re: Eigene PHP-Seiten hinzufügen
« Reply #8 on: April 27, 2005, 12:08:04 PM »
So, hat nun geklappt :-)
Nun hätte ich noch einen weiteren Wunsch: wie könnte ich, statt den Link auf die Info Seite im Feld der Registrierung zu haben, darunter ein weiteren Abschnitt (mit dem Balken und dann darunter die Links - also ein zusätzlicher Kasten) erstellen?
Vielen Dank für Eure Hilfe!
M
F
G
Sopur

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Eigene PHP-Seiten hinzufügen
« Reply #9 on: April 27, 2005, 02:08:45 PM »
hallo Sopur,

um nicht alle Templates editieren zu müssen, integriere deine neue Navi-Box jeweils :

für nicht eingeloggte User in : /templates/<dein_template>/user_loginform.html
für eingeloggte User in : /templates/<dein_template>/user_logininfo.html

Deine neue Navi-Box könnte doch so aussehen ...
einfügen vor </table> :
Code: [Select]
<tr>
<td><br></td>
</tr>
<tr>
<td class="tablebgcolor"><img src="./templates/normal/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<td class="head2" height="20"><img src="./templates/normal/images/spacer.gif" alt="" width="4" height="4" />Navigation</td>
</tr>
<tr>
<td class="tablebgcolor"><img src="./templates/normal/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<tr>
<td align="center" class="row1>&raquo; <a href="./index.php?template=info">Informationen</a><td>
</tr>
<tr>
<td align="center" class="row1>&raquo; <a href="./index.php?template=kontakt">Kontakt</a><td>
</tr>

die Box ist ja einfach erweiterbar und alles weitere dürften html-code-Spielerein sein ...  :wink:
mawenzi
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: Eigene PHP-Seiten hinzufügen
« Reply #10 on: October 05, 2005, 09:54:33 PM »
einfach ein template aus 4images nehmen...
z.b. home.html

nach wünschen bearbeiten, unnötige {categories} rausschmeissen..

als faq.html speichern und mit

http://www.autospiegel-archiv.com/4images/?template=faq
aufrufen..

das wars ;)

demo: http://www.nicky.net/4images/gallery/?template=hilfe

Wie sieht das ganze denn mit PHP Dateien aus? Ich habe bei mir eine kontakt.html erstellt die ein
<?php include("kontakt.php"); ?> enthält. Diese Datei liegt im oberstem Verzeichnis der Galerie und wird auch aufgerufen. Die kontakt.php enthält ein Kontaktformular was mit php arbeitet.

<form action="kontakt.php" method="post"> beim Abschicken des Formulars wird nun die kontakt.php wieder aufgerufen, nur leider als eigenes Fenster ohne irgendwelche templates.

Habe schon viel probiert aber finde keine Lösung. Vielleicht geht das ganze auch anders aber durch
http://www.domain.com/4images/?template=XXX können scheinbar nur html-Dateien aufgerufen werde.

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Eigene HTML-Seiten hinzufügen
« Reply #11 on: December 13, 2009, 10:07:45 PM »
Hallo

habe mal probiert eine extra Seite mit den Kateorien anzeigen zu lassen.... nach dem Muster http://www.tram-und-bahnbilder.de/index.php?template=kategorien  im Template Ordner ist eine HTML Datei Namens kategorien.html

mit dem Inhalt, aber irgendwie klappt es nicht ....

Code: [Select]

{header}
{if categories}                  
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">                  
<tr>                    
<td>                      
<table width="100%" border="0" cellspacing="0" cellpadding="1">                      
<tr>                        
<td class="head2" valign="top">{lang_categories}</td>                      
</tr>                      
<tr>                        
<td class="row2" valign="top">{categories}</td>                      
</tr>
                     </table>
                     </td>                    
</tr>                  
</table>                  
{endif categories}

{footer}


kann da jemand Helfen, ich komm nicht drauf was ich Falsch gemacht habe  ..

Danke Tobias

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Eigene PHP-Seiten hinzufügen
« Reply #12 on: December 14, 2009, 11:06:37 PM »
http://www.4homepages.de/forum/index.php?topic=23516.0
Verstehen???
Template anlegen, (error.html koieren, umbenennen, kategorien.html)

Code: [Select]
{header}
<table width="640" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablehead">
        <tr>
          <td width="100%" colspan="4"><table cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td width="6"><img src="{template_url}/images/header_top_left.gif" width="6" height="6" alt="" /></td>
        <td width="100%"><img src="{template_url}/images/header_top.gif" width="100%" height="6" alt="" /></td>
<td width="6"><img src="{template_url}/images/header_top_right.gif" width="6" height="6" alt="" /></td>
    </tr>
</table>
</td>
        </tr>
        <tr>
          <td width="6"><img src="{template_url}/images/header_left.gif" width="6" height="60" alt="" /></td>
          <td width="100%"><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="100%" border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td class="tablebgcolor">
            <table width="100%" border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td class="navbar" height="23">
                  <table width="100%" 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" valign="top" class="row2">
                  <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" 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="450" valign="top"><br />
                  <b class="title">Kategorien</b>

<!-- oder in lang/german/main.php vot ?> $lang['categories'] = "[Kategorien]"; einfügen dann in {} dann <b class="title">{categories}</b>schreiben -->


                  <hr size="1" />
                  <p>{categories_all}</p>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td>{category_dropdown_form}</td>
                      <td align="right">{setperpage_dropdown_form}</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                </td>
                <td width="20" valign="top"><img src="{template_url}/images/spacer.gif" width="19" height="19" alt="" /></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tablebottom">
        <tr>
          <td width="6" nowrap><img src="{template_url}/images/footer_left.gif" width="6" height="19" alt="" /></td>
          <td width="100%"></td>
          <td width="6" nowrap><img src="{template_url}/images/footer_right.gif" width="6" height="19" alt="" /></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
{footer}

Quote
$site_template->register_vars(array(
  "categories_all" => get_categories(0)
 ));
in includes/page_header.php vor
Quote
?>
nicht vergessen

Zeile 103 kannst du besser machen, in dem du:
in lang/deutsch/main.php vor ?> $lang['categories'] = "[Kategorien]"; einfügst dann in {} dann <b class="title">{categories}</b>schreibst