Hallo
Ungetestet:
Rezepte
Suche:
function google_allowed($module)
{
Davor einfügen:
function rezepte()
{
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("Rezeptdatenbank"))
return;
$result = sql_query("select * from recipes_recipes ORDER BY submittime DESC limit " . $limit);
if ($result) {
while ($row = sql_fetch_object($result)) {
$i++;
$item[$i]['link'] = MX_HOME_URL . "/modules.php?name=Rezeptdatenbank&action=viewrecipe&recipeid=" . $row->id;
if (preg_match('#(' . $keywords . ')#i', $row->recipename . $row->ingredients. $row->directions. $row->nutrition.$row->serves))
$row->submittime = time();
$item[$i]['date'] = intval($row->submittime);
}
}
}
Ggf: select * from ".$prefix."recipes_recipes je nachdem wie Deine Tabelle heißt
Suche:
storiescat();
stories();
content();
contentcat();
downloads();
links();
simple('Forum');
Darunter einfügen:
rezepte();
Lexikon
Hier muß noch eine Spalte für das Datum eingefügt werden, damit die Links entsprechend sorterit werden können.
Über phpMyAdmin (z.B.) die Tabelle _encyclopedia_text erweitern:
ALTER TABLE `pragmatw_encyclopedia_text` ADD `date` DATETIME DEFAULT 'CURRENT TIMESTAMP' NOT NULL ;
Die Funktion:
function ency()
{
global $limit, $prefix, $i, $item, $keywords;
if (!google_allowed("Encyclopedia"))
return;
$result = sql_query("select * from " . $prefix . "_encyclopedia_text ORDER BY date DESC limit " . $limit);
if ($result) {
while ($row = sql_fetch_object($result)) {
$i++;
$item[$i]['link'] = MX_HOME_URL . "/modules.php?name=Encyclopedia&op=content&tid=" . $row->tid;
if (preg_match('#(' . $keywords . ')#i', $row->title . $row->text))
$row->date = time();
$item[$i]['date'] = intval($row->date);
}
}
}
entsprechend unter
rezepte();
anfügen:
ency();
Wie gesagt, alles ungetestet, deshalb ohne Gewähr.
Die Google Sitemap sollte, so ist es vorgesehen, bei google.de/sitemaps eingereicht werden.
mfg