> Forums > Active Social > Themes and Templates > HOWTO: Integrating SunBlogNuke to Active Social User Profile Tabs
Last Post 11 Oct 2011 10:31 AM by Richard. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Matt Marlor
Customers
Matt Marlor
Post Count:375

--
07 Jul 2010 09:30 AM
    Active Social has some powerful extensibility capabilities which you can leverage with your SunBlogNuke installation. For example, you can add an additional tab to the Active Social user profile page, and load the SunBlogNuke "Content Slider" widget within it - giving you a "My Blogs" tab.

    The cool thing about this is that then you can apply the same learning to integrate other modules that can use a custom user key.

    You must be running SunBlogNuke v3.6.2 to successfully integrate with ActiveSocial. I would recommend using at least ActiveSocial 1.6.

    1. Create a new page called "My Blogs"

    I added it as a child of the profile page, and hidden from the menu. There's no reason for this to show in the navigation for the site. This is purely a placeholder to store the Content Slider widget that will be used within the profile tab.

    2. Add the Content Slider widget to the My Blogs page

    You should, at this point, take note of the module id (mid) parameter in the URL. For example, /mid/730 in the URL will mean a module id of 730.

    3. Open Widget settings

    4. Select a Target Blog (essential for v3.6.2 to work with this functionality)

    5. Change Display View Mode to Custom User Key

    6. Set the text box next to Custom User Key to asuid

    7. Set a positive Max Items Count - for example, 10

    8. Click Update

    9. Take note of the tabid from your URL

    For example, a URL containing /tabid/42 would mean that the tabid is 42.
    If you are running a third party friendly URL provider, such as URL Master, you may not be able to find this from the URL. In the case of URL Master, go to Admin, Page URLs, and find the tabid there.

    10. Browse to the root of your DotNetNuke installation via FTP or RDP.

    11. Go to /desktopmodules/ActiveSocial/config and select "profileviewtabs.config"

    12. Copy profileviewtabs.config to the ActiveSocial folder in your portal folder, for example /portals/0/activesocial.

    This will prevent it from being overwritten by Active Social upgrades.

    13. Open profileviewtabs.config in Notepad

    The profileviewtabs file is an ordered XML list of tabs. You'll notice it takes the same order that tabs appear for users. You can add your new tab at any point in the file, provide it's within the "tabs" section, and not within an existing "tab" section.

    You will want to add the following code:

    
        <tab controlKey="blogs" text="My Blogs" isPostBack="true" hidden="false" permissions="" loadmethod="2">
            <content>
                <![CDATA[<active:moduleloader id="ctlMyBlogs" TID="42" MID="730"  runat="server" />]]>
            </content>
        </tab>
    


    NOTE: You MUST edit your TID and MID parameters. TID is the TabId you noted earlier. MID is the ModuleId you noted earlier. The above is shown ONLY for example purposes.


    14. Save the profileviewtabs.config file.



    If all is done correctly, you should now find that your user profile shows a "My Blogs" tab. Clicking on it will show you a list of posts (if any) that the logged in user has made.

    And there you are - simple as that!
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Brian
    Customers
    Brian
    Post Count:7

    --
    07 Jul 2010 10:10 AM
    wow thank you for this!

    very useful to know
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    07 Jul 2010 10:57 AM
    Matt, I would love to see an example of SunBlogNuke and AS - is it live?
    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    07 Jul 2010 11:41 AM
    Hey Rodney,

    Yes, we've got it live on our site. You can take a look at www.autechheads.com - my profile's a good example of the integration to AS, http://www.autechheads.com/users/matt-marlor

    Cheers,

    Matt
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    TotalGolf
    Customers
    TotalGolf
    Post Count:223

    --
    13 Jul 2010 07:42 PM
    Matt, your site is well organized. I have aquestion. It appears as though you are using UVG on your site. Where you are showing recent videos and popular videos, do you do anything to filter out videos posted by users who have private or friend only profiles?
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    14 Jul 2010 06:23 PM
    Sorry mate, I missed this :-)

    We're not accounting for that as yet. A lot of the site design/operation is member-driven, so we change it according to how members think it should run. At the moment the paradigm is around contribution to the group as a whole, rather than individual groups or users. if we were to do this, UVG might prove to have a few challenges in that regard, but that's just based on some of the existing limitations I've encountered.
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    sajjad
    Registered Users
    sajjad
    Post Count:2

    --
    01 Jul 2011 08:09 PM
    Hi Matt,

    I was trying to follow your tutorial to add "Videos" tab under My Profile.  I am using UVG4 and AS 1.9.3

    You mentioned to note the TID and MID from the URL.  I got the TID but my URL does not show the MID.  See below
    http://localhost.ariel/Default.aspx?tabid=74

    I am trying to show "My UVG Videos" ( which is on page TID: 74) under My Profile - Videos tab.  I went to my DB and got the MID from the table.  Added the following tab code to profileviewtabs.config file



    Now I get the following error when I click on the Videos tab:
    No page is displayed and Firefox says: The page isn't redirecting properly

    Please help??

    Thanks
    Sajjad
    Richard
    Customers
    Richard
    Post Count:27

    --
    11 Oct 2011 10:31 AM
    Thanks for the post Matt. It was extremely helpful.

    Is there a way to get this to work in the group tabs? Maybe use the group admin id to filter?
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > HOWTO: Integrating SunBlogNuke to Active Social User Profile Tabs
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy