Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Overview on Installing Sharepoint 2007
Sharepoint Forums
DNN Modules
SnowCovered Top Sellers

Ultra Media Gallery 5.3
Ultra Media Gallery is the most popular photo gallery and media gallery module for DotNetNuke, the major purpose of this module is to allow you create unlimited pictures and medias to your gallery and organize them by albums, your albums and medias are browsed in flash interface.

Flex By DrNuke
The Flex skins are professionally designed, coded and packaged by a team of DotNetNuke experts. Available in 8 great colours, each with 15 banner images, 2 menu types and a choice of 3 background styles. The entire pack features a total of 2448 skins!

Ultra Video Gallery 2.3
Ultra Video Gallery is a brother product of Ultra Media Gallery, The major purpose of this product is to provide an easy way to add videos in various formats to your website by and play them in a unique flash gallery.

Open-DocumentLibrary v3.0
Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

Engage: Publish 5.1
Content Workflow + Versioning + Categorization + Multiple Display Options = Truly Advanced DotNetNuke Content Management (Requires DNN 4.5.1 or later)

XMod 5.1
Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

CATALooK.netStore Pro & Booking Tools w/source DNN4
Powerful multilingual, search engine optimized ecommerce store and renting/letting system including a concept utilizing many business models in one application integrates:Catalog,Media gallery,Configurator,Packages,Data entry forms,Subscriptions,Recurring billing,40+ CC Gateways,UPS and USPS support

Form Master 1.6 For DNN 4
Form Master 1.6 improves on the success of version 1.5 with new features in Function, and Presentation, while maintaining the Intuitive User Interface. Form Master 1.6 delivers visual form design where input fields can easily be created, modified, and moved.

DNNMasters SEO Suite Enterprise w/Source
If you want better Search Engine ranking you need KeepAlive, URL Rewrite, Custom 404 error, Custom Redirect, Friendly URL's, Sitemap, Google Sitemap.DNNMasters SEO Suite delivers all of it and more!

Document Exchange Professional 4
Edit documents directly on your server using the latest iteration of the premier document management solution for DotNetNuke (DNN). With a completely revised Ajax-enabled UI.
    |   Register   |   Thursday, August 28, 2008   
Data Springs Product Forums...
Subject: Default value for image field
Prev Next
You are not authorized to post a reply.

Author Messages
Ahmet
Posts:7
skipping stones
skipping stones

06/16/2008 2:36 PM  

I have core field called Photo integrated with Image field in dynamic registration. What I want to achieve is this: in dynamic registration, Image is optional, user can leave it blank. If it is so, I want to write "NoLogo.gif" to core Photo field. Therefore if user will upload the photo, both core field called Photo and Image field in dynamic registration shall be the same, but if user will not upload photo, dynamic registration field Image shall be empty but core field Photo shall be "NoLogo.gif". How can I achieve this?

Cheers,

Ahmet Cetin

Ahmet
Posts:7
skipping stones
skipping stones

06/17/2008 12:00 PM  
No idea? Is there any option like "Don't update core field, if user will leave empty this filed"?
Chad
Posts:1863
river guide
river guide

06/17/2008 4:04 PM  
Hi. We actually had a test page up on Beta Springs that was using this but I can't seem to find it now. We are also working on a demonstration which should cover this.

I believe what you can do is set a 'default value' under Advanced Field Options, Default Value. Set the default value to be the URL or patch to the 'NoLogo.gif' and it will be displayed initially and the user can then change it. The other option would be to use a SQL Completion Event.

-Chad
Chad
Posts:1863
river guide
river guide

06/17/2008 4:07 PM  

Are you looking for something like this:

Dynamic Registration w/ Default Image

In this example its inserting an image as the default value:

Ahmet
Posts:7
skipping stones
skipping stones

06/18/2008 2:18 PM  

Yeah, similar. I did this before, but it's not working properly as expected, especially when I integrate it with a core field. I need to integrate it with a core field, because I'm using another module to use core field showing the picture. Here is my web site:
http://www.birvarmis.com
Try to register there, then click on "Benim Sayfam", second from the right in menu, after login. The second picture under Updated label is read through the core field. It looks ok for now. Then click on your user name to change your picture.

First thing I noticed, when you Upload New File, it doesn't work as espected really. It show the Browse field but after you select the file, sometimes it shows Upload button sometimes not. When you click on Update Registration, it doesn't show the picture there until you reload the page.

Another thing is, there is no possiblity to remove the picture later. Actually, I would like to replace the user's picture with NoPicture.gif when user wants to remove the picture.

The interesting problem is, to show the default picture, you need to enter full path/address to the default value field, as a result, when you register is saves full path of the image to the core field. But later, when you change picture after initial registration, it saves only the name of the file without the path to the core field. Therefore, it is not possible to show the picture on other module based on the file in the core field.

These problems make impossible to use image field reliably. Any suggestion for these problems?

Cheers,

Ahmet Cetin

Ahmet
Posts:7
skipping stones
skipping stones

06/19/2008 11:30 PM  

Any suggestion?

Chad
Posts:1863
river guide
river guide

06/20/2008 1:43 PM  
Hi. We are working on setting up a demonstration within the next few days/weeks and should either outline the proper way to do this, or we will be able to determine if something doesn't appear to be working as it should. I do know that you shouldn't have a problem implementing our Dynamic User Directory with the module, as its just storing the filename you can reference that filename with the full path etc... As far as other modules referencing it, I would imagine you could do this (or really anything for this solution) with some advanced SQL Events.

For example, lets say you need the full path, right now if you map the field to 'MyImage' core field it will just store the filename. But you could easily setup another field called 'MyImageFullPath' and use a SQL event so that when a user registered the system would update two core fields, and possible the other module would reference the core property that included the full path? Just a thought, with SQL events its just a matter of finding 'what you need the core property to include (full URL, just the filename, etc...'.

The 'default image' ill have to reserach more, I also thought that this is something that could be handled, it also could use a SQL event though and if the default image was somehow '' or blank, it could set it to be the default.

Ummm.....

Finally... Currently, the module is supposed to allow the user to 'Browse' for an image, however no image ever gets uploaded until the user Registers or Updates their registration. We are reviewing more advanced image upload components that we might include to the next release which would upload the image right when they browsed, allow them to change it right then and preview the image before they ever click Register. The way you described the process sounds like its working as designed... The next time they come to the page (after signing in) there is an option to 'Upload New Image', in which they can change their image there.

Does any of this help?


-Chad
Ahmet
Posts:7
skipping stones
skipping stones

06/21/2008 2:40 AM  
Hello Chad,
Thanks for the reply. For having filename only on core field is not a problem, I handle it. The problem appears when I use default value. When you use default value (http://servername/portals/x/images/nophoto.jpg) to show the image when a new user registers, it writes the full path to the core field. But later when user uploads his picture, module writes only the filename. This is the problem, it writes in two different ways when you utilize the default value. Otherwise it is ok.

Also handling the file upoload using ajax could help showing it just after upload.

Cheers,

Ahmet Cetin
Chad
Posts:1863
river guide
river guide

06/23/2008 12:13 PM  
Hi. Ok, ill check this out. Yes, I can see that if the default is referenced from a full HTTP URL such as this, the module is not going to be able to upload that specific file and save it to the directory as the other filenames (at least at this time). So... What about this (at least as work around or interim solution):

1. Have a copy of that image and upload it to the DynamicRegistration_Images directory. Name it something like 'DefaultImage.jpg'

2. Setup a SQL Completion Event, you can either setup the SQL as a stored procedure to check the value (and if its equal to the full http reference then execute it in an IF statement) or, if you can setup the SQL completion event specify to only execute if the value is equal to that URL. Then setup the SQL such as this:

Update UserProfile Set PropertyValue = 'DefaultImage.jpg'
Where UserID = $(UserID)
AND PropertyDefinitionID = 31
AND PropertyValue = 'http://servername/portals/x/images/nophoto.jpg'

Would this work? This would be assuming the profile property ID was 31. You can go to Admin, User Accounts, Manage Profile Properties, and when you hover over specific core fields you will see the URL with the property definition ID in it. Such as PropertyDefinitionID/31/ etc...

I think this would work as a work around?

-Chad
Chad
Posts:1863
river guide
river guide

06/25/2008 6:37 PM  

Ahmet,

Hi. I wanted to follow up with a few comments. We are in the process of working on some demonstrations (directly involving an image field, user directory, default image, etc...). When this is ready you can find it at dynregdemo.datasprings.com.

Anyway... In the process of this demonstration and some of the comments from the forums, we have added several enhancements to the image field type and how a default image works. These will be found in an updated patch/how fix out shortly (still 3.2 release) and will offer the following features:

  • Default values, now you can define a default value as a standard filename (and make a copy of that file and include it in the DynamicRegistration_Images directory ). If the default file starts with HTTP it will bring in the full URL, otherwise it will assume that the file you want as the default is in the directory. This should take care of your concerns regarding filename being saved VS full URL being saved.

 

  • There is a preview option now available - this preview option can be implemented in several methods:

 

  1. Link Button (a link button which localizable text will be displayed after clicking browse to be able to preview the file based on the image settings such as thumbnail, full image, etc...)
  2. Image Button (an image button which is localizable will be displayed after browsing for an image. This image button will be defaulted to an image located in the desktopmodules\Dynamic Registration directory but can be changed via localization (under Admin, Languages)
  3. Automatically - This will automatically execute the preview feature as soon as the user chooses the filename after clicking browse. This feature will work without the user ever having to click another icon/button and is a very useful feature.


As always - thanks for your feedback and helping to improve our products. We encourage other users to post enhancements or questions/feature requests that might be useful. A few other items we might review include ability to change what directory images are stored in and also ability to set the maximum allowed image size etc...


This should be released by Jul 1st.


Thanks!

-Chad

Ahmet
Posts:7
skipping stones
skipping stones

06/28/2008 1:41 AM  
Hm, it sounds promising I can't wait the demo site and the next release then.
Ahmet
Posts:7
skipping stones
skipping stones

07/04/2008 4:03 AM  
Hello Chad,

Any news on this? I've checked the link you mentioned, but it looks it's not working still.

Cheersm

Ahmet
You are not authorized to post a reply.



ActiveForums 3.7

Copyright 2005 - 2008 by Data Springs, Inc.
Terms Of Use | Privacy Statement