Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# lmtsypin 8/21/2006 11:33 AM (edited 10/17/2006 8:23 AM)
Hey everyone -

I just developed a new FAQ module which I would be happy to share if anyone is interested. It has 3 fields, question, answer, and sequence, and features expanding/collapsing panels using a repeater and the open source JQuery library. It is developed for ASP.NET 2.0 and MySql, but can easily be ported to any platform.

I finally posted the new module here. Sorry for the delay. Couple of notes:
- I only have MySql scripts written, although they are very simple to port over.
- The edit faq page uses a plain text box for questions and answers. You may want to modify it to use the rich text editor.
- I FORGOT ONE IMPORTANT ITEM! You need to reference the JQuery JS file somewhere in the template that will be using the FAQ module. The latest version can be downloaded here: http://jquery.com. I am using it elsewhere in my template so did not reference it directly in the module.

Anyone one have thoughts on how to best handle this type of case?

Lev
# gedw99 8/21/2006 5:08 PM
yes please. :)

Can you email it to gedw99 at hotmail.com

i will port it to MSSQL as this is what i stil use.

cheers

Ged
# martijnb 8/21/2006 5:53 PM
Ged, if you ported it, could you send the stuff to me? Always nice to have a FAQ module and we can include it in the next release (more about that tomorrow).
# lmtsypin 8/22/2006 9:32 PM
Here's a link to the FAQ module - sorry for the delay:
http://www.levelos.com/temp/Cuyahoga.Modules.FAQ.zip

Release notes:
- I only have install scripts written for MySql, but it should be fairly trivial to port MS SQL.
- For the application I developed this for, I switched the default FCK Editor for the RadEditor which I have a license for. Unfortunately, I can't give out the assembly for this, so the EditFAQ.aspx page needs a minor update the use the FCK Editor, or just a plain text box. I set the Answer field to be a rich text field to allow for formatting options.

Otherwise, it should be all set. Please send any feedback or improvements my way!

Lev
# noah.liu 8/31/2006 8:54 AM
Hi, Lev

I try faq module under cuyahoga 1.1 and there are a question happening:

1) when login a user, if user or password is not right, a exception "null reference" occur. however, login action is ok, it is ok.
2) details: pageengine render(...)
faqrepeater render(textwriter).. in here

why?



# lmtsypin 8/31/2006 11:43 AM
Noah - Sorry, but not sure I understand your question. The FAQ module shouldn't have any effect on the login process/functionality.
# noah.liu 8/31/2006 11:48 PM
Hi, Lev.

Yeah, I also understand it. but it is true.
i download eword.ui 1.9 from eword.ui site. and compile it in vs2003.
ALL FUNCTION OF FAQ is Ok if anonymous view site or successful login user. but if login is not correct, pageengine issure render method and basemodulecontrol render child, then faqrepeater render occur a "null reference" exception.

I can't debug to faqrepeater, so i don't find where is problem.

after i reinstall my laptop pc, i will attach exception file to here.
Noah.

# lmtsypin 9/1/2006 12:58 AM
Noah - The module is developed to run on the .NET 2.0 platform, using the latest SVN version of Cuyahoga. If you are using .NET 1.1, that could be your problem. The correct version of eworld.ui should be included in the archive.
# lmtsypin 9/30/2006 4:41 PM
Hey - I updated the FQ module to use the open source JQuery library rather than the EWorlds UI FAQ Repeater. The FAQ is a bit lighterweight, more flexible, and doesn't need an external assembly anymore.

Again, I'll be happy to post an update if anyone is interested. It is setup for use in a .NET 2.0 / MySql environment, but porting the DB script to MS SQL would be very simple.

Lev
# noah.liu 10/3/2006 9:19 PM
Hi, lmtsypin

Can you put it to here?

I maybe migrate it to cuyahoga 1.1, because i is using cuyahoga 1.1

Rgds

# Locutus 2/16/2007 9:18 AM
thank you for your great module lmtsypin.

i had to make some minor changes to get it to work on cuyahoga 1.5.0.

besides getting it to work, i also changed it to use the fckeditor that comes with cuyahoga itself. that seemed to make sense instead of relying on a non-free third party component. while at it, i also made database install/uninstall scripts for mssql2000.

if you want i can share the modified package.

edit: even better, i attached the file to this message.

ciao,

-l.
# lmtsypin 2/16/2007 2:27 PM
Thanks for updating to 1.5! And yes, switching to FCKEditor is clearly the right choice ... I just happened to be using RadEditor on the project and didn't pull it out. Let me know if there any more issues with it and I can help iron them out. Might be nice to incorporate into the core since I imagine that is a pretty common request.

Lv
# gedw99 2/24/2007 12:32 PM
Bug in module.

All working except when when editing an existing answer that contains more than one line it has a fit.
Something to do with the FCK editor.

Funnily enough i cant attach the exception output, because that initslef can be posted into this forum post without otu itself causing the same error.


ged




A potentially dangerous Request.Form value was detected from the client (p$fckContent="**HTML that was typed into the FCK EDITOR WINDOW THAT PREVENTS ME POSTING TO THIS FORUM POST**").
Description: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (p$fckContent="**HTML that was typed into the FCK EDITOR WINDOW THAT PREVENTS ME POSTING TO THIS FORUM POST*).

Source Error:

[No relevant source lines]


Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\9e3744b4\a33dd5fc\App_Web_grqsitg3.2.cs Line: 0

Stack Trace:

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (p$fckContent="**HTML that was typed into the FCK EDITOR WINDOW THAT PREVENTS ME POSTING TO THIS FORUM POST*").]
System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +3219518
System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +108
System.Web.HttpRequest.get_Form() +119
System.Web.HttpRequest.get_HasForm() +57
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +2025169
System.Web.UI.Page.DeterminePostBackMode() +60
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.modules_faqs_editfaq_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\9e3744b4\a33dd5fc\App_Web_grqsitg3.2.cs:0
Cuyahoga.Web.HttpHandlers.PageHandler.ProcessRequest(HttpContext context) in C:\_DataGerard\ProjectsCurrent\Shixango\Code\SVNLive\Branches\1.5.0\Web\HttpHandlers\PageHandler.cs:49
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

# lmtsypin 2/24/2007 1:08 PM
You need to disable page validation; that should take care of it.