MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Gaming Combat > Wishlist & Feature Requests

Reply
 
Thread Tools Search this Thread Display Modes
Old November 25th, 2004, 05:45   #1
alphanostrum
 
alphanostrum's Avatar
 
Join Date: Nov 2003
Location: Germany-Berlin
Posts: 1,120
alphanostrum is on a distinguished road
Default total size indicate for mambo 4.5.1

i have inserted a new feature for the administration of mambo.
this make possible to indicate the occupied total webspace by mambo, to see under system/system info
i think, particularly for small webspace packages it is importantly always to have an overview of the used up Webspace. perhaps the coreteam can transfer this function into the mambo core. that would be surely very meaningful.

changed file:
administrator/components/com_admin/toolbar.admin.php

new file:
$mosConfig_live_site/total_size.php

an additional installation of this feature is very simple:
1. overwrite the administrator/components/com_admin/toolbar.admin.php with this file.
2. copy the total_size.php into the mambo root directory. thats all :-)

greeting
alpha
Attached Files
File Type: zip mambo_total_size.zip (1.2 KB, 24 views)
__________________
macht mit beim day of Om!
alphanostrum is offline   Reply With Quote
Old November 25th, 2004, 06:36   #2
eyezberg
 
eyezberg's Avatar
 
Join Date: Feb 2004
Location: France
Posts: 2,188
eyezberg is on a distinguished road
Default

Danke.
__________________
joe http://www.eyezberg.com - Flash News
eyezberg is offline   Reply With Quote
Old November 25th, 2004, 07:45   #3
eyezberg
 
eyezberg's Avatar
 
Join Date: Feb 2004
Location: France
Posts: 2,188
eyezberg is on a distinguished road
Default

I quickly modded this to make it multilanguage.

Everything is explained in the zip's comments,
just in case you can't read these:
use total_size.php as indicated;
replace toolbar.admin.php as indicated

PLUS

replace your language file with the included one.
you will find both english and french. choose.

I added a new var: $A_TOTAL_FILESIZE = 'The Total Filesize of your Mambospace is: ' (for the english file)
into the class adminLanguage;
so if you have your own language, just copy this var into it and change the value, I use
$A_TOTAL_FILESIZE = 'Les fichiers de votre répertoire Mambo occupent au total ' for French language, in casse you want to use that ;-)

I'm sorry, can't upload the file here as I only have 50k quota and 30k are used up already, just was refused!
You will have to get it on my site (in downloads/mambo/hacks), or do it yourself as everything is explained above..

In case anyone could tell me: My DocMan 1.1 settings are "Registered Users: No" in the frontend ("If no, permits anonymous users to access files marked as owned by 'Everybody'") and this file IS set to Everybody, so I have no idea why you can't access the file if not registered/logged in!??
__________________
joe http://www.eyezberg.com - Flash News
eyezberg is offline   Reply With Quote
Old November 25th, 2004, 08:26   #4
alphanostrum
 
alphanostrum's Avatar
 
Join Date: Nov 2003
Location: Germany-Berlin
Posts: 1,120
alphanostrum is on a distinguished road
Default

hi eyezberg,
thanks for your arrangement!
greeting
alpha
__________________
macht mit beim day of Om!
alphanostrum is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 07:25.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.