Article View: rocksolid.nodes.announce
Article #512Re: RSLight - Thread layout for Overboard
From: SugarBug
Date: Fri, 26 Apr 2024 22:14
Date: Fri, 26 Apr 2024 22:14
66 lines
6910 bytes
6910 bytes
On Fri, 26 Apr 2024 14:52:13 +0000 Retro Guy <retroguy@novabbs.com> wrote: > SugarBug wrote: > > > On Fri, 26 Apr 2024 12:18:08 +0000 > > Retro Guy <retroguy@novabbs.com> wrote: > > >> Retro Guy wrote: > >> > >> > Retro Guy wrote: > >> > >> >> I've been experimenting with an option in overboard to display recent articles by thread. > >> > >> >> I did this in the past, but it wasn't so great, so trying again. I'm still testing, but if you want to take a look, it's running on www.novabbs.org now: > >> >> https://news.novabbs.org/computers/overboard.php?thisgroup=news.software.nntp > >> > >> >> The thread vs. flat display will be a toggle in overrides.inc.php (with a default, of course) > >> > >> >> I'm still testing, so no commit yet. > >> > >> > I've improved the sorting, removed duplicate display of article that starts a thread, and added a toggle to display 'Thread' or 'Article' view. The toggle will remain with your session, and if you are logged in, will become your default view. > >> > >> > Hopefully, I can add a commit later today or tomorrow. I'm still trying to find bugs, but I'm sure once I commit I'll start to find them all :) > >> > >> Well, I got sorting sorted. HAHHAHAHA! (Yes, I'm all alone in a room and may have lost my mind) > >> > >> Anyway, I have pushed a commit for the new overboard. If you don't create a default in overrides,inc.php, it will default to the original flat articles view. There is a toggle (radio buttons) on the overboard for a user to change that, and it will remain changed for that user. > >> > >> -- > >> Retro Guy > > > Suggestion: place an interface button for each of the different views, with the option for admin to set one as default or even hide this that or the other. > > > Perhaps something like this would make sense: OVERBOARD | THREADED | SINGLE | FUTURE? > > > This would allow you to separate all views into separate PHP template files going forward. > > I'm trying to grasp what you mean. Currently, the user can choose between 'Articles' (flat), or 'Threads'. Once they choose, it sticks to their Session, and if logged in, is written to their config. I sent the message before I looked at your demo site. I didn't realize you already implemented the radio buttons until after I sent the first message. > overrides.inc.php contains a setting to choose the default view for the site. > > I think you're adding the ability to remove an option from the choices on the overboard (radio buttons). Is that what you mean? Yes, I was thinking that the views would show up as buttons like the former 'overboard' button. I just fired off my message before I saw the changes were already being demonstrated. > For different 'templates', each view is a separate function in overboard.php. I had to make one change to style.css (remove forcing date to the left), but other than that, the functions use the same stylesheet. > > What, if anything, am I missing? (re-reading): Do you mean different overboard buttons? That might be messy as there are at least three ways to get to the overboard. No, I was thinking buttons for each view you were proposing, and like you said earlier the ability for admin to hide any of them. But I already see you did the radio button control, which is basically the same thing in one control. I can probably use CSS display:none and visibility:hidden to hide controls at the theme level if that creates too much noise in the config files. When playing with theme ideas I noticed duplicate class names for elements in the same table row. In each table row, the class names of table elements repeat for the username and datebox elements. It would be much better for styling if the class names for each element were unique. For example, class='datebox_left', class='datebox_right', class='article_title', class=author_left', class='author_right', class='total_replies', etc. You can even leave the current class names in place as is, and add extra unique class names to the html output, so that they can be styled individually or as a unit. Keeping the old classes and adding new uniques alongside them would prevent breaking backward compatibility of themes. Also I notice that when building the tables that each table row has alternating class names, 'np_thread_line1', 'np_thread_line2' and each of these class names is re-used in its same row. Something like 'np_thread_line_left_1', 'np_thread_line_center_1', 'np_thread_line_right_1' would make styling with CSS much easier. I think I need to separate header.inc and body html generation files then run search and replace on them and probably avoid 90% of the hand editing. Basically the idea so that every element in a table row will have at least one class name that is unique or repeated in that row--and so that no class names used in the header and footer appear in the document body, or also the header and footer elements each have a unique class name so elements can be targeted individually there without much fuss. This allows a lot of cool CSS tricks for themes and responsive layout magic without having to resort to endless :nth-child() and selector strangeness. It would also make it much easier to use multiple web fonts with CSS to change fonts on selected elements in a theme. In my new theme I actually want to use two different fonts for table data elements that have the same class names. Since I am working on a theme maybe I should send a patch for the php files showing what I mean regarding class names. I'm still wrapping my head around it so I'll check back in when I get time to dig in and finish the theme and test the changes before making a patch. -- www.sybershock.com | sci.crypt | alt.sources.crypto | alt.lite.bulb
Technical Details
Message-ID:
<e0eff98ac18b6a9abc7d218f6e66e6a6$1@sybershock.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<4db039a6015e6a7fece7506639cb5fb9@www.rocksolidbbs.com> <1b8c35def60c1b062c71e1f8ff6072c0@www.rocksolidbbs.com> <22a05f3902ca813be81d25e681a96bfa@www.rocksolidbbs.com> <1a68fb81d32ab6c32d324ba597a197e6$1@sybershock.com> <1b943eaa1aefaa6b658fcc0b500c94f4@www.rocksolidbbs.com>Show Full Headers
Complete Article Headers
Message-ID: <e0eff98ac18b6a9abc7d218f6e66e6a6$1@sybershock.com> Subject: Re: RSLight - Thread layout for Overboard Date: Fri, 26 Apr 2024 17:14:06 -0500 From: SugarBug <3883@sugar.bug> References: <4db039a6015e6a7fece7506639cb5fb9@www.rocksolidbbs.com> <1b8c35def60c1b062c71e1f8ff6072c0@www.rocksolidbbs.com> <22a05f3902ca813be81d25e681a96bfa@www.rocksolidbbs.com> <1a68fb81d32ab6c32d324ba597a197e6$1@sybershock.com> <1b943eaa1aefaa6b658fcc0b500c94f4@www.rocksolidbbs.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Newsgroups: rocksolid.nodes.announce Organization: Baggy Jeans Mafia (sybershock.com) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: i2pn2.org; logging-data="2468602"; mail-complaints-to="usenet@i2pn2.org"; posting-account="yZybWhCr+jI4C3MuGpPde+DhCwsjQrVZrsCOigcx7fM"; X-Spam-Checker-Version: SpamAssassin 4.0.0