Hack Discourse!
-
Continuing the discussion from Discourse and our reaction to it:
I think it would be a good idea to have a thread where this stuff was broken down a little bit more. Help us help you.
OK, so this is the official hack Discourse thread. I don't mean break it, I mean, let's make some hacks/patches to make it feel more like home. This thread will be moderated with an iron fist. No derailment.
Each post in this thread should be a specific idea for improvement along with an specific strategy for implementation. For example,
1px #e6e6e6 is way too slim of a post separator; it should be #dadada and 2px, it seems you can do this with an override to .topic-body margin-top
That's the quickest one I can think of, but we can do shit with JavaScript, or whatever. If someone knows how plugins work, we can do that too.
Use the LIKE to indicate if you think it's a good idea. If you disagree, then make a new suggestion idea.
If it's something we can copy/paste in to the CSS/JavaScript customizatins, we'll do it right away just to see it.
-
You could probably implement this through jQuery ... use the page onload event to inject another li element - possibly by cloning the search button - and just modify the onclick to fire the ? keypress event oh and use the fontawesome icon I referenced "fa-keyboard-o".
-
This seems relevant: https://github.com/discourse/discourse/commits/master
Is the repo for TDWTF's particular instance available somewhere public?
-
This looks like it should be fairly easy to do:
I'm going to keep looking into it. I'll post back when I have something a little more concrete.
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
I might try to set up a local copy of DC this weekend so I can hack away at it. I think it would be useful for the purposes of this exercise. Unless someone has a throwaway instance where they'd give me admin rights and let me fuck shit up.
-
I might try to set up a local copy of DC this weekend so I can hack away at it. I think it would be useful for the purposes of this exercise. Unless someone has a throwaway instance where they'd give me admin rights and let me fuck shit up.
Best you do this on your box and not rummage in someone else's for reasons that are obvious.
-
http://try.discourse.org/ <-- i think
-
This seems like a good place for hackers to start: Discourse Plug-in tutorial
-
http://try.discourse.org/ <-- i think
That won't work for him. He want to setup the server and play with the deployment of jquery and stuff. How can he host his plugin on try.discourse.org? is there any hope for that?
-
This seems like a good place for hackers to start: Discourse Plug-in tutorial
That won't work for him. He want to setup the server and play with the deployment of jquery and stuff. How can he host his plugin on try.discourse.org? is there any hope for that?
Nagesh is right. The DC sandbox doesn't give me enough freedom. I want access to the mod tools and whatnot, just so I can get an idea of what's available and how easy it is to change stuff.
-
oh god that brings back horrible memories. I was trying to get a basic Ruby on Rails/Linux dev environment set up a year or so ago. Even the main Ruby on Rails installation tutorials didn't give me a working setup! I gave up after a couple weeks and decided no environment was worth that hassle.
PHP sucks but at least you can build a working Linux/Apache/PHP/MySQL server from scratch in about 3.246 minutes.
Filed under: Mildly off-topic rant
-
oh god that brings back horrible memories. I was trying to get a basic Ruby on Rails/Linux dev environment set up a year or so ago. Even the main Ruby on Rails installation tutorials didn't give me a working setup! I gave up after a couple weeks and decided no environment was worth that hassle.
Filed under: Mildly off-topic rant
I tried same thing on windows and everything work very well. If your primary background is windows environment, don't step in Ruby's swamp. Stay with ASP MVC and stuff. That is much better. Nothing is coming close to Visual Studio IDE. I am great fan of eclipse, but Visual Studio has now converted me over. I still think java < C#.
-
You guys aren't filling me with a lot of confidence right now.
@Nagesh said:don't step in Ruby's swamp.
SpectateSwamp?
-
I gave up after a couple weeks and decided no environment was worth that hassle.
I had a similar experience trying to set up a SO clone for a local project. Maybe someone could set up a vm appliance or something? Is there already one out there somewhere?
EDIT: Maybe this:
-
You guys aren't filling me with a lot of confidence right now.
SpectateSwamp?
No. I am serious. Ruby is easy for people with that mind-set. Remember it is Made in Japan and like all things made in japan, it is of very excellent quality, but it does not mean that you will like it.
Santori also making Scotch, but how many drinking it?If you must go into LinuxLand, you go with Guydo's product called Python. That is safe way.
-
This post is deleted!
-
@apapadimoulis I am probably speaking way too soon, but if I can get a local instance of DC set up and it's not complete gibberish I think I'm going to try to attack some of the more sensible posts from http://what.thedailywtf.com/t/since-this-is-a-beta-i-guess-lets-do-some-genuinely-useful-bug-reports/296 (assuming they're within the realm of possible). I don't know if I'll even get anything done but I'll try.
-
I was trying to get a basic Ruby on Rails/Linux dev environment set up a year or so ago. Even the main Ruby on Rails installation tutorials didn't give me a working setup!
I genuinely cannot conceive of how that's possible. Getting a dev environment in Rails setup is mega easy. Getting it into production can be a nightmare.
-
I genuinely cannot conceive of how that's possible.
For me, I think it was incompatible versions. I think that what came in my distro didn't match whatever the maintainer wanted. Or I tried using rake and something always failed. I can't recall exactly what the issue was (it was a few years ago) but I was rather impressed at all of the different ways it managed to fail.
-
Amazing. I don't even have problems getting a stock Rails install running on Windows, and fucking nothing in Ruby is Windows-friendly.
-
I probably could have gotten "stock rails" up and running, but this was trying to install a third party app. It might be easier now. Like I said, this was a few years ago.
-
I probably could have gotten "stock rails" up and running, but this was trying to install a third party app.
Oh, my mistake then. You're 100% right; that's the path to ruin.
-
I genuinely cannot conceive of how that's possible. Getting a dev environment in Rails setup is mega easy. Getting it into production can be a nightmare.
On Linux, you basically just can't use the fucking package manager. All of the gems are out-of-date, including Rubygems itself. If Rubygems tries to update itself, it will fuck your package manager 10 ways from Sunday. Install Ruby from the PM, Rubygems from source and then everything from Rubygems.
-
This post is deleted!
-
Ah yes, the usual war between those who write software and those who (re-)distribute it. There's no good resolution; the desires pull in such different directions.
The “best” way is to do what some commercial software does: package everything together in one lump. It might duplicate stuff, it might not always get security updates instantly, but by God at least it's got a fighting chance of working! VM images make this quite a lot easier.
-
This post is deleted!
-
no no, please avoid that tutorial way out of date:
See: https://meta.discourse.org/category/extensibility/plugin for working plugin examples.
-
I agree setting up a dev environment can be a huge pain, thinking of adapting our docker image to allow for a simple (10 key stroke) dev environment. Would be hugely easier than current guides, and isolated.
-
o no, please avoid that tutorial way out of date:
Out of date? Out of date? OUT--- {deep breath}
Okay. Let me just see if I'm understanding this:
- Discourse was released in 2013. A year ago.
- That tutorial was written in Feb 2013 by, seemingly, an early developer and fan of the software.
- It is also the first google hit for Discourse Plugin Tutorial
- Even though it is the #1 hit, and the software is less than a year old-- that tutorial is "way out of date".
- Even though you know of the existence of that tutorial, you haven't tried to raise the pagerank of your own tutorial above it
- Even though, again, you know of the existence of that tutorial, and it is the only one, and the author has an active http://www.danneu.com/about-me/ Contact Me page, you've never contacted him to let him know he could improve the tutorial? Or edit it with a depricated link?
- You then post a link not to a tutorial, but to a list of examples that we need to spend valuable time reverse engineering?
- One topic has been updated in the last 18 days. Past that, nothing in that forum has been updated in over a month (21 Apr). Most look like they've been abandoned.
Given all of the above, how do we know any of those plugins are WORKING examples? Which ones are "way out of date"? What is the date cut off to be too old? WHY are those plugins out of date? An API change? I won't even ask WHY you changed the API out from under developers.
How about a link to a full plug-in tutorial and full documentation?
-
@Lorne_Kates said:
Given all of the above, how do we know any of those plugins are WORKING examples?
I try to garden the https://meta.discourse.org/category/extensibility/plugin category. All of them should be working examples, if not I will strip them from the category.
Regarding context for this change. On initial launch we had a rather complex extensibility story, then this happened.
About WordPress plugins: https://meta.discourse.org/t/what-i-love-about-wordpress-plugins/5697
And
About the new interface: https://meta.discourse.org/t/brand-new-plugin-interface/8793
(also something weird went on with oneboxes here we need to fix)
-
I try to garden the https://meta.discourse.org/category/extensibility/plugin category. All of them should be working examples, if not I will strip them from the category.
This is the sort of thing I would expect to be in a FAQ. Maybe it doesn't make as much sense for less technical forums, but then again, a lot of technical people do non-technical things, too.
-
This is the sort of thing I would expect to be in a FAQ. Maybe it doesn't make as much sense for less technical forums, but then again, a lot of technical people do non-technical things, too.
You are knowing that you can edit "Write your own FAQ".
-
You are knowing that you can edit "Write your own FAQ".
I am knowing this now, but I wasn't knowing then since no one was knowing it then because it wasn'ting.
-
I am knowing this now, but I wasn't knowing then since no one was knowing it then because it wasn'ting.
It is there for past 4 days or something like that. You're on almost 24 / 7 just like me, so you should be knowing this by now. Anyway, always learn something new, is what I always say.
-
I am knowing this now, but I wasn't knowing then since no one was knowing it then because it wasn'ting.
Obviously, we need SDSS!
... I'm sorry, gonna stop now, but with so many mentions of Swampy lately my brain seems to have regressed to the time I was reading that threadnaught (after it was all over, unfortunately).
-
I'm sorry, gonna stop now, but with so many mentions of Swampy lately my brain seems to have regressed to the time I was reading that threadnaught (after it was all over, unfortunately).
It never ends, but it has slowed down enormously, with new messages only coming every month or so. Fortunately, you can now fast forward through them with SSDS…
-
It never ends, but it has slowed down enormously, with new messages only coming every month or so. Fortunately, you can now fast forward through them with SSDS…
You know, it's kind of sad that in a few months, when CS forums shut down, Swampie will have no place to post his antics in.
Why don't we keep it open just for him?
-
He's already posted here. He likes it because it displays his videos.
-
Doesn't work, sadly. Discourse sanitizes your protocols.
<a href="steam://launch/440">Click me for rainbows</a>
(Not to mention that
steam:
can write files to your hard drive.)
-
-
For reference: http://steamdb.info/app/630/