Aggiunta contatore visite nelle statistiche.
Mi stò scervellando per fare ciò :D
Discussioni: 3.651, Messaggi: 154.014, Membri: 829, Visite: xxxxxxxxx
per ora sbirciando nel file ../index.php ho trovato il seguente codice:
Codice:
// ### BOARD STATISTICS #################################################
// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);
penso che le chiavi per risolvere la questione siano $totalviews e viewcount facendo diventare tale codice:
Codice:
// ### BOARD STATISTICS #################################################
// get total threads & posts & view from the forumcache
$totalthreads = 0;
$totalposts = 0;
$totalview = 0;
if (is_array($forumcache))
{
foreach ($forumcache AS $forum)
{
$totalthreads += $forum['threadcount'];
$totalposts += $forum['replycount'];
$totalviews += $forum['viewcount'];
}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);
$totalviews = vb_number_format($totalviews);
ora non so dove sia definita la variabile viewcount e non so se $totalviews sia definita solo in inde.php
conosco ancora molto poco la vB però adesso smanetto un poco