Tags:
create new tag
, view all tags

TWikiDotNetForumAppAddOnDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on TWikiDotNetForumAppAddOn contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on TWikiDotNetForumAppAddOn

This TWiki application ships with the Certified TWiki distribution. TWIKI.NET releases it under the GPL to the community. Please enjoy!

Once we have the Apps web and a packaging standard we can migrate this app to the Apps web.

-- PeterThoeny - 16 Oct 2007

When I click on the "Create new topic" submit button and no title has been entered in the title field, the "Please enter title" alert message is displayed. Even though that's the case, the page still proceeds with the topic creation leaving the title field of the DiscussionTopicForm blank. I looked at the onfocus() event code and to me it just seems fine. But since I also have an existing working code (courtesy of www.w3schools.com example) that I use to validate a form, I used that code anyway. They should be entered after the %STARTINCLUDE% directive in the DiscussionForumBody so it can be executed in every topic creation in every forum.

JAVASCRIPT:

<script type="text/javascript">
function validaterequired(field, alerttxt)
{
   with (field)
   {
      if (value == null || value == "")
      {
         alert(alerttxt);
         return false;
      }
      else
      {
         return true;
      }
   }
}

function validateform(thisform)
{
   with(thisform)
   {
      if (validaterequired(Title, "Please enter title.") == false)
      {
         Title.focus();
         return false;
      }
   }
}
</script>

You can call this with the onsubmit() event of the form

<form name= ... onsubmit="return validateform(this);">
   ...
   ...
</form>

-- FredanLangam - 18 Oct 2007

Thanks for the heads up. This is a bug in the core and a failed check in the app. The core bug is tracked in Bugs:Item4859.

On check, I prefer a one-liner in the form tag:

<form name= ... onsubmit="if( this.Title.value == '' ) { alert('Please enter a title'); this.Title.focus(); return false; } else { return true; }">

-- PeterThoeny - 19 Oct 2007

Is there an easy way to include a particular forum in another web? I've tried including a forum in another web but it appears to be looking in web that I set the include in rather than the forum web where are the posts are. I looked at the search but it seemed to be looking in the right web unless I'm overlooking something. Otherwise, very cool app. Thanks for posting it.

Thanks

-- BarryAdler - 11 Feb 2008

This is currently not supported. It looks like a useful enhancement. Probably a simple fix.

-- PeterThoeny - 14 Feb 2008

It was a simple fix actually. Identifying what web to search in addresses the problem. Adding "web="Forum" to the search function in DiscussionForumBody tells twiki to look in specifically the Forum Web for topics verses the web where the INCLUDE is located.

-- BarryAdler - 15 Feb 2008

Nice application. Thread's topic name have a 4 digit incremental number. Does it imply we can only have a maximum of 9999 thread in one forum?

-- StephaneLenclud - 04 Mar 2008

no, it will count up to very large numbers. Simply a way to have pronounceable and sortable topic names.

-- PeterThoeny - 05 Mar 2008

How can we create new forum using this Addon on our local machine. In the description it is written that only member of TWikiAdminGroup can create new forums, question is how can I assign my ID to this TWikiAdminGroup or is there any other way I can make it work in creating new forum.

-- BrijendraAgarwal - 14 May 2008

Three options:

  • Ask your TWiki admin to add you to the TWikiAdminGroup.
  • Ask your TWiki admin to change the TWikiAdminGroup access control setting in all Forum topics that have it to a group you belong to.
  • Unzip the package to a temp location, edit all data/Forum/*txt files that have the TWikiAdminGroup access control setting, set to a group you belong to (or #Set uncomment the settings), then install the add-on.

-- PeterThoeny - 15 May 2008

I downloaded and installed this add-on on August 8. In this version I'm experiencing two bugs. (1) When trying to create a new topic I get the error message "The "ForumSandboxAUTOINC0001" topic already exists Cannot create ForumSandboxAUTOINC0001 because it already exists." -- i.e. AUTOINC is not incrementing, so I can only create one topic per forum. (2) I have two forums with topic names "ForumSandbox" and "ForumSan". The second one contains all topics of these two forums. Has anyone experienced these problems before? The first one is obviously more important.

-- KatjaHofmann - 11 Aug 2008

I'm encountering the same problem (1) as KatjaHofmann; does anyone have a solution for this?

-- MarkusKohli - 23 Sep 2008

Found it, AUTOINC00001 was the problem.

-- MarkusKohli - 23 Sep 2008

Yeah... but removing the AUTOINC will not solve your problem... you should change the way the topic name is created: Following my DiscussionForumBody page

---+ Discussion Forum Body

The part between the horizontal rules gets included by each discussion forum of the DiscussionForum
-----
%STARTINCLUDE%
<style>
h1 { margin:0 0 0.1em 0; }
</style>
[[DiscussionForum][Discussion Forum]] &#187;
---+ %FORMFIELD{ "Name" topic="%INCLUDINGTOPIC%" }%
<script>
function validadeForm( form) {
if( form.Title.value == '' ) {
 alert('Please enter a title'); 
 form.Title.focus(); 
 return false; 
} else { 
  form.topic.value = form.topic.value+form.Title.value;
  return true; 
}

}
</script>
<nop>%TABLE{ sort="off" }%
<form name="new" action="%SCRIPTURL{save}%/%WEB%/" onsubmit="return validadeForm(this)">
| *%FORMFIELD{ "Name" topic="%INCLUDINGTOPIC%" }% Tópicos* | *Última alteração* |
%SEARCH{ "META:FORM.*[D]iscussionTopicForm;META:FIELD.*Forum.*value=.%INCLUDINGTOPIC%" type="regex" excludetopic="DiscussionTopicTemplate" web="%WEB%" order="created" reverse="on" nonoise="on" format="| %ICONURL{bubble}% <a href=\"%SCRIPTURL{view}%/$web/$topic\" title=\"$summary\">$formfield(Title)</a> <span style=\"font-size: 70%; color: #808080\"> criado por <nop>$createwikiname </span> | $date por $wikiusername |" }%
|  %ICONURL{newtopic}% Título: <input type="text" name="Title" size="40" value="" /> | <input type="submit" name="send" id="send" class="twikiSubmit" value=" Criar Novo tópico " /> |
<input type="hidden" id="topic" name="topic" value="%INCLUDINGTOPIC%" />
<input type="hidden" name="onlywikiname" value="on" />
<input type="hidden" name="onlynewtopic" value="on" />
<input type="hidden" name="templatetopic" value="DiscussionTopicTemplate" />
<input type="hidden" name="topicparent" value="%INCLUDINGTOPIC%" />
<input type="hidden" name="Forum" value="%INCLUDINGTOPIC%" />
</form>
%STOPINCLUDE%
-----

__See also:__ DiscussionForum, DiscussionForumForm, DiscussionForumTemplate

-- TWiki:Main.PeterThoeny - 28 28 Jul 2007

-- VictorHugoGermano - 29 Sep 2008

Plz, Let me explain a little better:

  • the hidden attribute topic should be changed in order to create an unique page. I did it through validateForm() js method
  • only put the Forum Topic Name (or TWikiDotNetForumAppAddOnDev ) with the Title attribute... ta da!!

=)

-- VictorHugoGermano - 29 Sep 2008

ops... should be % INCLUDINGTOPIC %

-- VictorHugoGermano - 29 Sep 2008

How can permissions be applied to all forums for limiting the view and change ability only to allow authenticated users?

-- GilbertJones - 30 Oct 2008

That needs a bit of a redesign. For each acces restricted forum, you need to set access restriction in the index topic (such as ForumSandbox) and you need an access restricted custom discussion topic template (such as ForumSandboxDiscussionTopicTemplate instead of generic DiscussionTopicTemplate).

-- PeterThoeny - 30 Oct 2008

I suggest you combine this with MailInContrib and provide a means to allow users to subscribe to a given forum. They would receive an email for each additional comment. If they reply to the comment, then it would be added to the forum. In the end, you may want to look at the work done in the design of hypernews, which was very popular in the late 1990s. Like it or not, people are more likely to respond to emails as a means to contribute to the discussion. Hypernews did a better job of organizing threaded conversations because the emails were tagged with a thread ID. Need a way to allow MailInContrib to add not just to an existing topic, but to create a AUTOINC... topic and define the topic template, etc. which is not done now. See documentation for hypernews in terms of viewing/hiding threads. The concept of hypernews was great (providing a base document to start the conversation followed by threaded discussion, and allowing refactoring of the base document, etc.), and TWiki would be great if it had this feature, which it sorely needs. In other words, the forum should be visible as "part" of the base document but perhaps hidden unless viewed. (Ok to be in a separate web, as you have done here so the access levels can be different.)

The two concepts allow refactoring of the base document based on comments, but TWiki is not cleanly integrated with email commenting. Unfortunately, hypernews was a somewhat poorly designed perl monster, and essentially dead. TWiki is well positioned to provide similar functionality, and I predict it will become yet another killer app for TWiki.

-- RaymondLutz - 12 Dec 2008

Raymond, I think you are up to something here. Agreed, good mail integration is key for a usable discussion forum app.

-- PeterThoeny - 12 Dec 2008

Somehow the distribution zip file has errors in the form tags in the templates, missing the phrase "method="post" ?!? This error appears in both the DiscussionForumAdministration and the DiscussionForumBody topics.

-- DickFurnas - 2009-09-27

The distribution also is missing all the various txt,v files, though the topics themselves seemed to contain some historical information about what version they were at -- until I edited them.

-- DickFurnas - 2009-09-27

Yes, the package needs to be updated with the method="post" in forms so that it works with the latest security hardened TWiki release.

-- PeterThoeny - 2009-09-28

I tried to move a Discussiontopic into another Forum. Moving/Renaming the topic did not help because the field "Forum" in the TWikiform is readonly. How can I change that value without manipulating the sourcefile?

I think an easy way of moving threads between Forums would be an good feature.

-- MichaelGulitz - 2010-05-17

I noticed there is still an issue with the method="post" phrase in this package. Is there any intent to update this package?

-- RobertCummins - 2011-09-29

Ah, let me update when I find time.

-- PeterThoeny - 2011-09-29

This add-on is now updated with method="post" fix and other changes.

-- PeterThoeny - 2011-10-29

Edit | Attach | Watch | Print version | History: r24 < r23 < r22 < r21 < r20 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r24 - 2011-10-29 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.