Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  nodelist  faq  

Sometimes a cigar is just a cigar. -- Sigmund Freud


rocksolid / Rocksolid Nodes Help / Removing domain in rslight footer

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

1
Subject: Removing domain in rslight footer
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Unconfigured rslight site
Date: Sun, 21 Mar 2021 02:52 UTC
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
View all headers
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


Subject: Re: Removing domain in rslight footer
From: Retro Guy
Newsgroups: rocksolid.nodes.help
Organization: Unconfigured rslight site
Date: Sun, 21 Mar 2021 02:56 UTC
References: 1
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
View all headers
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
rocksolid light 0.7.0
clearneti2ptor