🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #140803

Re: (Dialog) Multiple scripts on same event?

#140803
From: Gember Breuk
Date: Thu, 08 Jan 2004 03:42
68 lines
3090 bytes
On Thu, 08 Jan 2004 03:20:40 GMT, Stanton Delettre wrote:

> On Wed, 7 Jan 2004 22:15:14 -0500, Gember Breuk wrote:
> 
>> On Thu, 08 Jan 2004 02:50:10 GMT, Stanton Delettre wrote:
>> 
>>> How can I have more than one script on a single event?
>> 
>> Which scripts/event do you like? They can mostly be combined with some
>> care for more than one job.
> 
> Hide server name in groups list and shorten groups name in groups list.
> 
> http://40tude.com/dialog/wiki/index.php/ShortenGroupnames
> http://40tude.com/dialog/wiki/index.php/ScriptHideNGName


This script should do this both for you:

-------------------------------------------------------------------------
//Remove server names from group list
//(Optional) Shorten group names

program OnNewsgroupListPaint;

//"true" = short group names, "false" = long group names

const minimizegroupnames=true;

function
OnNewsgroupListPaint(PaintString:widestring;ColumnIndex:integer):widestring;
var i:integer;
    s:string;
begin
i:=pos(' (',paintstring);
if (i>0) and (copy(paintstring,1,6)<>'Inbox ') then
  begin
  s:=paintstring;
  delete(s,i,200);
  paintstring:=s;
  end;
if minimizegroupnames then
  begin
  i := pos('.', paintstring);
  s := '';
  while (i > 0) do
  begin
    s := s + copy(paintstring, 1, 1) + '.';
    paintstring := copy(paintstring, i+1, 1000);
    i := pos('.', paintstring);
  end;
  paintstring := s + paintstring;
  end;
result:=paintstring;
end;

begin
end.
-------------------------------------------------------------------------

> 
> Or is there a way to change the group's names manually?

I don't know a script made to do just that, so it seems that
"ShortenGroupnames" is a good start to make one I think.

-- 
Gem
Technical Details
Message-ID: <9r0150fo4e3c$.dlg@aosrr.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!newsfeeder.scarlet-internet.nl!newsfeed-in.scarlet-internet.nl!borium.box.nl!fu-berlin.de!uni-berlin.de!alb-24-195-70-1.nycap.rr.COM!not-for-mail
References: <os22e6ffdma0$.dlg@d7astareqa5us6e.edu> <14x1f5ntt03lb.dlg@aosrr.com> <k3344gawb2ox.dlg@d7astareqa5us6e.edu>

Show Full Headers
Complete Article Headers
Message-ID: <9r0150fo4e3c$.dlg@aosrr.com>
Subject: Re: (Dialog) Multiple scripts on same event?
Date: Wed, 7 Jan 2004 22:42:16 -0500
From: Gember Breuk <me2@privacy.net>
References: <os22e6ffdma0$.dlg@d7astareqa5us6e.edu> <14x1f5ntt03lb.dlg@aosrr.com> <k3344gawb2ox.dlg@d7astareqa5us6e.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!newsfeeder.scarlet-internet.nl!newsfeed-in.scarlet-internet.nl!borium.box.nl!fu-berlin.de!uni-berlin.de!alb-24-195-70-1.nycap.rr.COM!not-for-mail
Newsgroups: news.software.readers
Lines: 68
NNTP-Posting-Host: alb-24-195-70-1.nycap.rr.com (24.195.70.1)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1073533334 8086062 24.195.70.1 ([86162])
User-Agent: 40tude_Dialog/2.0.10.1/SuSE 9(Wine)
Archive: no
X-No-Archive: yes