Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Sharepoint Forums
Newsletter
Dynamic Forms Demonstrations
Page Tags
DNN Modules
SnowCovered Top Sellers

One stop solution for events calendar and events registration! Demo site available for free trial.

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

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.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

The award winning discussion forum and community solution for DotNetNuke is now even better. When you need to build the best community site, you need the best module, Active Forums!

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.

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!Available for DNN4 and DNN5

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

A 16-in-1 dnn module.Powerful yet easy to use. Capable of producing a multitude of functions including:Image rotator/Numeric rotator/ Mp3 player/Wmv player/ Flash video player /YouTube video player/Multimedia player / Text-to-speech podcast / Flipping book player/Banner topic player/Silverlight albu

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

    |   Register   |   Friday, January 09, 2009   
Data Springs Product Forums...
Subject: default image query
Prev Next
You are not authorized to post a reply.

Author Messages
Avi
Posts:23
going with the flow
going with the flow

03/11/2008 2:12 AM  

Hi Chad,

As you have suggested I'm asking for a query solution for a scenario where the user will leave the image field blank and yet it will be displayed somewhere on a page.

Thanks.

Avi
Posts:23
going with the flow
going with the flow

03/11/2008 2:24 AM  

If he could actually view a few default avatars it was even better, but that is not urgent.

Thanks.

Chad
Posts:2388
river guide
river guide

03/12/2008 1:40 PM  
Ok, well you can use a SQL Event to update the UserProfile Property for that user to be '' if its empty.

First you have to file out the property definition Id. If you are on the manage profile properties page and look at the edit link (the URL) you will see the ID. Something like /PropertyDefinitionID/342/ etc... This means that the ID for your field is 342. You will need that in the query.

Then, I would start with a few tests... Something like this:

Update UserProfile
Set PropertyValue = 'DefaultImage.gif' where UserID = $(UserID) and PropertyDefinitionID = 342 AND PropertyValue = ''

If the property doesn't exist at all you might have to pass it to a stored procedore or do an insert statement. I would test this first without using a SQL event and just updating or adding for a specific userID under Host, SQL.

It depends how familiar you are with SQL to test this but that should get you started.

You might also see if you can set the 'default value' for the field within Dynamic Registration. Not sure if that is an option with the image field type but if not we will review this down the road.


-Chad
Avi
Posts:23
going with the flow
going with the flow

03/16/2008 6:22 AM  
Ok,
that solved that problem:
[Profile:Image|{0}|avataralter.gif]

Thanks.
You are not authorized to post a reply.



ActiveForums 3.7

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