Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  login

"I will make no bargains with terrorist hardware." -- Peter da Silva


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

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

1
Removing domain in rslight footer
  rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@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
Xref: rslight2 rocksolid.nodes.help:147
 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
  rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retroguy@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
Xref: rslight2 rocksolid.nodes.help:148
 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.1
clearnet tor