Skip to Content.
Sympa Menu

en - Re: [sympa-users] Customising subscription confirmation requests and other questions

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Mark Valiukas <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Customising subscription confirmation requests and other questions
  • Date: Fri, 06 Feb 2004 10:06:40 +1100

Chris Hastie wrote:

but I don't see where I need to make changes to get my new
auth_subscription.tpl to be editable from the web interface. Perhaps I
should keep it simple for now and forget about such niceties until the
planned move to templates.

A couple of places - may not be complete, but should
give you a start. This is based on what ships with
3.4.4.3

from wwslib.pm
======begin excerpt======
## Filenames with corresponding entry in NLS set 15
%filenames = ('welcome.tpl' => 1,
'bye.tpl' => 2,
'removed.tpl'=> 3,
'message.footer' => 4,
'message.header' => 5,
'remind.tpl' => 6,
'reject.tpl' => 7,
'invite.tpl' => 8,
'helpfile.tpl' => 9,
'lists.tpl' => 10,
'global_remind.tpl' => 11,
'summary.tpl' => 12,
'info' => 13,
'homepage' => 14,
'create_list_request.tpl' => 15,
'list_created.tpl' => 16,
'your_infected_msg.tpl' => 17,
'list_aliases.tpl' => 18
);
======end excerpt======
add it to this list...


from wwsympa.fcgi
=====begin excerpt=======
## Messages edition
foreach my $f
('info','homepage','welcome.tpl','bye.tpl','removed.tpl','message.footer'
,'message.header','remind.tpl','invite.tpl','reject.tpl') {
next unless ($list->may_edit($f, $param->{'user'}{'email'}) eq
'write');
$param->{'files'}{$f}{'complete'} = Msg(15, $wwslib::filenames{$f},
$f);
$param->{'files'}{$f}{'selected'} = '';
}

.
.
.
## Lists Default files
foreach my $f
('welcome.tpl','bye.tpl','removed.tpl','message.footer','message.header',
'remind.tpl','invite.tpl','reject.tpl','your_infected_msg.tpl') {
$param->{'lists_default_files'}{$f}{'complete'} = Msg(15,
$wwslib::filenames{$f}, $
f);
$param->{'lists_default_files'}{$f}{'selected'} = '';
}

=====end excerpt=========
Add it in among the other template and file names,
and you should the be able to edit it through the
web interface - unless I've missed something else.
I had this working for some hacks I'm working on,
before I took a different approach. I was pleasantly
surprised by how easy it was to add another file
to the editable list.



--
Mark Valiukas
Systems Programmer
ITS Networks and Computing Branch
Victoria University of Technology



Archive powered by MHonArc 2.6.19+.

Top of Page