Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackNoob Question - Modify Existing Feedback ModuleNoob Question - Modify Existing Feedback Module
Previous
 
Next
New Post
10/20/2008 2:18 PM
 

Ok, I'm a noob. I admit it freely.

How hard is it to modify an existing Feedback Module for a "Contact Us" Page?

What I would like to do is create a "contact us" page for a site that gathers information about a user in order to help answer any questions they have.

---OR---

is there a way to create something that would fit into another module such as a Text/HTML module (vb script or something similar)?

Any and all help is appreciated.  Please advise.  I'm desperate.

Thanks,

-mb

 
New Post
10/24/2008 1:40 PM
 

Take a look at this discussion

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/30/threadid/148014/scope/posts/threadpage/1/Default.aspx


Anas Ghanem,
My blog
 
New Post
10/27/2008 9:37 AM
 

Thanks:

Ok, that kind of helps, but I'm looking at modifying it a little more to have a person input their contact info in the form.

IE: Name, Zipcode, Phone Number, Company Name, as well as comments and questions and the like.

Something like a request for information-type form.

Is there something already out there or is there a way to make the modifications needed?

 
New Post
10/27/2008 11:21 AM
 

Ok, how about this:

When modifying a page skin, is it possible to embed a form in the content pane and have it do all the things I need it to do like this:

<div class="contentPane" id="ContentPane" runat="server" >
                <form method="post" action="http://Insert Post Page URL here">
                    <table align="center" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="width: 372px">
                      <tr valign="middle">
                        <td width="200" bgcolor="#ffffff" height="28" align="right" class="formText">Name:</td>
                        <td width="200" bgcolor="#ffffff" height="28" align="left">
                          <input name="Name" class="box" size="20" maxlength="50" />
                        </td>
                      </tr>
                      <tr valign="middle">
                        <td width="200" bgcolor="#ffffff" height="28" align="right" class="formText">Company:</td>
                        <td width="200" bgcolor="#ffffff" height="28" align="left">
                          <input name="COMPANY" class="box" id="COMPANY" size="20" maxlength="50" />
                        </td>
                      </tr>
                      <tr valign="middle">
                        <td width="200" height="28" align="right" class="formText">Zip Code: </td>
                        <td width="200" height="28" align="left"> <input name="ZIP" class="box" id="ZIP" size="20" maxlength="50" /></td>
                      </tr>                         
                      <tr valign="middle">
                        <td width="200" bgcolor="#ffffff" height="28" align="right" class="formText"> Email:</td>
                        <td width="200" bgcolor="#ffffff" height="28" align="left">
                          <input name="Email" class="box" size="20" maxlength="50" />
                        </td>
                      </tr>
                      <tr valign="middle">
                        <td width="200" bgcolor="#ffffff" height="28" align="right" class="formText">Phone:</td>
                        <td width="200" bgcolor="#ffffff" height="28" align="left">
                          <input name="Phone" class="box" size="20" maxlength="50" />
                        </td>
                      </tr>
                      <tr valign="middle">
                        <td width="200" bgcolor="#ffffff" height="28" align="right" class="formText">Question
                          or Comments: </td>
                        <td bgcolor="#ffffff" width="250" height="28" align="left">&nbsp;
                        </td>
                      </tr>
                      <tr valign="middle" align="center">
                        <td width="400" colspan="2" bgcolor="#ffffff" height="120">
                          <textarea name="Comments" cols="40" rows="5" class="box">Question or Comments</textarea>
                        </td>
                      </tr>
                      <tr valign="middle">
                        <td width="200" align="right" style="height: 28px"><input name="submit" type="submit" class="box" value="Send" id="Submit1" />
                        &nbsp;</td>
                        <td width="200" align="left" style="height: 28px"> &nbsp;
                          <input name="reset" type="reset" class="box" value="Clear" /></td>
                      </tr>
                    </table>
                    <br />
                  </form>
                      <%
                          Dim strName, strCompany, strZip, strEmail, strPhone, strComments
                          strName = Request.form("Name")
                          strCompany = Request.form("Company")
                          strZip = Request.form("Zip")
                          strEmail = Request.form("Email")
                          strPhone = Request.form("Phone")
                          strComments = Request.form("Comments")

                          Dim Mail, strMsgHeader, Err
                          Mail = Server.CreateObject("Persits.MailSender")
                          Mail.Host = "email.emscorporate.com"
                          Mail.From = strEmail
                          Mail.AddAddress = ("mbogner@emscorporate.com")
                          Mail.Subject = "General - Corporate Information Request form From www.emscorporate.com"
                          strMsgHeader = "This Email Was sent from The EMS Corporate Web site" & vbCrLf & vbCrLf
                          Mail.Body = strMsgHeader & "Email: " & strEmail & vbCrLf & _
                            "Name: " & strName & vbCrLf & _
                            "Company: " & strCompany & vbCrLf & _
                            "Zip: " & strZip & vbCrLf & _
                            "Email :" & strZip & vbCrLf & _
                            "Phone :" & strPhone & vbCrLf & _
                            "Comments: " & vbCrLf & strComments
                          On Error Resume Next
                          Mail.Send()
                          Mail = Nothing
                          If Err() <> 0 Then
                              Response.Write("There has been an error and your message could not be sent through email. Please contact us directly at 1-800-615-1330. " & Err.Description)
                          End If
                     %>

                    <p>
                     <%
                         Response.Write(strName & ",<br>")
                         Response.Write("Your message has been successfully sent.")
                     %>,</p>
            </div> 

 

If It's possible, what am I missing in order to make it function properly?

 
New Post
10/30/2008 5:54 PM
 

Can you even create your own custom form within a text/html module?  Any time I have a form that posts with a submit button,it seems to essentially perform a postback, which according to MS is by design.  This article might be helpful pending on the approach you are using.

http://msdn.microsoft.com/en-us/library/ms178140.aspx

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsFeedbackFeedbackNoob Question - Modify Existing Feedback ModuleNoob Question - Modify Existing Feedback Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out