Seite 1 von 1

Beiträge pro Tag anzeigen?

Verfasst: 22.04.2005 12:00
von mh
Wo kann man das einstellen, wieviele Beiträge pro Tag gepostet wurden?
Das müßte doch irgendwie machbar sein, oder?
Wäre prima, wenn mir da jemand helfen könnte, Danke im vorraus :grin:

Verfasst: 22.04.2005 13:01
von felixx
Wenn Du wissen möchtest wieviele Beiträge pro Tag gepostet wurden geh mal in das ACP -> Admin Index da gibt es die Forum Statistiken.

Verfasst: 22.04.2005 13:21
von mh
Danke erstmal. :-)
Kann ich das auch im Forum miteinbinden? Das es z.B. Mitglieder oder Gäste auch sehen können. :roll:

Lösung

Verfasst: 22.04.2005 13:23
von gloriosa
Hallo,
suche doch bitte mal nach Beiträge pro Tag und lese Dir die Ergebnisse durch . :o

Verfasst: 22.04.2005 14:53
von mh
habe folgendes gefunden:
Als Suchbegriff einfach als wildcard "*" eingeben und unter Suchoptionen - Durchsuchen nicht alle Beiträge, sondern "1 Tag" auswählen. Die Ergebnisse sind dann die Beiträge des letzten Tages.
und es scheint zu funktionieren.
Danke, vielmals. :grin:

Verfasst: 22.04.2005 14:56
von gloriosa
Hallo,
Suchbegriff : Beiträge pro Tag !

Verfasst: 22.04.2005 16:02
von An-Ja
mh hat geschrieben:Kann ich das auch im Forum miteinbinden? Das es z.B. Mitglieder oder Gäste auch sehen können. :roll:
Hallo :) ,

probier´s mal mit dem MOD

## MOD Title: Pro Forum Stats MOD
## MOD Author: Nt3N < nt3n@fifaonline.it > (Nt3N) n/a
## MOD Description: This mod allows you to view more detailed stats on your forum index
## Stats featured by this mod:
## - Total posts
## - Total topics
## - Posts per user
## - Posts per day
## - Topics per day
## - Users per day
## The MOD will display all these values in just ONE line, like the next one:
##"Total posts: X | Total topics: X | Posts per user: X | Posts per day: X | Topics per day: X | Users per day: X"
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 2-3 Minutes

Verfasst: 22.04.2005 16:16
von TullieForce
@ an-ja hast du dafür auch einen Link ? würde mir den auch gerne einbauen...in der Moddatenbank wurde ich nicht findig !

Verfasst: 22.04.2005 16:24
von An-Ja
Leider hab ich keinen Link dafür, hatte es mir nur abgespeichert :-?

Hier der MOD:

###############
## MOD Title: Pro Forum Stats MOD
## MOD Author: Nt3N < nt3n@fifaonline.it > (Nt3N) n/a
## Files To Edit (3): index.php
## language/lang_english/lang_main.php
## templates/subSilver/index_body.tpl
##
## Included Files (0):
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## Tnx for downloading this MOD which is my first!
## I hope you like it! If u have any trouble while
## installing this MOD, feel free to contact by email!
##
## Nj0y : D - questions, suggestions, etc to nt3n@fifaonline.it
##
## FORZA JUVENTUS SEMPRE E COMUNQUE!
##
##############################################################
## MOD History:
##
## 2004-08-18 - Version 1.0.0
## - First (bug-free) release!
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

index.php

#
#-----[ FIND ]------------------------------------------
#

//
// If you don't use these stats on your index you may want to consider
// removing them
//

#
#-----[ AFTER, ADD ]------------------------------------------ zeile 132 pageheader.php
#

$total_topics = get_db_stat('topiccount');

#
#-----[ FIND ]------------------------------------------
#

$template->set_filenames(array(
'body' => 'index_body.tpl')
);

#
#-----[ AFTER, ADD ]------------------------------------------
#

$boarddays = ( time() - $board_config['board_startdate'] ) / 86400;
$posts_per_day = sprintf("%.2f", $total_posts / $boarddays);
$topics_per_day = sprintf("%.2f", $total_topics / $boarddays);
$users_per_day = sprintf("%.2f", $total_users / $boarddays);
$posts_per_user = sprintf("%.2f", $total_posts / $total_users);


if($posts_per_day > $total_posts)
{
$posts_per_day = $total_posts;
}

if($topics_per_day > $total_topics)
{
$topics_per_day = $total_topics;
}

if($users_per_day > $total_users)
{
$users_per_day = $total_users;
}

if($posts_per_user > $total_posts)
{
$posts_per_user = $total_posts;
}

#
#-----[ FIND ]------------------------------------------
#
# You have 2 instances of this: find the SECOND one from the top
#

$template->assign_vars(array(

#
#-----[ AFTER, ADD ]------------------------------------------
#

"POSTS_PER_DAY" => $posts_per_day,
"POSTS_PER_USER" => $posts_per_user,
"TOPICS_PER_DAY" => $topics_per_day,
"USERS_PER_DAY" => $users_per_day,
"TOTAL_TOPICCOUNT" => $total_topics,
"L_TOTAL_TOPICCOUNT" => $lang['total_topiccount'],
"L_POSTS_PER_DAY" => $lang['Posts_per_day'],
"L_TOPICS_PER_DAY" => $lang['Topics_per_day'],
"L_USERS_PER_DAY" => $lang['Users_per_day'],
"L_POSTS_PER_USER" => $lang['Posts_per_user'],

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>

#
#-----[ REPLACE WITH ]------------------------------------------
#

<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS} | {L_TOTAL_TOPICCOUNT} <b>{TOTAL_TOPICCOUNT}</b> | {L_POSTS_PER_USER}<b>{POSTS_PER_USER}</b> | {L_POSTS_PER_DAY}<b>{POSTS_PER_DAY}</b> | {L_TOPICS_PER_DAY}<b>{TOPICS_PER_DAY}</b> | {L_USERS_PER_DAY}<b>{USERS_PER_DAY}</b><br />{TOTAL_USERS}<br />{NEWEST_USER}</span>

#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

$lang['Posted_articles_zero_total'] = 'Our users have posted a total of <b>0</b> articles'; // Number of posts
$lang['Posted_articles_total'] = 'Our users have posted a total of <b>%d</b> articles'; // Number of posts
$lang['Posted_article_total'] = 'Our users have posted a total of <b>%d</b> article'; // Number of posts

#
#-----[ REPLACE WITH ]------------------------------------------
#

$lang['Posted_articles_zero_total'] = 'Total posts: <b>0</b>'; // Number of posts
$lang['Posted_articles_total'] = 'Total posts: <b>%d</b>'; // Number of posts
$lang['Posted_article_total'] = 'Total posts: <b>%d</b>'; // Number of posts
$lang['Posts_per_user'] = 'Posts per user: ';
$lang['Posts_per_day'] = 'Posts per day: ';
$lang['Topics_per_day'] = 'Topics per day: ';
$lang['Users_per_day'] = 'Users per day: ';
$lang['total_topiccount'] = 'Total topics: ';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Verfasst: 07.07.2005 17:01
von Slytherin
Ich würde gerne nur die zwei folgenden Funktionen nützen:
POSTS_PER_DAY
TOPICS_PER_DAY

dh:
Heute wurden xxx Beiträge geschrieben.
Heute wurden xxx Thema's eröffnet.

Das andere mit dem, das Users wieviele Themen geschrieben haben usw, hab ich schon eingebaut.

Kann jemand die Anleitung des MOD's so verändern, dass nur das obenstehende habe ? Und ist es dazu möglich, die Anleitung des MOD's so zu verändern, dass ich nicht:
Soviele Beiträge wurden heutegeschrieben: xxx
habe sondern,
Heute wurden xxx Beiträge geschrieben

Grüsse