(Ich muss ehrlich sagen mit HTML kenn cih mich recht gut aus aber PHP ist fast alles neu für mich.)
So steht es in der Readme:
Including the Archives
PHPNews automatically sorts all news into Archives. You can display your Archives 1 of 2 different ways. You can either order your News by Month and Year, or by The Catgeory it was added to (News Categories are an optional feature which can be enabled in your Settings). Including your Archives is done just like your News (You cannot display your News and Archives on the same page)
PHP Code:
<?php
include("path/to/phpnews/archive.php");
?>
Now, you need to place the following piece of PHP code where you want the Archives displayed. To display Archives sorted by Month And Year (default) use this code:
PHP Code:
<?php
byMonth();
?>
To display your Archives sorted by News Categories use the following piece of Code:
PHP Code:
<?php
byCat();
?>
Ich möchte nach Kategorien sortieren also muss ich ja
<?php
byCat();
?>
einfügen.
Was kommt da in die Klammer?
Wenn ich die leer lasse kommt immer folgende Meldung:
Fatal error: Call to undefined function: bycat() in /homepages/1/d39883919/htdocs/cold-as-ice/vonderheide/newsarchiv.php on line 10
Ist bestimmt ganz simpel doch wie gesagt kenn ich mich mit PHP noch nicht so aus.
Dieser Beitrag wurde von Lein@d bearbeitet: 18. Februar 2006 - 00:13