Folgende Warnungen sind aufgetreten:
Warning [2] Undefined array key "dateline" - Line: 1000 - File: inc/functions_post.php PHP 8.2.19 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/functions_post.php 1000 errorHandler->error_callback
/printthread.php 207 get_post_attachments



net-board.net Archiv
IMG Statistik für das WBB 1 - Druckversion

+- net-board.net Archiv (https://net-board.net)
+-- Forum: Deine eigene Homepage (https://net-board.net/forumdisplay.php?fid=26)
+--- Forum: Communitysysteme (https://net-board.net/forumdisplay.php?fid=25)
+---- Forum: wBB Support (Fragen und News) (https://net-board.net/forumdisplay.php?fid=8)
+---- Thema: IMG Statistik für das WBB 1 (/showthread.php?tid=3242)



IMG Statistik für das WBB 1 - pattex - 04.12.2003

Aus spaß habe ich eine solche Statistik für das Netboard geschrieben und auf Wunsch von Cliff auch für das WBB1.1.1

Ihr müsst nicht viel beachten. Einfach die .zip Datei im Anhang entpacken und die statistik.php auf den Server laden.

VORSICHT! Achte darauf das du nicht schon eine datei statistik.php hast.
Ich übernehme keine Haftung..

Diese Grafik wird dann in dieser Form eingebaut
[ IMG]http://netboard.sunsonic.de/wbboard/statistik1.php?.png[/IMG]

Das Ergniss sieht dann so aus:
[Bild: statistik1.php?.png]

Viel Spaß


- cHAp - 04.12.2003

So da bedanke ich mich mal Smile

Mein ergebnis wird dann hier in der signatur sein Big Grin

Also danke dir noch mal Pattex


- pattex - 04.12.2003

Ich muss aber darauf hinweisen das es höchstwahrscheinlich viele Anfragen auf die Datenbank gibt wenn du diese Statistik in vielen Signaturen hast.

Jeder der das Bild aufruft erzeugt auch eine und mehrere Abfragen der Datenbank weil die Daten geholt werden


- cHAp - 04.12.2003

Julian ist klar danke dir Smile

Welche tabellen werden da geholt ???
Bitte mal um genauere info´s das ich mir das ab und zu mal angucken kann.


- pattex - 04.12.2003

Es werden:
$newestuser = $db_zugriff->query_first("SELECT userid,username FROM bb".$n."_user_table WHERE activation='1' ORDER by regdate DESC LIMIT 1");
$newestuser = $newestuser[username];
$anzahluser = $db_zugriff->query_first("SELECT COUNT(userid) FROM bb".$n."_user_table WHERE activation='1'");
$anzahlthreads = $db_zugriff->query_first("SELECT COUNT(threadid) FROM bb".$n."_threads");
$anzahlposts = $db_zugriff->query_first("SELECT COUNT(postid) FROM bb".$n."_posts");
$anzahluser = $anzahluser[0];
$anzahlthreads = $anzahlthreads[0];
$anzahlposts = $anzahlposts[0];

diese variablen benötigt. also aus den tabellen user_table und _threads

das:
$text[3] = "KOSTENLOSE STATISTIK FÜR DEIN WBB! net-board.net";
kann ersetzt oder gelöscht werden.

für einen neuen text einfach darunter:
$text[3] = "KOSTENLOSE STATISTIK FÜR DEIN WBB! net-board.net";

einfügen:
$text[4] = "KOSTENLOSE STATISTIK FÜR DEIN WBB! net-board.net";


- cHAp - 04.12.2003

aha danke sehr