Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Simplicity does not precede complexity, but follows it.


computers / rocksolid.nodes.help / Removing domain in rslight footer

SubjectAuthor
* Removing domain in rslight footerRetro Guy
`- Removing domain in rslight footerRetro Guy

1
Removing domain in rslight footer

<41067082e9fb0dc3cddde539a804d4c7$1@192.168.0.230>

 copy mid

https://novabbs.com/computers/article-flat.php?id=147&group=rocksolid.nodes.help#147

 copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro...@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Removing domain in rslight footer
Date: Sun, 21 Mar 2021 02:52:29 +0000
Organization: Unconfigured rslight site
Message-ID: <41067082e9fb0dc3cddde539a804d4c7$1@192.168.0.230>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="16968"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$c0Gh4Jo36ReSSgNlerCB6uIPl7KU8N0IPkZSYcO0DKLL5E.HQ5Hjm
 by: Retro Guy - Sun, 21 Mar 2021 02:52 UTC

I've made a change in post.inc.php to allow showing a footer with or without the domain.

The new file will go up on github in a bit, but here's the change with line numbers:

265 if ((isset($CONFIG['postfooter'])) && ($CONFIG['postfooter']!="")) {
266 $postfooter = preg_replace('/{DOMAIN}/', "n".$_SERVER['HTTP_HOST'], $CONFIG['postfooter']);
267 $body.="n-- n".$postfooter;
268 }

So, to show the domain, place {DOMAIN} in $_CONFIG['postfooter'] at the end (in rslight.inc.php), like:

'postfooter' => 'Posted on My Awesome Site{DOMAIN}',

If this is there, the domain will show. Without it, no domain in footer.

Retro Guy
--
Unconfigured rslight site

Re: Removing domain in rslight footer

<a6dd82ae8e8ee029bf2c30e6a4704495$1@192.168.0.230>

 copy mid

https://novabbs.com/computers/article-flat.php?id=148&group=rocksolid.nodes.help#148

 copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro...@novabbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: Removing domain in rslight footer
Date: Sun, 21 Mar 2021 02:56:32 +0000
Organization: Unconfigured rslight site
Message-ID: <a6dd82ae8e8ee029bf2c30e6a4704495$1@192.168.0.230>
References: <41067082e9fb0dc3cddde539a804d4c7$1@192.168.0.230>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="17798"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$eVUBZ16CKS6Kiqx33pfbruszA5uvzlr8Aek/NQhIdh44cTQn.O7da
 by: Retro Guy - Sun, 21 Mar 2021 02:56 UTC

Retro Guy wrote:

> I've made a change in post.inc.php to allow showing a footer with or without the domain.

> The new file will go up on github in a bit, but here's the change with line numbers:

> 265 if ((isset($CONFIG['postfooter'])) && ($CONFIG['postfooter']!="")) {
> 266 $postfooter = preg_replace('/{DOMAIN}/', "n".$_SERVER['HTTP_HOST'], $CONFIG['postfooter']);
> 267 $body.="n-- n".$postfooter;
> 268 }

> So, to show the domain, place {DOMAIN} in $_CONFIG['postfooter'] at the end (in rslight.inc.php), like:

> 'postfooter' => 'Posted on My Awesome Site{DOMAIN}',

> If this is there, the domain will show. Without it, no domain in footer.

Note: Backslashes got stripped when posting this. You'll need a backslash before the "n" for newlines in three places in the above code. One in line 266 and two in line 267.

Retro Guy
--
Unconfigured rslight site

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor