> Forums > Active Social > Themes and Templates > Creating a group category tag cloud
Last Post 17 Sep 2011 11:10 AM by Sh@wn. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Informative
Smart-Thinker
Customers
Smart-Thinker
Post Count:546

--
20 Jun 2010 06:02 AM
    If anyone wants a group category tag cloud you can make one with a module like ActiveHTML or the DNNSTuff SQL module (and maybe the core Reports module - I have not used it).

    You can see the end result on the right of my poker groups page.

    Here is the SQL:

    DECLARE @MaxScore INT
    SELECT @MaxScore =
    (
    SELECT Top 1 Count(CategoryID) As Score
    FROM activesocial_Groups G
    INNER JOIN activesocial_ItemCategories GC ON GC.ItemID = G.GroupID
    WHERE G.PortalID = 6 AND AccessType = 0
    GROUP BY GC.CategoryID
    ORDER BY Score DESC
    )
    SELECT GC.CategoryID,
    C.CategoryName AS Category,
    1 + (Count(GC.CategoryID) / (@MaxScore / 4)) AS Score
    FROM activesocial_Groups G
    INNER JOIN activesocial_ItemCategories GC ON GC.ItemID = G.GroupID
    INNER JOIN activesocial_Categories C ON C.CategoryID = GC.CategoryID
    --public
    WHERE G.PortalID = 6 AND AccessType = 0
    GROUP BY GC.CategoryID, C.CategoryName
    ORDER BY C.CategoryName

    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Tags: category tag cloud
    Sh@wn
    Customers
    Sh@wn
    Post Count:34

    --
    17 Sep 2011 11:10 AM
    Hi Rodney,
    I have used dnnstuff sqlview free edition but I don't be able to set the module (grid settings, grid styles, sorting, paging).
    Can you help me?
    thanks
    Www.Informatori.Info
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Creating a group category tag cloud
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy