> Forums > Active Social > Integration and API > Best avenue for adding custom functionality
Last Post 06 Sep 2011 01:56 PM by NFXBeats. 10 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Brian Dukes
Registered Users
Brian Dukes
Post Count:11

--
19 Aug 2011 04:56 PM
    What are my options to adding completely custom functionality within Active Social?  For example, if I wanted to add a "like" button to journal entries, is there a way that I can add a custom user control to the journal entry template?  Or define a custom token (with access to code/database)?
    Brian Dukes
    Registered Users
    Brian Dukes
    Post Count:11

    --
    19 Aug 2011 05:36 PM
    Also, I see guides on how to create custom templates for portals or themes, but what's the best way to customize the config files (if there is one)? For example, to change the markup produced by one of Active Social's tokens, or change one of the journal templates?

    Can I add config files to a theme, or are overrides always at the portal level? Is this recommended against, or is it safe?
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    20 Aug 2011 04:13 PM
    if I wanted to add a "like" button to journal entries, is there a way that I can add a custom user control to the journal entry template?


    Actually, this feature was just release in the latest version of Active Social.

    but what's the best way to customize the config files


    You can copy local portal level versions for most these so you can modify the tabs, add new tabs, etc.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    22 Aug 2011 09:13 AM
    You don't have to manually copy the files if you use the Template Editor in the Control Panel > Design section. It will make copies in the correct directories depending on which type of template you are trying to save.
    Brian Dukes
    Registered Users
    Brian Dukes
    Post Count:11

    --
    22 Aug 2011 09:46 AM
    Ben, that just applies to templates, right? There's not a way to customize the config files via the Template Editor, is there?
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    22 Aug 2011 09:48 AM
    Oh, I'm sorry. That is correct.
    Brian Dukes
    Registered Users
    Brian Dukes
    Post Count:11

    --
    22 Aug 2011 02:36 PM
    I guess I'd still like to hear of the recommended way to add custom server-side functionality to a template.  Is that possible?
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1645

    --
    22 Aug 2011 03:09 PM
    I haven't done it in a long time, but as far as I know you can just register your control at the top of any of the .ascx template files. Ideally you would also copy the template to the correct directory in the portals folder, but that shouldn't affect the code at all.
    Brian Dukes
    Registered Users
    Brian Dukes
    Post Count:11

    --
    22 Aug 2011 03:12 PM
    Hmmm... I wasn't able to get the template to recognize anything I registered.  I couldn't even get something like <%= DateTime.Now %> to render...
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    06 Sep 2011 01:46 PM
    I describe how I got it working here: http://www.activemodules.com/active...ols/#70836
    Status: I'm no longer moderated.
    NFXBeats
    Customers
    NFXBeats
    Post Count:299

    --
    06 Sep 2011 01:56 PM
    One more thing I do to customize it run a search/replace module. I wrote my own but something like PageBlaster may suffice. This works best with javascript or behind the scenes type stuff. For example, you would define a tag like: [MP3=http://mysite.com/somesong.mp3] and the regex will replace it before it gets sent to the user with the script to embed an MP3 player for the specified file.
    Status: I'm no longer moderated.
    You are not authorized to post a reply.
    > Forums > Active Social > Integration and API > Best avenue for adding custom functionality
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy