DNN Hosting Register Login
 
Latest Discussions Minimize
Furniture Showroom major crash by myearwood
Hi PengstenI sent you an email via service@bizmodules.net. It concerns the furni...
Top photos windows size restriction by OKCChopper
I have it so that i can restrict the size of the photos. However since some arn...
Users add photos by OKCChopper
Is there a way for users to add images to the correct album with out having acce...
Problem with locked folders/files by kimphamg
Hello, my DNN installation is under source control, and the scm software lock al...
An error has occurred. Error: is currently unavailable. by roocik
Hi,I'm trying to add several images to UMG 5 on my DNN 04.08.02. Some of them ca...
3d coursel problem by marbab
Hi,I just noticed that non-technical users are having problem in viewing picture...
UVG on sub portals? by coolvibe
I have UVG installed on my main portal (www.mywebsite.com) and on a sub portal (...
ShadowViewer doesnt load pictures/others do by mrhat
Hey there, we are running UMG 5.4 with the Generic Presentation Pack. Here is th...
How to change auto email texts? by jarra64
Hello,I would like to know how I can change the text of the auto-emails.Thanks
Added RSS album (Picasa) and cannot edit it. by rbarrow
I created a new album and added a Picasa RSS feed to it which works fine.  Howev...
Our Partnership Minimize
If you are looking for good DNN hosting, then PowerDNN is the best DNN host around!
Support Forum Minimize
Subject: Creating albums from SQL?
Prev Next
You are not authorized to post a reply.

Author Messages
H W
Posts:21
Silver Member

10/07/2007 10:09 AM  
Hi

We're now doing an increasing amount of our admin tasks from T-SQL as it's faster and more convenient than using the DNN web interface.

One thing I'd like to automate is the addition of new albums - especially as we are currently creating several of these every week.

So far we've prototyped this by just invoking the stored procedure BizModules_UPG_AlbumAdd.

This seems to work well - we don't seem to have to create the on-disk folder - it just seems to work :-)

Has anyone else tried this?

Does anyone know of any drawbacks to this type of approach?

Thanks

HW



--- example SQL used

DECLARE @PortalId int,
@ModuleId int,
@ParentId int,
@Title nvarchar(100),
@Description nvarchar(1000),
@Audio nvarchar(50),
@AudioCaption nvarchar(100),
@Tn nvarchar(100),
@TnWidth int,
@TnHeight int,
@CreatedDate smalldatetime,
@LastModifiedDate smalldatetime,
@CreatedByUser int,
@Owner int,
@SortOrder int,
@HeaderTemplate nvarchar(150),
@ComposeRoles nvarchar(500),
@ModerationRoles nvarchar(500),
@ViewRoles nvarchar(500),
@MaxPhotoWidth int,
@MaxPhotoHeight int,
@NeedApproval bit,
@FlickrSubscription nvarchar(1000),
@FlickrRefreshInterval int,
@FlickrLastRefreshTime datetime

SET @PortalId = 0
SET @ModuleId = 1263
SET @ParentId = NULL
SET @Title = 'Test Album'
SET @Description = 'Test Description'
SET @Audio = NULL
SET @AudioCaption = NULL
SET @Tn = NULL
SET @TnHeight = 50
SET @TnWidth = 40
SET @CreatedDate = getdate()
SET @LastModifiedDate = getdate()
SET @CreatedByUser = 1
SET @Owner = 1
SET @SortOrder = NULL
SET @HeaderTemplate = '[ALBUMNAME] - [TITLE] ([SIZE],[RESOLUTION])'
SET @ComposeRoles = 'Administrators'
SET @ModerationRoles = 'Administrators'
SET @ViewRoles = NULL
SET @MaxPhotoWidth = 600
SET @MaxPhotoHeight = 350
SET @NeedApproval = NULL
SET @FlickrSubscription = NULL
SET @FlickrRefreshInterval = 0
SET @FlickrLastRefreshTime = NULL

EXEC BizModules_UPG_AlbumAdd @PortalId,
@ModuleId,
@ParentId,
@Title,
@Description,
@Audio,
@AudioCaption,
@Tn,
@TnWidth,
@TnHeight,
@CreatedDate,
@LastModifiedDate,
@CreatedByUser,
@Owner,
@SortOrder,
@HeaderTemplate,
@ComposeRoles,
@ModerationRoles,
@ViewRoles,
@MaxPhotoWidth,
@MaxPhotoHeight,
@NeedApproval,
@FlickrSubscription,
@FlickrRefreshInterval,
@FlickrLastRefreshTime

Pengtsen R
Posts:5177


10/07/2007 10:40 AM  
it should be ok, I think there is no problems.

Pengtsen R
http://www.bizmodules.net
You are not authorized to post a reply.
Forums > Ultra Media Gallery > General Questions > Creating albums from SQL?

Enterprise level DotNetNuke Solutions Copyright © 2005-2008 BizModules   |  Contact Us  |  Terms Of Use  |  Privacy Statement