• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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