Target
 Nuke Newbie Posts:6

 |
| 12/25/2010 8:41 AM |
|
hi
I'm newbie with the DNN, and I really need your help.
I wish to configure the Feedback module so it works without the Email validation. I can use the Email field the same as the Name or the Telephone fields, but but I don't want the validation.
How can I re-configure the feedback module without this validation?
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 12/25/2010 10:04 AM |
|
Look in the directory DesktopModules\Feedback in your website's directory and find the file named Feedback.ascx. In it you will find these lines:
< asp:textbox id="txtEmail" runat="server" cssclass="NormalTextBox" columns="35" maxlength="100">< /asp:textbox>
< asp:requiredfieldvalidator id="valEmail1" runat="server" cssclass="NormalRed" display="Dynamic" errormessage=" Email Is Required." controltovalidate="txtEmail" resourcekey="valEmail1" ValidationGroup="FeedbackForm">< /asp:requiredfieldvalidator>
< asp:regularexpressionvalidator id="valEmail2" runat="server" cssclass="NormalRed" display="Dynamic" errormessage=" Email Must be Valid." controltovalidate="txtEmail" resourcekey="valEmail2" ValidationGroup="FeedbackForm" validationexpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"> < /asp:regularexpressionvalidator >
If you remove second set of lines with requiredfieldvalidator, that will make the email address not required.
If you remove the third set of lines with regularexpressionvalidator, that will not check for the form of the email address.
If you remove both, there will be no checking.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Target
 Nuke Newbie Posts:6

 |
| 12/25/2010 12:51 PM |
|
hi,
Thank you for the quick answer. I tried to delete the lines as you recommended but I received error massage:
Error: Feedback is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException:
Object reference not set to an instance of an object. --->
System.NullReferenceException: Object reference not set to an instance
of an object.
at DotNetNuke.Modules.Feedback.Feedback.Page_Load(Object sender,
EventArgs e)
--- End of inner exception stack trace ---
I also received error massage when I tried to delete the arrow image.
Did I missed anything?
Thanks Aviv
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 12/25/2010 1:37 PM |
|
My apologies. I guess I was infected too much with the Christmas spirit too give a good answer.
You will also need to get into the module's code and remove references to those controls.
This is a somewhat more involved job. You will need to do this with the source version of the module, and you will need to recompile it. Most likely you will need to have someone who understands DotNetNuke modules do this for you. It isn't difficult, but more involved than my incorrect answer. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Lee Sykes DNN Creative Staff
 Nuke Master VI Posts:4945

 |
|
Target
 Nuke Newbie Posts:6

 |
| 12/25/2010 2:56 PM |
|
I forgot its your holiday (I am not christian).
Happy Christmas.
If you can, I would like some guidelines, and the location of the code file. I think that I can handle VB code, but I don't know where it is, and it is not have to be today, it can wait for some days.
I can also follow your tutorial (if there is one). I really wish to learn how to do it by myself.
I tried to set the enable with the "false" value, but it didn't work.
Lee, I really enjoy your tutorials, I think they are excellent.
Happy Christmas Aviv
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 12/25/2010 4:24 PM |
|
Thanks, Lee!
Aviv: It should say enabled="false" with the quotes around false.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Target
 Nuke Newbie Posts:6

 |
| 12/25/2010 4:40 PM |
|
yes, I know, but it didn't work
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 12/25/2010 5:10 PM |
|
This works for me:
< asp:requiredfieldvalidator id="valEmail1" runat="server" cssclass="NormalRed" display="Dynamic" errormessage=" Email Is Required." enabled="false" controltovalidate="txtEmail" resourcekey="valEmail1" ValidationGroup="FeedbackForm">< /asp:requiredfieldvalidator> < asp:regularexpressionvalidator id="valEmail2" runat="server" cssclass="NormalRed" display="Dynamic" errormessage=" Email Must be Valid." enabled="false" controltovalidate="txtEmail" resourcekey="valEmail2" ValidationGroup="FeedbackForm" validationexpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+">< /asp:regularexpressionvalidator>
Make sure that you don't have the spaces after the < in the tags.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Target
 Nuke Newbie Posts:6

 |
| 12/26/2010 12:11 AM |
|
I understood,
I even copied and pasted your code into mine, but it didn't effect the page.
Another problem I found now is for internet explorer browser, when I tried to write in the text boxes of the fields like the name or the email I don't see all of the writing. somehow there is part of the textbox that is not visible. This problem is not exist in other browsers like firefox and chrome.
I configure the width of the module for 50% and I write in hebrew so it is from wight to left, but I don't think that the problem is there.
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667

 |
| 12/26/2010 4:23 PM |
|
Can you tell me what happened? If you changes the ascx file, something should have happened. If you just add some text in the ascx, do you see it on the site?
As for the other issue, it undoubtedly is an issue with your CSS. Unfortunately, I don't have experience with right to left paired,so I am not going to be ablel to help much.
You should, though, make sure that you are using an
XHTML skin. That will minimize cross browser issues. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Target
 Nuke Newbie Posts:6

 |
| 12/27/2010 10:38 AM |
|
I made some changes in the acsx file, for example, I exchanged the places of the Name and the Email fields. I wanted that the Name would be above the Email. I wanted to delete the arrow image, so I changed the ImageUrl into a new gif that I designed.
I see the results in the page.
As you asked I added some text, and I saw the results on the page. But I didn't find a way to dismiss the Email validation.
As I wrote, I'm newbie. I'm not familiar with the XHTML skin. Thank you for your advise, I will check this.
Can you tell me the relations between the Module.ascx file and the Settnigs.ascx file?
Thank you Aviv
|
|
|
|
|