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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Adding an Image Datatype Entry - <font color="#006600">Make $50-$100</font>Adding an Image Datatype Entry - Make $50-$100
Previous
 
Next
New Post
6/10/2008 4:10 AM
 

Oh, and as Bill pointed out, the true problem also is where to store all the necessary settings.


Cheers,
Philipp Becker, Peppertree Solutions
 
New Post
6/21/2008 8:19 PM
 

Make $50 - $100 if you can provide documentation on adding an Image Datatype Entry to the DNN Profile Property Editor. Let me be clear...I don't want a module to add an image to the user's profile...I want an Image Datatype.

 
New Post
6/22/2008 11:42 PM
 

Charles Nurse We Need Your Help! I have thought alot about your documentation on creating new editor controls and have a question before I begin. Do you recommend having an image upload control in the profile property editor? The chart below shows your organization structure of the editor controls and need some advice on how to implement a new image upload control in the profile property editor.

EditControls.png

Where in the organizational structure would you implement the image upload control in the profile property editor?

 

 
New Post
6/27/2008 5:00 AM
 

I find these information, hope it can help you to resolve the problem.
I don't want to hold your money. However, I wish you can write the aritcle about "How to resolve the problem(add photo to profile)" .

url of the information are :
http://www.ventrian.com/Support/ProductForums/tabid/118/forumid/12/tpage/1/view/topic/postid/27303/Default.aspx#29628

http://www.dnndevzone.com/Library/tabid/126/ArticleId/4/Default.aspx

 

Wish you succeed

 
New Post
6/27/2008 10:02 AM
 

I did respond to you or someone else on the same topic in another thread.

There are two ways you can store the information.

  1. If you decide to store the information as a url to the "image" then you should override the TextEditControl.  The Upload control would "save" the file in a location on your site - and the "location" would be stored as a URL in the profile.  The view mode would then display the url - using an <img> tag.
  2. If you decide to add the file to the datastore using the DNN File/Folder API, then you could store the FileID in the proile - In this case as the FileID is an INteger you would inherit from IntegerEditControl.

I have actually built one that you could use - it is part of the "DotNetNuke Module Toolkit" that I have added to the DotNetNuke Forge on Codeplex - http://www.codeplex.com/dnnModuleToolkit.  In this toolkit you will find under "Controls" a FileControl (FileControl.cs) which is a generic File Control, and under Controls/EditControls are two controls - FileEditControl.cs and ImageEditControl.cs that wrap this control for use in the profile.

 


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Adding an Image Datatype Entry - <font color="#006600">Make $50-$100</font>Adding an Image Datatype Entry - Make $50-$100


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