• 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.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

[Unofficial] Image Directory Informations

Status
Not open for further replies.

Danny.Domb

👽 Chevereto Freak
Require Very Simple Plugin System

This is a simple mod to retrieve informations about the images directory.
  • The total size of the directory[/*]
  • The number of files[/*]

Installation Instructions
Download : http://www.mediafire.com/?7tvzkv20b1o0as8
Upload it in content/mods/

How to use
Go to : content\themes\XXX
Where xxx means your default theme.

Open the file where you want theses information to be shown, in this case, the footer is the best place (footer.php)

Here is an example of how it can be use in the footer :

Find
HTML:
<p>(C) 2011 Chevereto</p>

add after
PHP:
<p>Directory Size : <?php print(__MOD__DIR_INFO__SIZE__); ?></p>
<p># of uploaded files : <?php print(__MOD__DIR_INFO__COUNT__); ?></p>


Information given by this add-ons:
Code:
__MOD__DIR_INFO__SIZE__ // constant - the size of the directory
__MOD__DIR_INFO__COUNT__ // constant - the number of images in the directory



Suggestions
You can also add in every languages files 2 new variables, so you may translate the text Directory size and # of uploaded images .


Known Issues
None.



If you like this add-ons thumbs me up!
 
Hello

This gives !!!!!

6d8uovy
 
s-f-r-j said:
This works on 2.0.7?

Well since their is update every weeks -.- I don't know Rodolfo changed many of his constant name...
So on every small update... every mod can be deprecated ....

And btw, this mod is not developped anymore.
 
Thank you, excellent addition. Only 1 question. Why I had not the displayed information?
VwD3b.png
 
Gatses said:
Thank you, excellent addition. Only 1 question. Why I had not the displayed information?
VwD3b.png

Did you installed Simple Plugin System before?
Also make sure their is a file name doc_info (or something similar) in content/mods/
 
Gatses said:
Figured Out. Now this problem. Writes no images, though they are there.
cApVg.png

That is a problem with the mod, didn't test it with Chevereto 2.0.9

I will check it tonight
 
Gatses said:
Figured Out. Now this problem. Writes no images, though they are there.
cApVg.png

I had the same problem. To fix this you need to open the /content/mods/dir_info.php file and at line 20:
Code:
$dir_info = listDirectory(__PATH_IMAGES__, $allowedExtension);
you need to change __PATH_IMAGES__ to __CHV_PATH_IMAGES__ since it has change in newer versions ;)
 
Status
Not open for further replies.
Back
Top