Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > CSDb Feedback > A minimalistic CSDb style for Stylish
2017-02-08 12:51
jailbird

Registered: Dec 2001
Posts: 1576
A minimalistic CSDb style for Stylish

I couldn't sleep last night so I decided to restyle CSDb a bit, maybe some of you will find it useful.

Since the HTML is not semantic at all, and it was a real pain in the ass to make it work, I am pretty sure it's full of shit, so feel free to improve/change it.

Oh, and it works only when you're logged in.

Get it from https://github.com/csisztaiarnold/csdb_stylish

Preview on YouTube: https://www.youtube.com/watch?v=mLMcTCREKf8
 
... 25 posts hidden. Click here to view all posts....
 
2017-02-21 00:00
jailbird

Registered: Dec 2001
Posts: 1576
WTF, I'd never thought I'd communicate, nevertheless to agree with Rayden, but yeah.

My current shit is somewhat bareable. It is better, but it IS... shit.

As is CSDb.

Do better
2017-02-21 00:03
jailbird

Registered: Dec 2001
Posts: 1576
BTW a single class on the <body> depending on the first URI segment would help ALFULLY a lot! Perffffff pls!
2017-02-21 00:13
jailbird

Registered: Dec 2001
Posts: 1576
Plus another update :

- it looks better (except the PM, but who uses that anyway)
- votes look better:



And similar small improvement stuff but I have to pee and sleep
2017-02-21 06:59
chatGPZ

Registered: Dec 2001
Posts: 11100
Quote:
But seriously: if (part) of the source code would be made available (f.e. in a repository) there should be imho enough people willing to help switching to a more semantic approach.

after looking at the code myself, i dare to say that those who look at it only want to do one thing: delete it all.
2017-02-21 07:41
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: Quote:
But seriously: if (part) of the source code would be made available (f.e. in a repository) there should be imho enough people willing to help switching to a more semantic approach.

after looking at the code myself, i dare to say that those who look at it only want to do one thing: delete it all.


That is indeed usually the case when it comes to bad code. The only viable approach would be to expose the content of the database as an API imo (since giving the full database exposes private messages between persons etc).

Another approach is of course to gut out everything personal from the database and keep it a pure tracking of releases (i.e. remove PMs, forum, user comments) then make everything public domain with public read only access. Read write access for selected trusted implementors.
2017-02-21 07:45
chatGPZ

Registered: Dec 2001
Posts: 11100
even the db itself needs a serious rework / restructuring.

think of the C code you wrote 20 years ago. its that bad.
2017-02-21 08:56
Peacemaker

Registered: Sep 2004
Posts: 243
Jailbird: Looking good. If you it could only beeing applied by inserting your .css why, not? :D
2017-02-21 09:26
CreaMD

Registered: Dec 2001
Posts: 3034
Quote: BTW a single class on the <body> depending on the first URI segment would help ALFULLY a lot! Perffffff pls!

Jb, contact Perff directly, that should be a simple and straightforward task for him.

Other way, parse url with js, add body class dynamically with js. (using js not possible, right?)

roman
2017-02-21 09:35
Perff
Administrator

Posts: 1665
Nice things I see people are saying about my old code here! ;)
But, yes it IS bad. :/

@Jailbird: Let me know what you like me to do (didn't get it from your comment), and I'll look at it. :)
2017-02-21 09:38
chatGPZ

Registered: Dec 2001
Posts: 11100
I'd say exactly the same about my own code from 20 years ago. Horrible =)
Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Hexhog
Scooby/G★P/Light
celticdesign/G★P/M..
csio/monarchy c+4
Weasel/Padua/Hitmen/..
Alakran_64
CA$H/TRiAD
Dymo/G★P
Higgie/Kraze/Onslaught
Guests online: 109
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.057 sec.