|
From: shane <sh...@lo...> - 2002-02-28 15:06:07
|
Regarding plugins:
----------------------
Q1:
The names of the directories are normally capitalized. Personally, I
consider this an annoyance. However, I'm
willing to go with the flow/standard, if this is how it was supposed to be?
I originally did not capitalize mine so that I could easily keep my own
different and easily found in that directory from the stock slash -
especially if I do a CVS update and a new stock plugin overwrites one that
I'm writing/messing with.
Q2:
once you do
sub new {
my($class, $user) = @_;
my $self = {};
my $slashdb = getCurrentDB();
my $plugins = $slashdb->getDescriptions('plugins');
return unless $plugins->{'Mypluginname'};
bless($self, $class);
$self->{virtual_user} = $user;
$self->sqlConnect();
&Date_Init();
return $self;
}
$slashdb is inherited into $self throughout the plugin, correct?
is there any case that it is not? (like coming from being called from
slashd through a task?)
Regarding templates:
----------------------
Q1:
Do we need to do 'USE Slash' anymore?
It was mentioned that we do not, that it's inherited now. However, in one
of my templates, I did a timecalc and it didn't seem to want to run w/o the
USE Slash at the top of the template.
Q2:
Is there any list/docs/guides to taking user input? (I looked at
slashcode.com/docs )
A few of my plugins take quite a bit of it. I want to make sure the plugins
are cross-scriptable, and all input is filtered appropriatly. Suggestions
appreciated.
Thanks,
Shane
|