Gossamer Forum
Home : Products : Others : Gossamer Community :

Loading $USER in GComm?

Quote Reply
Loading $USER in GComm?
Hi guys. I've been trying to get the equivelant of $USER (in LSQL) to work in GCommunity. I have;

Code:
use strict;
use GT::Base;
use GT::Plugins qw/STOP CONTINUE/;
use Community qw/$CFG $IN $DB/;

# Inherit from base class for debug and error methods
@Plugins::Community::SupportManager::ISA = qw(GT::Base);

Community::comm_init($CFG->{'path_private'});


... but that still doesn't seem to load the user options. How do I grab details such as <%current_username%> and such?

TIA

Andy (mod)
andy@ultranerds.co.uk
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] Loading $USER in GComm? In reply to
Andy,

I don't know if this is any help or whether it may lead you in the right direction but this was a subject where I was trying to figure out from the GComm user whether they where editor or not (but in conjunction with LinksSQL). There maybe something discussed there that helps you out :

http://www.gossamer-threads.com/...i?post=272704#272704

John
Significant Media
Quote Reply
Re: [Jag] Loading $USER in GComm? In reply to
Thanks for the reply. Unfortunatly it doesn't help Frown

Basically, the current user is normally set in $USER. I tried doing this in GCommunity, but I guess they use a different method. Maybe I'd better start routing around the core files, and see how GT do it <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk
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] Loading $USER in GComm? In reply to
Yes,
somehow I didn't think that it was today that I was going to teach my favorite coder something. But don't worry the day will come Wink

Have a nice week-end ! Smile

John
Significant Media