Gossamer Forum
Quote Reply
user space used
I'm aware that I might be posting this in the wrong forum, but I'm not geting any help any where else. Well this is some how related to GLink. I would like a global to show the percentage of space used in gmail once users login from GC.

This is what I have so far, can sombody please point me in the right directions.

sub {
my $gmail_id = shift;
my $db = GT::SQL->new("path/to/cgi-bin/mail/data/admin/defs");
my $count = $db->table('users')->count( {
userid => $gmail_id,
users_space_used => 1,
return $count;

I'm calling it with <%space_used($app_gmail_userid)%>

This global is just giving me a (0)

Last edited by:

goman: Oct 20, 2005, 8:24 AM
Quote Reply
Re: [goman] user space used In reply to

If you use <%app_gmail_userid%>, what does it show you?


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] user space used In reply to
Using <%app_gmail_userid%>, is returning the user id not the percentage of space used.