• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • This community is user driven. Be polite with other users.
    • We recommend purchasing a Chevereto license to participate in this community.
    • Purchase a Community Subscription to get even faster ticket response times.

A counter of images

allwotlk

Chevereto Member
Dear users please tell me how to put a counter on the main page where will be written how many uploaded images on the server and today.
 
You can use the Stat class.

PHP:
// @var array
$totals = CHV\Stats::getTotals();
G\debug($totals);

Note that the CHV\ namespace must be ommited if you are already in the CHV namespace.
 
[QUOTE =“ Rodolfo,帖子:60288,成员:1”]
您可以使用Stat类。

[CODE = php] // @var副本
$ totals = CHV \ Stats :: getTotals();
G \ debug($总计);[/ CODE]

请注意,如果您已经在CHV名称空间中,则必须省略 CHV \ [/ ICODE]名称空间。 [/引用] [IMG] https://opq.la/images/2019/12/12/FireShot-Capture-001-----------imgse.com.png [/ IMG] 这样的代码是某种类型的统计数据?[/ ICODE]
 
Back
Top