Hallo, ich habe mal was selber hinbekommen. Vielleicht interessiert sich ja jemand dafür. Ich habe mir dank breakdancer das content2 modul eingebaut
http://www.pragmamx.org/Forum-topic-27261.html
Weils so gut geklappt hat, habe ich mir auch gleicht noch content 3 eingebaut.
Diese beiden neuen Module werden natürlich in der Statistik modules/Top nicht berücksichtigt. Deshalb:
suche
in modules/Top/index.php
/**
* Top 10 Pages in Content
*/
$result = sql_query("select pid, title, counter from ${prefix}_pages where active='1' AND counter>0 ORDER BY counter DESC limit 0," . intval($top));
if (sql_num_rows($result) > 0) {
echo "<table border=\"0\" cellpadding=\"10\" width=\"100%\"><tr><td align=\"left\">\n"
. "<font class=\"option\"><b>$top " . _MOSTREADPAGES . "</b></font><br /><br /><font class=\"content\">\n";
$lugar = 1;
while (list($pid, $title, $counter) = sql_fetch_row($result)) {
if ($counter > 0) {
echo "<strong><big>·</big></strong> $lugar: <a href=\"modules.php?name=Content&pid=$pid\">$title</a> ($counter " . _READS . ")<br />\n";
$lugar++;
}
}
echo "</font></td></tr></table>\n\n";
}
und füge darunter ein:
/**
* Top 10 Pages in Content2
*/
$result = sql_query("select pid, title, counter from ${prefix}_pages2 where active='1' AND counter>0 ORDER BY counter DESC limit 0," . intval($top));
if (sql_num_rows($result) > 0) {
echo "<table border=\"0\" cellpadding=\"10\" width=\"100%\"><tr><td align=\"left\">\n"
. "<font class=\"option\"><b>$top " . _MOSTREADPAGES2 . "</b></font><br /><br /><font class=\"content2\">\n";
$lugar = 1;
while (list($pid, $title, $counter) = sql_fetch_row($result)) {
if ($counter > 0) {
echo "<strong><big>·</big></strong> $lugar: <a href=\"modules.php?name=Content2&pid=$pid\">$title</a> ($counter " . _READS . ")<br />\n";
$lugar++;
}
}
echo "</font></td></tr></table>\n\n";
}
Nun noch in der modules/Top/language/lang-german.php
folgende Zeile einfügen
define("_MOSTREADPAGES2", "meist gelesene Seiten in -[b]hier dein Text[/b]");
genauso verfahren mit content3 falls vorhanden. Natürlich überall aus der 2 eine 3 machen