Installation der *info.php Dateien
English users see below
Allgemeine Information
In jeder Engine gibt es sog. Info-Dateien. Diese erkennen Sie am Wort 'info'
im Dateiname (z. B. dlinfo.php, artinfo.php, newsinfo.php etc.). Diese Scripte
liegen immer im Hauptverzeichnis und ermöglichen es div. Informationen
die durch die Engines generiert werden auf jeder beliebigen Seite anzuzeigen.
Was Sie dafür tun müssen können Sie nachfolgend lesen.
Datei *info.php bearbeiten
- Öffnen Sie die Datei *info.php mit einem Texteditor (z. B. WordPad,
Homesite, Dreamweaver)
- In der ersten Zeile nach dem Kommentarblock finden Sie eine Zeile die angepasst
werden muss. Diese variiert von Script zu Script und sieht in etwa so aus:
$path2news = "/srv/www/htdocs/projekte/tpl_news";
- Zwischen Anführungs- und Schlußzeichen müssen Sie den absoluten
Pfad zu Ihrer jeweiligen Engine Installation angeben. ACHTUNG, nicht die URL
den Pfad. Wenn Ihnen der Pfad nicht bekannt ist, können Sie das Script
path_help.php aus dem docs-Ordner auf den Server laden und im Browser aufrufen
oder einfach Ihren Hoster kontaktieren.
- Datei *info.php speichern und wieder auf den Server laden
Datei *info.php einbinden
- Öffnen Sie die Seite, in der Sie die Datei anzeigen lassen wollen.
- Fügen Sie im Quelltext an die entsprechende Stelle folgendes ein:
<?php
include('./pfad/zur/datei/newsinfo.php');
?>
In diesem Beispiel wurde die *info-Datei der News-Engine verwendet, dies ist
entsprechend anzupassen. Auch hier bitte wieder den Pfad und nicht die URL
verwenden!
- Datei abspeichern und per FTP auf den Server laden. WICHTIG, die Datei muss
unbedingt die Endung .php haben. Andernfalls wird das nicht funktionieren
- Datei im Browser aufrufen. (es wird nur etwas angezeigt, wenn auch bereits
ein Inhalt in die Engine eingegeben wurde)
Wie Sie das Design der jeweiligen *info-Datei anpassen können, erfahren Sie in der Datei style_information.html aus dem docs-Ordner
*info.php - Installation
Information
In every Engine you can find a *info.php file. Every file include the name
'info' in it's filename (e. g. newsinfo.php, dlinfo.php, artinfo.php). With
these files it is possible to include information provided by the Engines into
your own websites. At the following you can read the installation instructions
to use this feature.
Edit file *info.php
- Open the file *info.php with a Texteditor (e. g. WordPad, Homesite, Dreamweaver)
- In the first line after the comment-block you can find the following lines.
These lines looks a little bit different from script to script:
$path2news = "/srv/www/htdocs/projekte/tpl_news";
- Between the "" you have to insert the full path to the Engine
installation. Please insert the full path and not the URL. If you do not know
the full path, upload the file show_path.php (from the docs folder) to your
server and point your browser on this file or get in contact with your hosting
partner.
- Save the *info.php file and FTP the file to your server
Include file *info.php
- Open the page where you want to include the information
- Add the following lines of code at that place where you want the information:
<?php
include('./path/to/file/newsinfo.php');
?>
In these example I used the *info-file of the News-Engine, please edit the
lines to the info-file you used. Please use the full path and not URL too!
- Save the file and FTP it to your webserver. Make sure that you have used
the file extension .php otherwise it won't work.
- Call the file in your browser
More information to modify the design of the *info-file can be found in the file style_information.html (from the docs-folder).