• 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

[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.
 
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

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