> Forums > Active Social > Themes and Templates > Profile Link in other modules
Last Post 23 Feb 2011 07:57 PM by Jeff Blanks. 13 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

--
06 Jul 2010 12:27 PM
    I was working on a way to do a link from SunBlogNuke to users' vanity urls, but I must confess to being a bit stumped even with some searching.

    I figure I should register the ActiveSocial control within the SBN skin. Obviously I can't use something like [AS:PROFILELINK] directly, but I could use the <active: etc format. I tried and can replace the [DNN:PROFILE:DISPLAYNAME], [AS:SOCIALSETTINGS:PROFILETABID], and [DNN:PROFILE:USERID] tags quite easily, but the [AS:PARAMKEY:PROFILEID] stumped me as it's required and I don't really know what it's for or what it's drawing on.

    It's nothing major, purely a nice to have. Just curious as to whether it's feasible, or if I'm perhaps entirely down the wrong path! :-)
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    06 Jul 2010 02:40 PM
    The way I do this is to use the URM Master URL Rewriter on my URLs which just takes in a UserID - e.g www.pokerdiy.com/poker-player-profile/1.aspx. I don't ever display the URLs so no one notices and UM does a 301 redirect to the my AS profile page with the DisplayName/FURL.
    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    06 Jul 2010 02:43 PM
    I've added a control in 1.7.2 that will allow for you to template and display profile pic, display name and vanity URL.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    06 Jul 2010 09:04 PM
    Very cool! Thanks Will! :-D
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    07 Jul 2010 12:17 PM
    Matt,
    Do you think this will work for you?
    http://www.activemodules.com/Commun...fault.aspx
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    07 Jul 2010 12:41 PM
    It may well! Is profile id just the userid, or is it a specific value for AS?

    Main thing I need is to specify the userid I want to display, so if profile id will do it, I should be set to give it a go! :-)
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    07 Jul 2010 12:45 PM
    ProfileId can be whatever you want. Hopefully you can pass that in using the template. I should have AS 1.7.2 ready after Germany beats Spain today :)
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    07 Jul 2010 12:49 PM
    Haha :-) Fingers crossed!

    With SBN I can use <%=entry.AuthorProfile.UserID%> to return the post author's UserId in the template, so it sounds like passing this in to the ProfileId is exactly what I'm looking for - awesome! Thanks again Will :-)
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    14 Jul 2010 06:44 PM
    Hmm. I've tried this in 1.7.2 but it seems that I just trigger a continual redirect.

    Trying to add this to the SBN template to display a link to the user profile.

    
    <%@ Register TagPrefix="active" Namespace="Active.Modules.Social.Controls" Assembly="Active.Modules.Social" %>
    (.....)
    <active:profiledisplay runat="server" ProfileId="<%=entry.AuthorProfile.UserID%>">
    <profiletemplate>
    <a href="[AS:PROFILE:USERURL]">[AS:PROFILE:DISPLAYNAME]</a>
    </profiletemplate>
    </active:profiledisplay>
    
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    14 Jul 2010 06:51 PM
    Well, sounds like asp.net rendering confusion. I have another option for a client side solution that will work better in this case I think. I'll work up an example later tonight.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    14 Jul 2010 07:03 PM
    No worries, thanks Will.
    AuTechHeads - An Australian group for geeks. Visit us at http://www.autechheads.com!
    Matt Marlor
    Customers
    Matt Marlor
    Post Count:375

    --
    31 Jul 2010 09:45 AM
    Hi Will,

    I know you've been busy - did you have a chance for that alternative ?

    Cheers,

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

    --
    09 Feb 2011 12:23 PM
    Do you think this will work for you?
    http://www.activemodules.com/Commun...fault.aspx


    Still having problems trying to use the Profile Display control in other modules, example: Ventrian PA. I can get everything to work except for vanity urls. I can link to a profile by userid, but not by displayname. Also cannot register the control in templates on PA. I went as far as registering it in the PA .ascx files without success.

    I have another option for a client side solution


    Has this been developed yet?

    I have the displayname setup for firstname lastname in the dnn user settings, so whenever I attempt to use displayname in the url structure to get a vanity name in 3rd party modules, there is always a space between firstname lastname. I've considered using jquery to rewrite the space into a dash to correspond with vanity names. I just need to get the correct regex to also include duplicate vanity names that have a trailing number: ex. jeff-blanks, jeff-blanks1 (which is what the as vanity urls create on duplicate displaynames.

    Has anyone been able to achieve the usage of vanity urls in 3rd party modules without the use of the as profile control or the use of URL Master, etc? Have I just been sleeping and this can now be accomplished? I've searched the forums and come up with multiple discussions on this subject without resolution except for the use of the as profile display control.

    I seem to remember another solution hiding out there that Will had posted, but I have been unable to locate it.

    Thanks
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    23 Feb 2011 07:57 PM
    I'm still needing a resolution to this.

    I've been able to put together some magic with the use of PB by url rewriting so I get the proper display of firstname-lastname (with a dash in the middle) by use of [DISPLAYNAME] (as indicated in dnn username settings) in my url. But this will become a problem when there are users with the same firstname lastname. AS, as I've prev stated does roll over the username to firstname-lastname1, but has no solution for display in other modules that I am currently aware of other than previously stated, for modules without ascx template files.

    This is a very long outstanding issue with vanity url's and I sure could use some help on it. Am I the only person forcing username to displayname as firstname lastname?
    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Profile Link in other modules
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy