Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Listing Users (again?)
Previous Previous
 
Next Next
New Post 2/11/2007 12:10 PM
User is offline Andrew Nurse
366 posts
8th Ranked






Re: Listing Users (again?) 
In the most recent version (4.4.2), I removed the filtering that was performed on the query to stop the use of 'EXEC', 'CREATE', etc. because only SuperUsers can create queries anyway. This may make it easier to do, because you could use dynamic SQL and temporary tables.

Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post 2/11/2007 1:06 PM
User is offline Rodney Joyce
1661 posts
www.smart-thinker.com
5th Ranked




Re: Listing Users (again?) 
My UserProfile module can display a list of users with a customizable template (so you can show any property etc) and search on anything. Ironically I just fixed the bug where it was including non-authorised users, but you can install the Trial and see how I have done it in the SQL...
Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 2/18/2007 4:13 PM
User is offline Dirk Decher
11 posts
10th Ranked


Re: Listing Users (again?) 

It's great to have a custom modul, but for those who have like me only a small needed amout of informations I post a basic SQL... that can help if you don't want to spend to much money just for one querry.

As I'm happy to work only in a single domain / single portal, I don't care about the modulID's, you should keep this in mind.

You can easy update the SQL statement with your ID's or extto had it with more fields. For every field that you want to add from the properties you need this part of SQL Code....
Replace the Country with your favorite name and replace the 29 with your Property ID of your field
Country= ISNULL
(
(
SELECT     UserProfile.PropertyValue
FROM         ProfilePropertyDefinition INNER JOIN
UserProfile ON ProfilePropertyDefinition.PropertyDefinitionID = UserProfile.PropertyDefinitionID
WHERE     (UserProfile.PropertyDefinitionID = 29) AND (ProfilePropertyDefinition.Deleted = 0) AND (UserProfile.UserID = Q.UserID) 
)
,
'not set'
)

 Full example:

Select
Q.DisplayName AS [Name]
, Country= ISNULL
(
(
SELECT     UserProfile.PropertyValue
FROM         ProfilePropertyDefinition INNER JOIN
UserProfile ON ProfilePropertyDefinition.PropertyDefinitionID = UserProfile.PropertyDefinitionID
WHERE     (UserProfile.PropertyDefinitionID = 29) AND (ProfilePropertyDefinition.Deleted = 0) AND (UserProfile.UserID = Q.UserID) 
)
,
'not set'
)
, Nationality= ISNULL
(
(
SELECT     UserProfile.PropertyValue
FROM         ProfilePropertyDefinition INNER JOIN
UserProfile ON ProfilePropertyDefinition.PropertyDefinitionID = UserProfile.PropertyDefinitionID
WHERE     (UserProfile.PropertyDefinitionID = 40) AND (ProfilePropertyDefinition.Deleted = 0) AND (UserProfile.UserID = Q.UserID) 
)
,
'not set'
)
, [Continental Federation]= ISNULL
(
(
SELECT     UserProfile.PropertyValue
FROM         ProfilePropertyDefinition INNER JOIN
UserProfile ON ProfilePropertyDefinition.PropertyDefinitionID = UserProfile.PropertyDefinitionID
WHERE     (UserProfile.PropertyDefinitionID = 41) AND (ProfilePropertyDefinition.Deleted = 0) AND (UserProfile.UserID = Q.UserID) 
)
,
'not set'
)
FROM
Users Q
INNER JOIN
UserProfile ON Q.UserID = UserProfile.UserID
INNER JOIN
UserRoles ON Q.UserID = UserRoles.UserID
GROUP BY
Q.UserID
, Q.DisplayName
, UserRoles.RoleID
HAVING     
UserRoles.RoleID  = 3

 
New Post 2/19/2007 4:02 PM
User is offline Alex Shirley
2189 posts
5th Ranked




Re: Listing Users (again?) 

FANTASTIC - Than Q!

Cheers

Alex


Well might as well promo one of my DNN sites as I'm here: http://www.snasty.co.uk
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Listing Users (again?)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP