[support] How I can show Total file upload space used by user on His Profile Page

mahesh143an at gmail.com mahesh143an at gmail.com
Fri Jul 29 08:44:04 UTC 2011


Where I can place that function and what are the arguments I need to pass  
for that. Now My profile page looks like this when i go to  
http://localhost/myproject/user/1 link.

admin's profile

View Edit Invitations Invitations OpenID identities Track Contact Signups

Member since
July 2011
Last login
Within the past half hour
Album image

There are 3 albums in total
There are 5 images in total
Slideshow

Groups:

Players
Sports

Blog
View recent blog entries

Newsletters

Manage my subscriptions
Current subscriptions
localhost newsletter, mahesh


Now for this I want to add the

Total Upload Space used :

Using that function how I can add that.I am fresher in drupal.
On , Liviu Nicolicioiu <liviu.nicolicioiu at epoint.ro> wrote:
> Check:


> http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_user/6


> ,


> with $op = 'view'





> And function:


> file_space_used








> On Fri, Jul 29, 2011 at 10:28 AM, mahesh143an at gmail.com> wrote:


> > Hi,


> > Hi I wanted to show the total file upload space used by the user on his


> > profile page,by using following query.


> > db_result(db_query("SELECT SUM(filesize) FROM {files} WHERE uid = %d",


> > $uid));


> > Which function I need to so the changes and add the field for this


> > result.Thanks in advance.


> > --


> > [ Drupal support list | http://lists.drupal.org/ ]


> >


> --


> [ Drupal support list | http://lists.drupal.org/ ]



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110729/e206df20/attachment.html 


More information about the support mailing list