Quick login...
 

 

SnowCovered Top Sellers

View Active Social Suite for DNN
Active Social Suite for DNN
 by Active Modules, Inc.
Active Social is customizable social networking solution that fits the needs of a large company, small group, start-up business, or any size interest group. Connect with co-workers, people with similar interests, family, old friends, or meet new ones. Active Social provides a complete communication ...read more
Posted: Thursday, October 29, 2009

View Ultra Video Gallery 3
Ultra Video Gallery 3
 by BizModules.net Solutions
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 and play them in our integrated flash video player....read more
Posted: Friday, February 13, 2009

View Event Calendar and Registration 3.0
Event Calendar and Registration 3.0
 by Invenmanager.com
One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!...read more
Posted: Sunday, July 12, 2009

View Ultra Media Gallery 5.5
Ultra Media Gallery 5.5
 by BizModules.net Solutions
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....read more
Posted: Wednesday, May 13, 2009

View Dynamic Forms 3.1
Dynamic Forms 3.1
 by Data Springs, Inc.
In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts. ...read more
Posted: Tuesday, September 29, 2009

View Puure // Skin Tuning // DNN + Sharepoint // W3C v1.1
Puure // Skin Tuning // DNN + Sharepoint // W3C v1.1
 by BIND (www.bind.pt)
Puure is the first cross-platform skin pack, with DNN or Sharepoint versions. With Skin Tuning available, it includes Ultimate JQuery Header module free! Discover our DNN Modules Skin Add-On, one you can't miss. 100% W3C CSS/XHMTL1.0 compliant, for DNN4 and 5. NEW! Add-On for Open-Document Library...read more
Posted: Tuesday, November 03, 2009

View Open-DocumentLibrary 4.1
Open-DocumentLibrary 4.1
 by Xepient Solutions
Powerful, Ajax Enabled, Easy to Use. Document Management and Multimedia gallery functionality in one.Open-DocumentLibrary allows DotNetNuke users to organize share and manage documents, offering granular control over Folder and Document access....read more
Posted: Wednesday, April 01, 2009

View Flex2 By DrNuke + EasyMod Module
Flex2 By DrNuke + EasyMod Module
 by DrNuke
The amazing ANY COLOUR Flex2 skin + our unique EasyMod module allowing you to customise just about everything in this skin. DrNuke just re-wrote the rule book again....read more
Posted: Wednesday, May 13, 2009

View Dynamic Registration 3.2
Dynamic Registration 3.2
 by Data Springs, Inc.
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.........read more
Posted: Tuesday, June 17, 2008

View Data Springs Collection  3.0 (23 Modules)
Data Springs Collection 3.0 (23 Modules)
 by Data Springs, Inc.
Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you....read more
Posted: Sunday, September 27, 2009

Recently Viewed...
DNN Modules
   
    |   Register   |   Thursday, September 02, 2010   
Hi Everyone!

You'll notice that we implemented a small change where your first and last name are now displaying in the forums.  If you do not wish to display your last name, please update your user profile and add a display name.  You'll find this by clicking on your name at the top of the page (right next to the Logout link).  Thanks!

Data Springs Product Forums...
Subject: UserID blank in template
Prev Next
You are not authorized to post a reply.

Author Messages
Brian English
Posts:17
wading in the water
wading in the water

05/15/2009 5:30 AM  

I am using the dynamic user directory module, v 2.5.  I have set up an Item template and need to use the [UserId] Token.  Problem is the UserId does not show.  I am able to use the rest of the tokens fine, and they display no problem.  Just this one token is giving me problems.

Any one have any ideas where I am going wrong?

David To Host
Posts:54
river guide
river guide

05/15/2009 12:25 PM  
HI Brian, can you try and duplicate this on www.betasprings.com (username: host, password: dnnhost)? If possible, send us the URL so we can take a look at the setup since the userid should work. -- David
Brian English
Posts:17
wading in the water
wading in the water

05/15/2009 12:50 PM  

Thanks for the response David.  I am pretty sure that it is a user error, as I was able to duplicate it on the test site: 

http://www.betasprings.com/UserDirectory/BrianUserDirectoryTest/tabid/630/language/en-US/Default.aspx

This is just a simple version of what i was trying to do, and this is supposede to have

[UserID]
[FirstName] [LastName]
[Email]

as you see on the test site, the userid does not display.

Brian English
Posts:17
wading in the water
wading in the water

05/19/2009 6:19 AM  

Any pointers as to what I am doing wrong here? 

David To
Posts:2742
river guide
river guide

05/20/2009 1:15 PM  
Nope, you are doing things correctly. We are working on a fix/patch for DUD. -- David
Nicolo
Posts:7
skipping stones
skipping stones

06/04/2009 7:24 AM  

When will this fix be available?

Kind regards
Nicolo

Nicolo
Posts:7
skipping stones
skipping stones

08/26/2009 10:54 PM  

Hello

Still avaiting your solution! Or did i miss the patch?

Kind regards
Nicolo

melgert
Posts:6
skipping stones
skipping stones

08/27/2009 6:03 AM  

Users discovered a bug "UserID blank in template". I believe the bug is for the reason the UserID is passed in the URL as "tabid/89/Detail/True/UserID/15/Default.aspx' for users needing the UserID passed in the form of a query string as "tabid/89/Detail/True/UserID/15/Default.aspx?AccountID=15"

I created the following workaround on my blog at "http://www.vessea.com/Blog/tabid/58/EntryId/29/Data-Springs-Dynamic-User-Directory-Module-UserID-blank-in-template.aspx"

Step 1: Create a property field named in my example I created "AccountID" this will be the field that has the "UserID" value.



Step 2: Create a stored procedure below is a sample working stored procedure I used on my site.

-- CODE COPY BEGIN

USE [VesseaProdPortal]
GO
/****** Object:  StoredProcedure [dbo].[Game_AccountUpdate]    Script Date: 08/30/2009 01:27:31 ******/
IF EXISTS (SELECT *
           FROM   sys.objects
           WHERE  object_id = Object_id(N'[dbo].[Game_AccountUpdate]')
                  AND TYPE IN (N'P',N'PC'))
  DROP procedure [dbo].[game_accountupdate]
GO
USE [vesseaprodportal]
GO
/****** Object:  StoredProcedure [dbo].[Game_AccountUpdate]    Script Date: 08/30/2009 01:27:31 ******/
SET ansi_nulls  ON 
GO
SET quoted_identifier  ON 
GO
-- =============================================
-- Author: Matthew David Elgert
-- Create date: 8/30/2009
-- Description:    VESSEA Game Account Update
-- Example: EXEC [dbo].[game_accountupdate]
-- =============================================

CREATE PROCEDURE [dbo].[game_accountupdate]
AS
  BEGIN
    /*T-SQL loop values BEGIN */
    DECLARE  @RowCount INT,
             @I        INT,
             @UserID   VARCHAR(8),
             @CDT      DATETIME
    SET @RowCount = 0
    SET @UserID = 0
    SET @I = 1
    SELECT @CDT = Getdate()
    DECLARE  @USERS  TABLE(
                           recid    INT   IDENTITY ( 1 , 1 ),
                           [userid] INT
                           )
    /*T-SQL loop values END */
  
    /*T-SQL collect the empty accounts that get update into a temp table BEGIN*/
    INSERT INTO @USERS
               ([userid])
    SELECT p.[userid]
    FROM   [dbo].[userportals] p
    WHERE  p.[portalid] = 1
           AND [userid] NOT IN (SELECT DISTINCT [userid]
                                FROM   [dbo].[userprofile]
                                WHERE  [propertydefinitionid] = 71)
    SELECT @RowCount = @@ROWCOUNT
    /*T-SQL collect the empty accounts that get update into a temp table END*/
   
    /*T-SQL loop through and update accounts BEGIN */
    WHILE (@I <= @RowCount)
      BEGIN
        SELECT @UserID = (SELECT [userid]
                          FROM   @USERS
                          WHERE  recid = @I)
        EXEC dbo.Updateuserprofileproperty
          @ProfileID = NULL ,
          @UserID = @UserID ,
          @PropertyDefinitionID = 71 ,
          @PropertyValue = @UserID ,
          @Visibility = 2 ,
          @LastUpdatedDate = @CDT
        SET @I = @I
                   + 1
      END
  /*T-SQL loop through and update accounts END */
 
  END
GO

-- CODE COPY END

 Step 3: Create a VB class at /App_code below is the sample class I created for my site named VESSEASchedulerGameAccountUpdate.vb.

'CODE COPY BEGIN

'DNN Schedule name - VESSEA.SchedulerGameAccountUpdate

Imports System.Collections
Imports System.Globalization
Imports DotNetNuke.Modules.Events

Namespace VESSEA
    Public Class SchedulerGameAccountUpdate
        Inherits DotNetNuke.Services.Scheduling.SchedulerClient

#Region "Constructors"
        Public Sub New(ByVal objScheduleHistoryItem As DotNetNuke.Services.Scheduling.ScheduleHistoryItem)
            MyBase.new()
            Me.ScheduleHistoryItem = objScheduleHistoryItem
        End Sub
#End Region

#Region "Methods"
        Public Overrides Sub DoWork()
            Try
                'notification that the event is progressing
                Me.Progressing()        'OPTIONAL
                Dim returnStr As String
                returnStr = HandleScheduler()
                Me.ScheduleHistoryItem.AddLogNote(returnStr)
                Me.ScheduleHistoryItem.Succeeded = True     'REQUIRED

            Catch exc As Exception      'REQUIRED
                Me.ScheduleHistoryItem.Succeeded = False    'REQUIRED
                Me.ScheduleHistoryItem.AddLogNote("Scheduler Game Account Update." + exc.ToString + Me.Status)    'OPTIONAL
                'notification that we have errored
                Me.Errored(exc)         'REQUIRED
                'log the exception
                LogException(exc)       'OPTIONAL
            End Try
        End Sub

        Private Function HandleScheduler() As String
            Try
                Me.Progressing()
                Dim mySqlString As New StringBuilder()
                mySqlString.Append("EXEC [dbo].[game_accountupdate]")
                DataProvider.Instance().ExecuteSQL(mySqlString.ToString())

                'Create log message
                Me.ScheduleHistoryItem.Succeeded = True    'REQUIRED
                Me.ScheduleHistoryItem.AddLogNote("Task completed with out errors." + Me.Status) 'OPTIONAL

            Catch ex As Exception
                Me.ScheduleHistoryItem.Succeeded = False
                Me.ScheduleHistoryItem.AddLogNote("Scheduler Game Account Update failed. " & ex.ToString)
                Me.Errored(ex)
            End Try

        End Function

#End Region

    End Class

End Namespace

'CODE COPY END

Step 4: Create a  schedule service login as host go to schedule.


 

Create a service name in my example I call the service "VESSEA.SchedulerGameAccountUpdate" schedule to run every 5 minutes.



Step 5: Select the [AccountID] this field returns the [UserID] value now.

This will work around the blank [UserID] field issue and return the following URL for a query string http://www.yourdomainname.comtabid/89/Detail/True/UserID/15/Default.aspx?AccountID=15

melgert
Posts:6
skipping stones
skipping stones

08/30/2009 3:24 AM  

Nicolo I created a work around at http://www.vessea.com/Blog/tabid/58/EntryId/29/Data-Springs-Dynamic-User-Directory-Module-UserID-blank-in-template.aspx

Chad Nash
Posts:3828
river guide
river guide

09/02/2009 1:42 PM  
Hi guys... This is a great work around and thanks for posting this. We have fixed this already so if someone else runs into the [UserID] not coming into Dynamic User Directory please contact us by opening a support case or the contact us page directly and we can get this to you.

-Chad
You are not authorized to post a reply.



ActiveForums 3.7
DNN Modules
Copyright 2005 - 2010 by Data Springs, Inc.
Terms Of Use | Privacy Statement