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.
Check: http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_us... , with $op = 'view'
And function: file_space_used
On Fri, Jul 29, 2011 at 10:28 AM, mahesh143an@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/ ]
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@epoint.ro wrote:
Check:
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hook_us...
,
with $op = 'view'
And function:
file_space_used
On Fri, Jul 29, 2011 at 10:28 AM, mahesh143an@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/ ]