Categories
uncategorized

new suhweet-ass mars s.t.s. code will spank you and steal your momma for a cop-car joyride downtown

PHP rocks.

i’m making a thing right now where, instead of having to edit any files whatsoever when adding a new skin to the mars s.t.s., the system itself will figure out the new names and files and directories and take care of (hopefully) absolutely everything for you, behind the scenes.

how it works:
it reads the contents of the CSS directory, strips off the extension (the whole thing… BOTH extensions! – i end the dynamic CSS files with .css.php), and lists the remaining strings in an array, which can then be looped until the proper HTML code is spun out. and v.v.soon i will rename all the CSS files so that they’ll have underscores that i can strip out and replace with spaces… so that on the viewable surface, the proper names of the skins will actually look pretty. i.e., ‘touristbureau’ becomes ‘tourist_bureau’ becomes ‘tourist bureau’.

so all you’ll have to do is drop the new files into the proper directories and go! all new images, CSS files, and any new backend code will be automatically “detected” and -get this!- actually fookin’ actuated on-the-fly!

so far, it’s coming along nicely… what little bit of code i’ve got so far works a charm. am v.excited and optimistic about this part.

still haven’t actually bothered to MAKE the new skins, but after this, it will be a real breeze anyhow.

By jae

jae lethe (he/she/they) is a blogger, musician, artist, poet, web developer/designer, armchair philosophizer, teller of tales, and gadabout. Also, something he calls a "behavioral artist." (Not sure.) She has plans. BIG plans.

Among the things that he has done for a laugh are minor fractures, cuts, scrapes, and various scabs. Though she's quick to point out that they're no imbecile, we're fairly certain that he thinks the word means some kind of medieval pharmacist.

This is her latest home on teh internets - where jae stores their swear words, when they're not hurling them at the sun in vain.