« [Plugin Screenshots] Invitation Only Topics
Something I started working on
Wand »

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Something I started working on
« on September 6th, 2012, 05:24 AM »
I've not been feeling 100%, but anyway, I wanted to kick off with a plugin tonight, just to get back into some semblance of a coding life.

So I figured I'd make a start on something that we might use here and that others might want to use. Colours are configurable from the admin panel, too, because I'm nice like that, and that way it's also preserved across installs of the plugin.

(Still early, this is about as far as I've got... without file edits.)

 wedge_topic_solved.png - 24.05 kB, 955x265, viewed 275 times.

When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Asgard

  • So Many Searches, Why Have So Many Searches, One Search Is Enough
  • Posts: 56

spoogs

  • Posts: 417
Re: Something I started working on
« Reply #3, on September 6th, 2012, 06:06 AM »Last edited on September 6th, 2012, 06:57 AM
:cool:

Very useful indeed.

List of unresolved topics coming eventually?
Stick a fork in it SMF

Farjo

  • "a valuable asset to the community"
  • Posts: 492

Dr. Deejay

  • Happy new year all!
  • Posts: 118

markham

  • Finally finished the Slideshow... phew!
  • Posts: 138

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Something I started working on
« Reply #8, on September 7th, 2012, 03:37 AM »
Just going to leave this one here... (in case it's not clear, the dropdown in quick moderation can be extended now without too much kerfuffle)[1]


Also, to answer Spoogs' question, yes, there will somewhere be a list of unsolved topics for the boards in question. But I still need to make other changes to Wedge to support some of the functionality I want, so it's further down the list.

Just to clarify, I need to do some more work to make quick moderation extensible, at the processing stage, and I need to support some sane way of extending configuration to support a list of boards.

Basically, while yes, ultimately, it will need to be possible to provide options in the manage-boards area for plugins, for something like this I'm really averse to storing it in the boards table for all the effort for that one column. What I might as well do - and what I can well imagine would be useful for other plugin authors - is to have a simple selection in the standard configuration pages, to quickly select which boards are applicable and which ones aren't.

There's already a 'permissions' type for that sort of thing, and I don't see that declaring board types is any more of a problem, in that respect. That way plugin authors can do it real quick and easy.
 1. In the mod that Nas and I worked on, though I can't remember if it was ever finished, under the SD Team account, we actually wanted to do this but there was simply no nice way of doing it in SMF.

 wedge_topic_solved_3.png - 31.05 kB, 930x312, viewed 237 times.


spoogs

  • Posts: 417
Re: Something I started working on
« Reply #9, on September 7th, 2012, 05:16 AM »
Quote from Arantor on September 7th, 2012, 03:37 AM
Just going to leave this one here... (in case it's not clear, the dropdown in quick moderation can be extended now without too much kerfuffle)[1]
 1. In the mod that Nas and I worked on, though I can't remember if it was ever finished, under the SD Team account, we actually wanted to do this but there was simply no nice way of doing it in SMF.
It wasn't finished based on the complexity IIRC
Quote from Arantor on September 7th, 2012, 03:37 AM
Also, to answer Spoogs' question, yes, there will somewhere be a list of unsolved topics for the boards in question. But I still need to make other changes to Wedge to support some of the functionality I want, so it's further down the list.
Figured as much ;) it was something you really wanted to get into the one you and Nas made under SD


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Something I started working on
« Reply #10, on September 7th, 2012, 05:19 AM »
Quote
It wasn't finished based on the complexity IIRC
There were a good many things missing from it IIRC, that was one of the smaller things that just wasn't doable. :(
Quote
Figured as much ;) it was something you really wanted to get into the one you and Nas made under SD
It will get done this time. I'm just currently rewriting the quick moderation code that should make it hookable properly.

lazyt

  • Code Idiot
  • I still haven't managed to break anything. But not for lack of trying:-) :-) :-)
  • Posts: 40

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Something I started working on
« Reply #12, on September 18th, 2012, 03:38 AM »
Having now rewritten the behemoth that was quick moderation, I figured I'd dive into the rest of this plugin.

Also, note that there is no actual configuration code required for that configuration page. All that is is a small block in the plugin-info.xml file.

Code: [Select]
<settings-page area="topicsolved" icon="$pluginurl/img/tick.png" bigicon="$pluginurl/img/tick-big.png">
<language file="lang/TopicSolved-Admin" />
<text name="topicsolved_bg1" />
<text name="topicsolved_bg2" />
<text name="topicsolved_fg" />
<boards name="topicsolved_boards" />
</settings-page>

Yes, really. Wedge plugins will be super easy to get going.

 topic_solved_admin.png - 35.32 kB, 906x670, viewed 217 times.

 topic_solved_already.png - 36 kB, 925x500, viewed 171 times.

 topic_solved_ready_mark.png - 32.48 kB, 922x455, viewed 167 times.

 topic_solved_modlog.png - 30.08 kB, 929x388, viewed 168 times.


Nao

  • Dadman with a boy
  • Posts: 16,079
Re: Something I started working on
« Reply #13, on September 18th, 2012, 04:05 PM »
Totally unrelated, but maybe we should use the HTML inputs of the 'color' type for actual color requests...? Instead of HTML code...
Or implement our own, something like showing a small inline-block next to the box, and fill its background-color on 'change' and 'blur' events.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Something I started working on
« Reply #14, on September 18th, 2012, 05:04 PM »
I have been thinking about that, actually, though if I did it, I'd go into having a full colour selector. The HTML5 color input is only supported in some browsers, meaning I'd need to do something else instead.

I haven't found one in jQuery that I like the look of though, and don't know exactly how I'd like it to look either...

« [Plugin Screenshots] Invitation Only Topics
Wand »