Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Integrating DNN Photo field to dynamic registration
Last Post 01-30-2013 08:08 AM by jabos. 11 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
jabosUser is Offline
wading in the water
wading in the water
Posts:23
Avatar

--
01-02-2013 10:39 AM
    I found this link on research, but I cannot find this section under the control panel, within the module configuration area.


    I created a profile photo field(question type: image)

    image type: display thumbnail w/ full image link
    thumbnail type: relative
    image preview type: image button

    and in advanced field options, I linked it to "photo" field.

    When I save an image, I dont see anything in user activity feed page, still the same no_avatar.gif image. All the tiny icons that use profilepic.ashx as "src" show this error:

    Input string was not in a correct format.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: Input string was not in a correct format.

    Can you please suggest some ideas to fix this?

    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-02-2013 10:41 AM
    I am using Dynamic reg 4.20.20, DNN 6.2.5 and ASP.NET 4
    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-07-2013 04:49 AM
    help please?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-08-2013 10:27 AM
    Hello Jabos,

    After saving via Initial Registration or Updated Registration, did you see the name of the Image saved into the Profile Property named "Photo" for that User Account?

    Please go to Admin -> User Accounts, located the account you created or modified and see if the image name is present for that User Profile field.

    Please let me know if you have any questions.

    Thanks,

    Ryan
    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-08-2013 01:27 PM
    The profile property named "photo" is the default photo field for DNN.

    Here is the setup in Dynamic registration form profile photo: (screenshot - http://i49.tinypic.com/1221av6.png )

    Once I upload the image and when I go to Admin -> User accounts -> Manage profile of the user, I see nothing in the photo field (screenshot - http://i46.tinypic.com/bhwvuq.png)

    When I view the journal module, the images are broken - (screenshot - http://i49.tinypic.com/2rr525v.png )

    When I try to view the source of the thumbnail in journal module, I get this error message:

    Server Error in '/' Application.

    Input string was not in a correct format.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: Input string was not in a correct format.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:


    [FormatException: Input string was not in a correct format.]
    System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +12636309
    System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +224
    DotNetNuke.Entities.Users.UserProfile.get_PhotoURL() +336
    DotNetNuke.Services.UserProfile.UserProfilePicHandler.ProcessRequest(HttpContext context) +604
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +625
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270

    Can you tell me what I might be doing wrong?
    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-09-2013 05:23 AM
    Hello Jabos,

    I know that the Photo Profile Property is data type "Image". You can see that if you review your Photo Profile Property by going to Admin -> User Accounts -> Manage Profile Properties and edit the Photo Profile Property.

    Typically, Dynamic Registration Image Question type is going to upload a string, the string will represent one of the following:

    * Relative Path to the Image uploaded
    * Full Path to the Image uploaded

    My guess is that you're basically getting a data type conversion error. Create a new Profile Field named "UserPhoto" and make it data type String.

    Then map your Dynamic Registration Image field to the newly created UserPhoto profile field.

    Let me know if the path to the image is saved within the respective User Account when uploading an image.

    Let me know if you have any questions.

    Thanks,

    Ryan


    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-10-2013 05:48 AM
    Posted By Ryan Bakerink on 01-09-2013 07:23 AM
    Hello Jabos,

    I know that the Photo Profile Property is data type "Image". You can see that if you review your Photo Profile Property by going to Admin -> User Accounts -> Manage Profile Properties and edit the Photo Profile Property.

    Typically, Dynamic Registration Image Question type is going to upload a string, the string will represent one of the following:

    * Relative Path to the Image uploaded
    * Full Path to the Image uploaded

    My guess is that you're basically getting a data type conversion error. Create a new Profile Field named "UserPhoto" and make it data type String.

    Then map your Dynamic Registration Image field to the newly created UserPhoto profile field.

    Let me know if the path to the image is saved within the respective User Account when uploading an image.

    Let me know if you have any questions.

    Thanks,

    Ryan


    I already created a new profile field called "MyUserImage" which is having the datatype string. When I upload the image from the registration form, I see that the "file name" is being saved(example: 74f9157a-845f-4b32-9b73-c2560a53d1a1.jpg) but the DNN social modules(like journal module, member directory module, forum module etc) use the actual "photo" property to show the image.

    So either we have to make the profilepic.ashx file show "myuserimage" field or the "myuserimage" field link to the photo property. Is this possible?

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-10-2013 09:30 AM
    If the Image Name is uploaded from Dynamic Registration into a Profile Property that you created(that is of type String), then you should be able to go to Admin -> File Manage and look for the folder named:

    DynamicRegistration_Images

    If this folder doesn't exist, then simply create it by using the Admin -> File Manage create a folder functionality.

    Now you'll notice that you have a physical path to the image that was uploaded by a user. They have that image file name in their User Account Profile as well.

    So you can begin piecing together a Dynamic URL Path:

    /portals/0/DynamicRegistration_Images/[DynamicValueHere]

    I'm not exactly certain how Member Directory, Journal Module or Forum Module works, but I do know that with the instructions I've provided, that you'll be able to:

    Link to the Image that a User Uploaded upon Registration via connecting to the Profile Property and building a Dynamic URL to that Image.

    You can always run a SQL Query to obtain a value on a User by User basis utilizing the UserID.

    Select A.PropertyValue from UserProfile A inner join ProfilePropertyDefinition B on A.PropertyDefinitionID= B.PropertyDefinition where A.UserID = '[userid token here]' and B.PropertyDefinitionID = [ID of the Image Profile Property]

    That query will gain you access to the Image that a User uploaded, based on the User viewing the page.

    Please let me know if you have any questions.

    Thanks,

    Ryan


    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-10-2013 10:46 AM
    Yeah, I understand these are different ways to get the custom image field value, and this will be very useful if I am trying to use the image in a skin or in any html module.

    But the issue is all the major modules(especially the social modules) are using "/profilepic.ashx?userId=1&h=&w=" and that webhandler needs to get the image from dynamic registration images folder instead of the DNN photo field. Is that possible?

    This is what I see in the web.config file:

    Ryan BakerinkUser is Offline
    river guide
    river guide
    Posts:1900
    Avatar

    --
    01-11-2013 10:42 AM
    Hello,

    You can refer to this post:
    http://www.activemodules.com/active...ase-field/

    You'll notice that in order to get a profile picture to operate in Active Social, an image must be saved to the Portals/{id}/activesocial/profile/_icons directory and must be named correctly.

    More generally, you can refer to this post:
    http://www.dotnetnuke.com/Resources...posts.aspx

    You'll want the Dynamic Registration image to be uploaded into the respective section:
    Portals\_default\Users\001\01\1

    This is how the Profile Photo is determined within several Social modules, other modules have their own resources.

    I'm really only able to support Dynamic Registration as it's not really my place to support other third party modules.

    Please let me know if this helps.

    Thanks,

    Ryan
    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-28-2013 10:00 AM
    Ryan,

    I found that there is an ashx file in the dynamic user directory module which can display the images uploaded to the custom image field

    /DesktopModules/Dynamic%20User%20Directory/DUDThumbNail.ashx?width=50&height=50&Image=/Portals/0/DynamicRegistration_Images/[UserPhoto]

    Just wanted to confirm with you before I try it on our site, this be used in place of "/profilepic.ashx?userId=[userid]&h=50&w=50", right???
    jabosUser is Offline
    wading in the water
    wading in the water
    Posts:23
    Avatar

    --
    01-30-2013 08:08 AM
    It is supposed to work with the token [userimage], but the url is not properly formed...

    /DesktopModules/Dynamic%20User%20Directory//DUDThumbNail.ashx?width=150&height=150&Image=/Portals/0/DynamicRegistration_Imagesimagename.jpg

    There is a "/" missing in between DynamicRegistration_Images and imagename.jpg
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi