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