You are not logged in.

#1 2010-11-08 11:52:11

valvet
Member
From: Denmark
Registered: 2009-06-06
Posts: 147

[SOLVED] Solved "button"

Hi

I'm not sure if this has been done before, or discussed - I couldn't find any posts on it (maybe I suck at searching), but I was bored at work.

I had the idea to create a Solved button/link, next to the Quote button, for quick marking as solved. Basicly two (or three) scenarios:

#1
We just alter the topic subject automatically, not displaying the edit form to the user. This will truncate the subject length (60 characters, max length (70 - 8)), and append [SOLVED] to the topic subject without asking the user to correct/shorten the title to their likings.

#2
We present the normal edit form, but automatically append [SOLVED] to the subject, aswell as truncating the subject length. This allows for the user to edit the subject, as they would normally if they just edit it to insert [SOLVED].

#3
This idea is stupid, and not useful.. There's no smart way to patch fluxBB, other than altering the mixed html/php files.

I'm OK with #1, but then again - we'll have subjects with weird cut words, so I guess #2

Screenshots
vNjNhNw
vNjNhOQ
vNjNhYg

Patches
This is for scenario #2.

[michael@swamp fluxbb]$ wgetpaste -s codepad viewtopic.php.patch 
Your paste can be seen here: http://codepad.org/HxHRa0Ia

[michael@swamp fluxbb]$ wgetpaste -s codepad edit.php.patch 
Your paste can be seen here: http://codepad.org/fkr51JS4

[michael@swamp fluxbb]$ wgetpaste -s codepad topic.php.patch 
Your paste can be seen here: http://codepad.org/cdVB1cKq

Currently this has only been implemented for admins and moderators.

Ideas?

Last edited by valvet (2010-11-08 14:38:26)

Offline

#2 2010-11-08 12:02:44

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Solved "button"

Arch devs are not interested in applying patches to fluxbb for things like this. Submit your patches upstream - if they are implemented and become part of the vanilla fluxbb code, then Arch will use them.

Offline

#3 2010-11-08 12:04:11

valvet
Member
From: Denmark
Registered: 2009-06-06
Posts: 147

Re: [SOLVED] Solved "button"

That's what I thought, hence #3 - there's no smart way to patch this system, clever design.

No worries :-) - atleast I'm not bored anymore.

Offline

#4 2010-11-08 14:44:42

valvet
Member
From: Denmark
Registered: 2009-06-06
Posts: 147

Re: [SOLVED] Solved "button"

Offline

Board footer

Powered by FluxBB