Posted by
jsmoraes on
Dec 13, 2013; 2:31am
URL: https://support.nabble.com/Option-to-solve-topics-Give-XP-tp7588566p7588715.html
question no. 1 - ok to not pin and ok to show the solved icon together and to the left of name (I will use the word subject instead of name, ok ?) in the main page (before you enter the topic).
question no. 2 - create a section called "Solved topics and Questions", but here there are some issues.
a) it seems to be similar to suggestion from gregchapman, above. You must move all appropriate topics to there.
b) to mark the topic as question solved and process an automatic transfer with all reply to there will not be possible. I will explain the motif down.
question no. 3 - creator of the topic and people with permission. There are some issues here, too. And the motif will be told down
question no. 4 - ok, you can change the images. No great problem to do it. At any time. The icon must be loaded to a gallery of images, since they aren't inside the Nabble server. If you maintain the name of file, you can change it at any time.
question no. 5 - People can still add messages. Indifferent. Despite of I think if the question was solved... why return to discuss it again ?
New question: the pin icon should still be able to show next to the title even if the topic is solved: There isn't space to show two icons in pin column. The icon of pin has 20 x 21 pixels only, and takes the full area. We can create a new icon with two symbols: pin and solved. But the small space will make it so small that nobody will see what it is. The solved icon will take the position told in question no. 1, above: together the subject (name), at left and before the subject.
Ok, I told the good news. Let's go to the bad news: the motif
1) only Nabble team can change the structure of database, and create a new solved field, similar to pinned field.
2) because this we need to mark the topic, the message with question and the message with answer, by another way. Topic is created with message with the question, and they are the same. It is transparent if this first message has text or not. Therefore we need to mark with different flags only two messages: the first and that with answer.
3) I can not see other way to mark them: I need to change the content of subject (name), including in it some thing to act as flag. This flag can be an expression, as I did above, or some group of characters not usual. For example: #%# and %#%. Two, three characters. No more. And the best position should be the left, before the true content of subject (name). Why ? Because we can trim them before show in page. A kind of left string function (that I didn't find, yet). These flags will serve to decisions in the code.
If we include a space between the flag and subject... no problem with internal forum search engine.
note: in the example showed above I used only the "(Solved" expression and the "- Solved" expression. They are easily identified with an intructions with "if contains substrig".
4) as you need to change the content of the subject (name), and the flags is hidden to the others people, only Administrators with permission to
edit all can do this task.
5) I didn't find how to trim the content of subject (name), to exclude the flags before show them in the page. I know where, but I am not expert in NAML and JAVA. I haven't solution to this, yet. Any help will be very positive.
To close the code, I need solve the issue of item 5. And know if the solution that I thought would be of interest. I don't need this ressource. In spite of that I can use something to change the appearance of pinned icon, only for appearance.
I am trying to find a solution to your question because I am studying NAML (or better, trying to understand it). Certainly the Nabble team will have a better and more sharp solution.
regards, jorge