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 ForumsRepositoryRepositoryUserInfoUserInfo
Previous
 
Next
New Post
6/14/2007 4:02 PM
 
UserInfo  Modified By Tim Workman  on 6/14/2007 4:03:28 PM

I have a need to include additional contact info for the person uploading a file.  I am hijacking the Summary field for this purpose and using it as a Contact Info field.  I would like to avoid having registered users, many of which can be expected to upload numerous items on a repeating basis, from having to retype their contact info with each new upload.  I could educate them to simply "cut and paste" into the Form.ascx Summary input text box but that's a really ugly idea. 

I wonder if the following code change in FORM.ascx would work as expected.  The idea being that for each NEW upload, the Summary field would prepopulate with the registered users UserInfo.Profile information.  In the case of an edit, this data would be pulled from the database.  I expect it would work much like the Author field.

Private Sub CreateInputForm() 

Case "SUMMARY"
           If objRepository.ItemId = -1 Then
                 '   Original code>>>TESummaryField.Text = oRepositoryBusinessController.GetSkinAttribute(xmlDoc, "SUMMARY", "Default", "")

                 NEW>>TESummaryField.Text = UserInfo.Profile.FullName & UserInfo.Profile.Company & UserInfo.Profile.City & UserInfo.Profile.Country & UserInfo.Profile.Telephone & UserInfo.Profile.Cell & UserInfo.Profile.Fax & UserInfo.Profile.Website
           Else
                TESummaryField.Text = objRepository.Summary
           End If

Anybody see any problem with this idea?  This seems to be a minimal core code change but I'm not sure how to force linebreaks (code the appropriate <BR> into the above line).  Can anybody demonstrate how to incorporate the necessary HTML to help with the displaying of the data?  Looking for come feedback/comments.

Thanks

 
New Post
6/15/2007 6:28 AM
 

That should work just fine. I believe all you'd need to do for the linebreaks is to add the BRs in your string for the linebreaks

TESummaryField.Text = UserInfo.Profile.FullName & "<br />" & _
  UserInfo.Profile.Company & "<br />" & _
  UserInfo.Profile.City & "<br />" & _
  UserInfo.Profile.Country & "<br />" & _
  UserInfo.Profile.Telephone & "<br />" & _
  UserInfo.Profile.Cell & "<br />" & _
  UserInfo.Profile.Fax & "<br />" & _
  UserInfo.Profile.Website

 
New Post
6/20/2007 2:49 AM
 

Works perfectly.  Thanks.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryUserInfoUserInfo


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