Gossamer Forum
Quote Reply
Get COmmunity username
Hi,

I am trying us fetch the Community username (comm_username) based on the Forum ID using a global.

I used the following based on username in Links - can anyone help re-writing this so I get the username based on ID.

Code:
sub {
my $user = shift;
return unless $user;
my $cfg = Links::Plugins->get_plugin_user_cfg('Auth_Community');
lib->import($cfg->{community_private} . '/lib');
require Community;
Community->import(qw/comm_init comm_get_profile/);
comm_init($cfg->{community_private});
return comm_get_profile($user);
}

Any help would be appreciated

Klaus

http://www.ameinfo.com
Subject Author Views Date
Thread Get COmmunity username klauslovgreen 1990 Apr 16, 2003, 6:43 AM
Thread Re: [klauslovgreen] Get COmmunity username
Alex 1929 Apr 16, 2003, 12:23 PM
Post Re: [Alex] Get COmmunity username
klauslovgreen 1917 Apr 16, 2003, 12:43 PM