> Forums > Active Social > General Discussion > Custom Controls?
Last Post 06 Sep 2011 04:20 PM by Steven Webster. 6 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Steven Webster
Customers
Steven Webster
Post Count:1665

--
20 Aug 2011 04:18 PM
    I've seen a number of references to adding custom controls to Active Social.  Up until now I've not needed to do anything like this...but recently a request came in to add a randomized message within an active social new (welcome center).  I can easily create a new DNN skin object but I can't seem to get DNN skin objects to run within Active Social.

    What is the best way to make this happen?
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    22 Aug 2011 03:16 PM
    How would you normally load it in DNN? What exactly are you trying to add? (What files? Javascript? Code Behind? Extra CSS?)

    More details will help. I am pretty sure I can help you with this.

    I don't already have anything written up for exactly how to do this process though.
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    23 Aug 2011 11:00 AM
    Well initially something simple like including my own derived label or literal within an AS template. In this case it's the welcome center to it's in the skin....basically I'd like to create a custom skin object that displays random resource files. So when you log in you see "Hello Ben, you look fabulous today" or Hello Ben, How it's going?", etc.

    Currently when I place any .net control within the welcome center code on the skin it blows up.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    25 Aug 2011 01:49 PM
    Sorry for the lack of reply here Steven, I have been trying to work on this in my spare time.

    About a year ago I wrote a web service that loaded in a profile tab (making calls to the ZenDesk API) so I know it is possible to run custom code. But unfortunately, I lost all my work on my old PC. So I am trying to put the pieces back together and remember exactly how the files need to be set up and where the code needs to be added.
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    25 Aug 2011 02:10 PM
    Ben that's encouraging that you got it working. Bummed that you lost it. (I lost a lot of code I had on a laptop a few year back when my hotel room was robbed at a trade show....not cool). In any case, if you can give me some of the bread crumbs....I would love to start small and then possibly expand by adding more custom functionality within the module.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    06 Sep 2011 01:45 PM
    Regarding the ProfileView you can embed a control by placing the declartion code at the top of the ProfileView template (I hope the tags render OK after I post this):

    
    <%@ Register src="/Portals/0/0_Utility/UserSummary.ascx" tagname="UserSummary" tagprefix="uc1" %>
    


    note that each different control requires a unique tagprefix. it has been my experience that the control should reside withing the /Portal/ heiarchy to work properly

    Then to place the control on the on the page, find the correct spot and put in somet like this:

    
    <uc1:UserSummary ID="UserSummary1" runat="server" ForceUserID="[DNN:PROFILE:USERID]" BattleMode="false" />
    



    you can see this in action at: http://warbeats.com/users/nfx where you will see that under the profile pic I have some badges displayed. I am also using another control on a custom tab to display the MP3 player.

    notice that you can set your control properties as I am doing with ForceUserID and BattleMode
    Status: I'm no longer moderated.
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    06 Sep 2011 04:20 PM
    NFX - Awesome!!!!

    Any luck doing something like this within the Active Forums templates? I've like to include badges in either PostInfo or Sigs

    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    You are not authorized to post a reply.
    > Forums > Active Social > General Discussion > Custom Controls?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy