Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Optional modules are missing after upgrade from DNN 4.8.4 to DNN 6.2.1Optional modules are missing after upgrade from DNN 4.8.4 to DNN 6.2.1
Previous
 
Next
New Post
4/26/2013 11:37 PM
 

Hi all,

I found the reason why those modules missing from control bar.

The old module definition in DNN 4.X has no portals area using limitation. The DNN 6/7 added the new portals limitaiton for Ribbon Bar/Control Bar.

You can just assgined  all preemius modules in the module settings page for those modules.

I have wrotten a sql script to complete those works under DNN7:

BEGIN TRANSACTION UpdateModuleLocations

declare @DesktopModuleID as int,@PortalDesktopModuleID as int, @PortalID as int, @UserID as int
Set @UserID = 1

DECLARE my_cursor CURSOR FOR
select pt.PortalID,dm.DesktopModuleID from {databaseOwner}[{objectQualifier}DesktopModules] dm
    inner join {databaseOwner}[{objectQualifier}Packages] pa on dm.PackageID=pa.PackageID and pa.PackageType='Module'
    ,{databaseOwner}[{objectQualifier}Portals] pt
    Where dm.DesktopModuleID not in (Select pdm.DesktopModuleID from {databaseOwner}[{objectQualifier}PortalDesktopModules] pdm)
OPEN my_cursor
-- Perform the first fetch.
FETCH NEXT FROM my_cursor INTO @PortalID, @DesktopModuleID

WHILE @@FETCH_STATUS = 0
BEGIN
    exec {databaseOwner}[{objectQualifier}AddPortalDesktopModule] @PortalID,@DesktopModuleID,@UserID
    Select @PortalDesktopModuleID=@@IDENTITY
    exec {databaseOwner}[{objectQualifier}AddDesktopModulePermission] @PortalDesktopModuleID,7,0,@UserID,NULL,@UserID

    FETCH NEXT FROM my_cursor INTO @PortalID, @DesktopModuleID
END

CLOSE my_cursor
DEALLOCATE my_cursor

COMMIT TRANSACTION UpdateModuleLocations;
Go

Please  clear the cache after you run those sql scripts.



Developer in NovaSoftware, a professional oursoursing company in China(http://www.novasoftware.com/Developer/DotNetNuke.aspx). Majoring in DotNetNuke techniquche, such as custom modules development, skin implementation & DNN web site solution.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Optional modules are missing after upgrade from DNN 4.8.4 to DNN 6.2.1Optional modules are missing after upgrade from DNN 4.8.4 to DNN 6.2.1


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out