Rocksolid Light

Welcome to RetroBBS

mail  files  register  nodelist  faq  login

The man who has never been flogged has never been taught. -- Menander


rocksolid / Programming / Re: rslight modding thread

SubjectAuthor
* rslight modding threadanonymous
+* Re: rslight modding threadRetro Guy
|`* Re: rslight modding threadRetro Guy
| `* Re: rslight modding threadanon
|  `* Re: rslight modding threadRetro Guy
|   `- Re: rslight modding threadanon
+* a bigger text box for postingAnonymous
|`- Re: a bigger text box for postingRetro Guy
+* i agree it is the right way to do it in the cssAnonymous
|`- Re: i agree it is the right way to do it in the cssRetro Guy
+- and this is how it looksAnonymous
`- this is how it looked beforeAnonymous

1
Subject: rslight modding thread
From: anonymous
Newsgroups: rocksolid.programming
Organization: def2
Date: Sun, 17 May 2020 18:09 UTC
Path: i2pn2.org!.POSTED!not-for-mail
From: anonymous@anon.com (anonymous)
Newsgroups: rocksolid.programming
Subject: rslight modding thread
Date: Sun, 17 May 2020 18:09 UTC
Organization: def2
Message-ID: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="17453"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Rslight-Site: $2y$10$WzhPUhM4MvwSrk6EhpQsyOpuOx1aoc59CfqZ2QglYBNWGYTKFX20a
View all headers
this thread is dedicated to all the mods and hacks i have been doing and will do on the innocent source code of rslight, which is the easiest way to run a news server yet.

Mod "automatic redirect after posting":

insert
<meta http-equiv="refresh" content="0;url=<?php echo $file_thread.'?group='.urlencode($returngroup[0]).'"' ?>
in line 191 in post.php
--
Posted on def2
z5bqfv5v75kxy7pj.onion


Subject: Re: rslight modding thread
From: Retro Guy
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Tue, 19 May 2020 00:08 UTC
References: 1
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: rslight modding thread
Date: Tue, 19 May 2020 00:08 UTC
Organization: Rocksolid Light
Message-ID: <09681b853c4b9e3ba44fb6d514ba0b0e$1@news.novabbs.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
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="9235"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$UcwXBL4acWGnKY6tH3euAOjXBcZm9w0euVeizdZusG4rOLna5VDNS
View all headers
anonymous wrote:

this thread is dedicated to all the mods and hacks i have been doing and will do on the innocent source code of rslight, which is the easiest way to run a news server yet.

Mod "automatic redirect after posting":

insert
<meta http-equiv="refresh" content="0;url=<?php echo $file_thread.'?group='.urlencode($returngroup[0]).'"' ?>
in line 191 in post.php

I will add this as an option in config for the next release of rslight. Thanks for the mod!

Retro Guy

--
Posted on: Rocksolid Light
news.novabbs.com


Subject: Re: rslight modding thread
From: Retro Guy
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Wed, 20 May 2020 04:38 UTC
References: 1 2
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: rslight modding thread
Date: Wed, 20 May 2020 04:38 UTC
Organization: Rocksolid Light
Message-ID: <97c6bb4111eaabfd8ce7af7f128654ee$1@news.novabbs.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion> <09681b853c4b9e3ba44fb6d514ba0b0e$1@news.novabbs.com>
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="11599"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$WvTWM9FpAOJofPDO8d8NI.uZPBDwExgYMAjUtJqHDzsnHhQ4wuhVa
View all headers
Retro Guy wrote:

anonymous wrote:

this thread is dedicated to all the mods and hacks i have been doing and will do on the innocent source code of rslight, which is the easiest way to run a news server yet.

Mod "automatic redirect after posting":

insert
<meta http-equiv="refresh" content="0;url=<?php echo $file_thread.'?group='.urlencode($returngroup[0]).'"' ?>
in line 191 in post.php

I will add this as an option in config for the next release of rslight.

Thanks for the mod!

This mod has now been added for release 0.6.5d. It is configurable from the main config file.

Thanks again!

Retro Guy


--
Posted on: Rocksolid Light
news.novabbs.com


Subject: Re: rslight modding thread
From: anon
Newsgroups: rocksolid.programming
Organization: def5
Date: Wed, 20 May 2020 23:07 UTC
References: 1
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <711f07be6f6f4c8b62e9d5b05d8d2c49@def4>
Subject: Re: rslight modding thread
Date: Wed, 20 May 2020 23:07:06+0000
Organization: def5
In-Reply-To: <97c6bb4111eaabfd8ce7af7f128654ee$1@news.novabbs.com>
References: <97c6bb4111eaabfd8ce7af7f128654ee$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

why, thanks for this nice piece of software. i think you are very close to the stage where this is really plug'n'play (or maybe you are already there, i have to try the d version as well).
and for a newsserver, this really says something: i can well remember the countless hours i have spent trying to understand some weirdass doumentation from decades ago and screening logfiles for the installation and maintenance of inn2. all this will not be necessary anymore for new admins if they use rslight.
so this also increases the chance of ppl opening new nodes.
although in terms of redundancy we should be pretty well setup by now, huh ?
i mean, even if all of our servers would be permanently out for some reason, you could still rebuild everything using just one of the news servers carrying the groups (maybe except /test, i don't know if any server has really _all_ the groups).

Posted on def4


Subject: Re: rslight modding thread
From: Retro Guy
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Thu, 21 May 2020 08:41 UTC
References: 1 2
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: rslight modding thread
Date: Thu, 21 May 2020 08:41 UTC
Organization: Rocksolid Light
Message-ID: <38f07094fc7eef95573a0abc103a87b9$1@news.novabbs.com>
References: <97c6bb4111eaabfd8ce7af7f128654ee$1@news.novabbs.com> <711f07be6f6f4c8b62e9d5b05d8d2c49@def4>
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="16139"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$WVjAfImNGnFMRDC/SeqhQurNJfV/XSJQ1J9JzbiEF0G9TxH3STRWa
View all headers
anon wrote:


why, thanks for this nice piece of software. i think you are very close to the stage where this is really plug'n'play (or maybe you are already there, i have to try the d version as well).
and for a newsserver, this really says something: i can well remember the countless hours i have spent trying to understand some weirdass doumentation from decades ago and screening logfiles for the installation and maintenance of inn2. all this will not be necessary anymore for new admins if they use rslight.
so this also increases the chance of ppl opening new nodes.

Thank you for the kind words. Once thing I want to do eventually is to create a Debian package for it, making it as simple as possible to install. This won't be soon, but it is something I'd like to do eventually.

although in terms of redundancy we should be pretty well setup by now, huh ?
i mean, even if all of our servers would be permanently out for some reason, you could still rebuild everything using just one of the news servers carrying the groups (maybe except /test, i don't know if any server has really _all_ the groups).

I think the idea of permanenly losing messages in rocksolid.* is very slim at this point. I do maintain one separate backup (rocksolid0) who's only purpose is to keep an archive of the groups. It does nothing else. Of course the more newsservers that carry the hierarchy, the more redundancy. rslight, being a newsserver, can easily be used to repopulate another site that may have been lost. Much easier than applying a backup or export of forum software, you just connect to rslight and grab all the messages.

Quick question: Do we want a copy of the nntp server as a standalone? Right now it's a bit tied in to rslight, but that can be changed. Would this be of benefit? If so, it would take a bit of work, but it might be useful for other interfaces without the need to tie in so much of rslight.

Retro Guy



--
Posted on: Rocksolid Light
news.novabbs.com


Subject: Re: rslight modding thread
From: anon
Newsgroups: rocksolid.programming
Organization: def5
Date: Thu, 21 May 2020 18:46 UTC
References: 1
Path: i2pn2.org!rocksolid2!def5!POSTED.localhost!not-for-mail
From: anon@anon.com (anon)
Newsgroups: rocksolid.programming
Message-ID: <d55ce32225032c492564a508fd10d26f@def4>
Subject: Re: rslight modding thread
Date: Thu, 21 May 2020 18:46:59+0000
Organization: def5
In-Reply-To: <38f07094fc7eef95573a0abc103a87b9$1@news.novabbs.com>
References: <38f07094fc7eef95573a0abc103a87b9$1@news.novabbs.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
View all headers

Once thing I want to do eventually is to create a Debian package for it, making it as simple as possible to install.

That would be super easy for all debians. Is that complex to do ? I never did the exercise myself.

Quick question: Do we want a copy of the nntp server as a standalone?

Right now I have no need for this, because I plan to keep rslight running on the tor side, and vichan on the same machine just for the i2p side.

Posted on def4


Subject: a bigger text box for posting
From: Anonymous
Newsgroups: rocksolid.programming
Organization: i2pn2 (i2pn.org)
Date: Mon, 1 Jun 2020 18:25 UTC
References: 1
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: a bigger text box for posting
Date: Mon, 01 Jun 2020 11:25:33 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.108.3sieu9@anon.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
Content-Type: text/plain; charset=UTF-8
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="12827"; mail-complaints-to="usenet@i2pn2.org"
View all headers
replace line 342 in post.php with

<textarea class="postbody" id="postbody" name="<?php echo md5($fieldencrypt."body")?>" style="width:650px;height:190px;" wrap="soft"><?php
Posted on def2.i2p


Subject: Re: a bigger text box for posting
From: Retro Guy
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Mon, 1 Jun 2020 22:53 UTC
References: 1 2
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: a bigger text box for posting
Date: Mon, 1 Jun 2020 22:53 UTC
Organization: Rocksolid Light
Message-ID: <5b247d9045be520b1811312ade0cd627$1@www.novabbs.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion> <code.108.3sieu9@anon.com>
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="15868"; mail-complaints-to="usenet@i2pn2.org"
User-Agent: Rocksolid Light (news.novabbs.com/getrslight)
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$sgDFrEmJ/fCXwTaCqDbawOC2/D7nHNwUEZzFuhV6vajOM2D7tYob2
View all headers
Anonymous wrote:

replace line 342 in post.php with

<textarea class="postbody" id="postbody" name="<?php echo md5($fieldencrypt."body")?>" style="width:650px;height:190px;" wrap="soft"><?php

The box size is set in css (style.css):

textarea.postbody {
  background-color: var(--color-medium);
  border: none;
  color: var(--color-title);
  height: calc(1em * 1.5 * 20);
  width: calc(1em * 1.5 * 40);
}

And for mobile:

textarea.postbody {
  height: calc(1em *1.5 * 10);
  width: 100%;
}

Might be best to make the change there as rslight is (tries to be) responsive.

Retro Guy



--
Posted on: Rocksolid Light
www.novabbs.com


Subject: i agree it is the right way to do it in the css
From: Anonymous
Newsgroups: rocksolid.programming
Organization: i2pn2 (i2pn.org)
Date: Tue, 2 Jun 2020 07:57 UTC
References: 1
Attachments: unnamed (image/jpeg)
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: i agree it is the right way to do it in the css
Date: Tue, 02 Jun 2020 00:57:49 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.111.2l5835@anon.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=6a522a00c1822792b7c6956f9333e3074aa9a25c
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="8579"; mail-complaints-to="usenet@i2pn2.org"
View all headers
guess i just have an outdated version, because putting these parameters gives a strange result (see pic). never mind the actual dimensions (i played around with these), but any change is for all elements.


Attachments: unnamed 
Subject: and this is how it looks
From: Anonymous
Newsgroups: rocksolid.programming
Organization: i2pn2 (i2pn.org)
Date: Tue, 2 Jun 2020 08:00 UTC
References: 1
Attachments: unnamed (image/jpeg)
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: and this is how it looks
Date: Tue, 02 Jun 2020 01:00:02 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.113.4c5lnj@anon.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=4fbb3b4ebd1c1f97beb1e199fc18ef793873150f
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="8713"; mail-complaints-to="usenet@i2pn2.org"
View all headers
after my mod in post.php (which is kind of crude, i will admit).


Attachments: unnamed 
Subject: this is how it looked before
From: Anonymous
Newsgroups: rocksolid.programming
Organization: i2pn2 (i2pn.org)
Date: Tue, 2 Jun 2020 07:59 UTC
References: 1
Attachments: unnamed (image/jpeg)
Path: i2pn2.org!.POSTED!not-for-mail
From: poster@anon.com (Anonymous)
Newsgroups: rocksolid.programming
Subject: this is how it looked before
Date: Tue, 02 Jun 2020 00:59:13 -0700
Organization: i2pn2 (i2pn.org)
Message-ID: <code.112.3jaylj@anon.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary=657e8432f119463b382a66795755fd4d56973cf2
Injection-Info: i2pn2.org; posting-account="def2";
logging-data="8713"; mail-complaints-to="usenet@i2pn2.org"
View all headers
i mean before i changed any code.


Attachments: unnamed 
Subject: Re: i agree it is the right way to do it in the css
From: Retro Guy
Newsgroups: rocksolid.programming
Organization: Rocksolid Light
Date: Tue, 2 Jun 2020 23:00 UTC
References: 1 2
Attachments: css-mod.png (image/png)
Path: i2pn2.org!.POSTED!not-for-mail
From: Retro Guy@rslight.i2p (Retro Guy)
Newsgroups: rocksolid.programming
Subject: Re: i agree it is the right way to do it in the css
Date: Tue, 2 Jun 2020 23:00 UTC
Organization: Rocksolid Light
Message-ID: <ea475adbd125de2ab25abe1f1f6a1d89$1@www.novabbs.com>
References: <aebd2f4b52b68e34ebda2ff0084132af$1@z5bqfv5v75kxy7pj.onion> <code.111.2l5835@anon.com>
Mime-Version: 1.0
Content-Type: multipart/mixed;boundary="------------5ed6da1752aa93.56576476"
Injection-Info: i2pn2.org; posting-account="retrobbs1";
logging-data="30747"; mail-complaints-to="usenet@i2pn2.org"
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs.com
X-Rslight-Site: $2y$10$e23n6.MF2ktD.XSkySx81eUEsAEn4bgjicp0q.z5ylEWZYzEZdqPu
View all headers
Anonymous wrote:

guess i just have an outdated version, because putting these parameters gives a strange result (see pic). never mind the actual dimensions (i played around with these), but any change is for all elements.

I'll add style.css to the rslight download dir, which maybe should have been in the 0.6.5d upgrade.

You may wish to compare with what you have. BTW the last number in the calc lines is meant to be number of characters in the css:

textarea.postbody {
  background-color: var(--color-medium);
  border: none;
  color: var(--color-title);
  height: calc(1em * 1.5 * 20);
  width: calc(1em * 1.5 * 40);
}

When I changed it to this on a test site, I get the result (attached):

textarea.postbody {
  background-color: var(--color-medium);
  border: none;
  color: var(--color-title);
  height: calc(1em * 1.5 * 20);
  width: calc(1em * 1.5 * 60);
}

Retro Guy




Attachments: css-mod.png 
1
rocksolid light 0.7.2
clearneti2ptor