🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #248467

Re: Q.: Dialog and X-Face display ... ?

#248467
From: Bernd Rose
Date: Wed, 25 Jan 2012 17:34
66 lines
3872 bytes
On Tue, 24 Jan 2012 12:42:50 -0600 VanguardLH wrote:

>>> ... Personally, I would like an option in Dialog to disable that public
>>> ego-stroking superfluous fluff.  In forums, I have the option to NOT
>>> show the avatar fluff.
>> 
>> In Dialog, you have the option to leave the header pane unexpanded. Is that
>> not good enough?
[...] 
> no, compressing (unexpanding) the header pane is not good enough.  I need
> it expanded which means I get stuck seeing the face icon.  No option JUST
> on the face icon to show/hide it.

You could set XFaceDrawStyle in settings.ini to an invalid number
(e.g. 9). This would hide the X-Face without changes to Dialog
itself or the messages. (Which are the two other possibilities of
hiding X-Face, that I am aware of. - See below.) The drawback of
this method is, that you need to avoid to click into the space,
where the X-Face would have been displayed. Any single mouse click
switches display mode to a valid one, which makes the X-Face images
visible, again.

The second method needs patching of Dialog. (Which I don't recommend
as long as other methods are available.) Inserting a line (with a
resource editor like Resource Hacker from Angus Johnson)

Visible = False

for the XFacePanel object in TFRM40TDMAIN should permanently switch 
off the Image control itself.

The third method changes the incoming messages. Just remove the
X-Face header before saving the message to the Dialog database. 
-> The following code is a stripped-down version of the general 
RemoveHeaders script by Hermann Hippen, which can be found here:

http://kh-rademacher.de/4d/remove_g1.html

;----------------------------<Snip>----------------------------------
program OnBeforeSavingMessage;
// *Remove X-Face from incoming messages*
// Code needs to be inserted in a newly created 
// or modified OnBeforeSaving Event Script

procedure OnBeforeSavingMessage(var Message: TStringlist; Servername: string; IsEmail: boolean);
var i : Integer;
begin
  i := 0;
  repeat
    if Pos('X-Face: ', Message[i]) = 1 Then
      repeat
        Message.delete(i); 
      until (Message[i][1] > ' ') or (Message[i] = '')   
    else
      i := i + 1;
  until Message[i] = '';
end;

begin
end.
;----------------------------<Snip>----------------------------------

As often: Many ways to achieve something in Dialog...  ;-)

HTH.
Bernd
Technical Details
Message-ID: <5mkwbkqbbnvm.dlg@b.rose.tmpbox.news.arcor.de>
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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.karotte.org!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <1ass3sozlgobe$.1ov5otwd4to98$.dlg@40tude.net> <1e4muey1ojn1a.dlg@justacineast.motzarella.org> <jfko1d$3kq$1@news.albasani.net> <16ihfjp1m3ml1$.16m1mn0g0z6u3.dlg@40tude.net> <jfmu3a$saf$1@news.albasani.net>

Show Full Headers
Complete Article Headers
Message-ID: <5mkwbkqbbnvm.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: Q.: Dialog and X-Face display ... ?
Date: Wed, 25 Jan 2012 18:34:05 +0100
From: Bernd Rose <b.rose.tmpbox@expires-2012-01-31.arcornews.de>
References: <1ass3sozlgobe$.1ov5otwd4to98$.dlg@40tude.net> <1e4muey1ojn1a.dlg@justacineast.motzarella.org> <jfko1d$3kq$1@news.albasani.net> <16ihfjp1m3ml1$.16m1mn0g0z6u3.dlg@40tude.net> <jfmu3a$saf$1@news.albasani.net>
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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!news2.arglkargh.de!news.karotte.org!uucp.gnuu.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (b67118fe.212.366)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 66
Organization: Arcor
NNTP-Posting-Date: 25 Jan 2012 18:35:20 CET
NNTP-Posting-Host: 311ae5be.newsspool4.arcor-online.net
X-Trace: DXC=Nm>X^IoO8Y3QbA1[CgMQ004IUK<Cl32<14Fo<]lROoR18kF<OcfhCO;
 o=8mWk?M7`319JlNQl`::91l3dCd:aB?300aV7=]10[2
X-Complaints-To: usenet-abuse@arcor.de
X-Original-Bytes: 3576