> Forums > Active Social > General Discussion > Is this the correct way to pull the profile pic?
Last Post 21 Oct 2010 05:24 PM by Daniel Comp. 14 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Frozen DNN
Customers
Frozen DNN
Post Count:1326

--
11 Feb 2009 02:57 AM

    I cannot use the profileinfo template. I have to show the profile pic separately in the topic view, with the link to the profile page. I am not able to figure this out but this is what I came up with. Please correct me. Thanks.

    [a href="/Profile/tabid/328/asuid/[USERID]/Default.aspx][img border="0" src="http://www.activemodules.com/Portals/0/activesocial/profiles/_icons/?id=[asuid]&w=70&h=90" alt=""][/a]

    [=< and ]=>

    I am using the latest AS/AF/DNN available.
    Thanks.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1326

    --
    18 Feb 2009 02:20 AM
    Just in case anyone else is interested:

    div class="afavatar" style="width:30px;height:30px;float:right;text-align:center;">[AF: PROFILE:AVATAR]

    I don't know how to make it clickable so when you click on the avatar it will take the user to the AS profile. Any help from the experts?

    I am using the latest AS/AF/DNN available.
    Thanks.
    fatgeorge
    Customers
    fatgeorge
    Post Count:291

    --
    25 Feb 2009 05:32 AM
    Did you have any luck with this?

    I am trying to show the AS profile image in BizModules UVG 3 against a user's uploaded video.

    I have tried both of your methods without any luck.
    Terry Sadler
    Customers
    Terry Sadler
    Post Count:270

    --
    25 Feb 2009 06:52 AM
    I believe this was fixed in one of the latest releases...at least in .16 it is...I click on a user profile in AF and it takes me to the AS profile page. I did not have to make any changes to the default installation.
    Terry Sadler, CISSP
    Compass North Group, LLC

    Any man who may be asked in this century, what he did to make his life Worthwhile, can respond with a good deal of Pride and Satisfaction, "I served in the United States Navy". JFK
    fatgeorge
    Customers
    fatgeorge
    Post Count:291

    --
    25 Feb 2009 07:10 AM
    I am not worried about AF, that works fine.
    I want to integrate the profile links and image in 3rd party apps such as UVG.

    The link to the AS profile works fine I just need a way to pull in the profile image.
    fatgeorge
    Customers
    fatgeorge
    Post Count:291

    --
    25 Feb 2009 07:53 AM
    I have just managed to do what I wanted.
    By using ftp I discovered that in the activesocial/profiles/_icons folder 3 image files exist for each profile image:

    pp_asuid.png
    pp_asuid_75_75.png
    pp_asuid_150_150.png

    where asuid is replaced by the user's DNN userid. e.g. pp_148.png

    Using the folowing in the UVG templates I was able to display the AS profile image and link to the user's profile who uploaded the video.

    {table}
        {tbody}
            {tr}
                {td class="UVGAvatarOuter"}
                    {a href="http://www.yoursite.com/profiles/profiledetail/tabid/334/asuid/[BAUTHORID]/Default.aspx"}
                    {img src="http://www.yoursite.com/Portals/0/activesocial/profiles/_icons/pp_[AUTHORID]_75_75.png" alt="click here to view the profile of [AUTHOR_USERNAME]" border="0"}
                    {/a}
                {/td}
            {/tr}
        {/tbody}
    {/table}
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    20 Oct 2010 12:42 AM
    I've tried several of these methods without luck. Here's what we want to achieve:

    Display the [AS:PROFILE:AVATAR] beside the [PostIcon]

    Shouldn't this be possible?
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    20 Oct 2010 02:21 PM
    The correct way to access the profile picture is as follows:
    
    <img src="/desktopmodules/activesocial/profilepic.ashx?PortalId=YourPortalId&amp;uid=[SomeTokenForUserId]&amp;w=24&amp;h=24" />
    
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1326

    --
    20 Oct 2010 03:01 PM
    I finally got an answer!
    I am using the latest AS/AF/DNN available.
    Thanks.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    20 Oct 2010 03:02 PM
    Well, in our defense, back in February '09 when you created this topic there really wasn't an easy way to access the avatar.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Frozen DNN
    Customers
    Frozen DNN
    Post Count:1326

    --
    20 Oct 2010 03:03 PM
    It's fine. I was just teasing.
    I am using the latest AS/AF/DNN available.
    Thanks.
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    21 Oct 2010 02:26 PM
    Thanks Will... and now to the exact problem I have:

    "SomeTokenForUserId"

    I have been trying a bunch of tokens "AVATAR" "USERID" and all I ever get back from the USER ID is {-1}
    I'm using the code in the TopicsView template line 91: {td}{POSTICON}{USERID}{/td}
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    21 Oct 2010 04:50 PM
    AuthorId and UserId, both all caps, are valid tokens. They actually get processed at the same time as the post icon token.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    21 Oct 2010 05:21 PM
    I have AF 4.2.6 and the release history says 4.2.7 "ENH - Added Active Social Support to Active Forums Express and Standard"

    Would this be why even these tokens don't work in 4.2.6?
    {AS:HANDLER:PROFILEPIC}{AS:PORTALSETTINGS:PORTALID}{AS:PROFILE:USERID}{AS:PROFILE:DISPLAYNAME}
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    21 Oct 2010 05:24 PM
    {AUTHORID} works... thank you.

    Would you suggest I upgrade to 4.2.7, or wait till you've finished the beta on 4.3?
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    You are not authorized to post a reply.
    > Forums > Active Social > General Discussion > Is this the correct way to pull the profile pic?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy