> Forums > Active Forums > Themes and Templates > Display the [AS:PROFILE:AVATAR] beside the [PostIcon]
Last Post 15 Dec 2010 12:39 PM by Daniel Comp. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Daniel Comp
Customers
Daniel Comp
Post Count:80

--
20 Oct 2010 12:49 AM
    • DotNetNuke Version: 5.4.0
    • Active Forums Version: 4.2.6
    I've tried several methods:

    Tokens: [AS:PROFILE:AVATAR] [AF:PROFILE:AVATAR]

    Code: img src="http://www.yoursite.com/Portals/0/activesocial/profiles/_icons/pp_[AUTHORID]_75_75.png

    Image Handler: /portals/0/ProfileImageHandler.ashx?asuid=[AUTHORID]&asimgsize=32 


    Nope, nope, nope.

    I want to display the authorID avatar in the same area as the posticon is shown.

    Thanks in advance.

    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    20 Oct 2010 07:47 AM
    Here is an example using the AS image handler to show an AS avatar and link back to the user's profile page in a third party module (Ventrian Property Agent) in this case:
    <div><p class="p1"><<span class="s1"></span><span class="s2"></span><span class="s3">href</span>="http://localhost/bikeclicks/Community/Members/SocialProfile/tabid/63/asuid/[USERID]/Default.aspx"></p><p class="p1"><<span class="s1">img</span><span class="s2"></span><span class="s3">class</span>="photo"<span class="s2"></span><span class="s3">src</span>="http://localhost/bikeclicks/desktopmodules/activesocial/profilepic.ashx?portalid=0&uid=[USERID]&h=100&w=100"<span class="s2"></span>/></p><p class="p1"></p><br></div>
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    20 Oct 2010 07:49 AM
    It's getting re-written by the editor....but you get the idea...
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    20 Oct 2010 07:50 AM
    I want to display the authorID avatar in the same area as the posticon is shown.


    Daniel, not sure I understand where you want to display the avatar.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    21 Oct 2010 02:13 PM
    In the TOPICSVIEW template:

    [ POSTICON ]

    The code you share above works fine direct from a browser, but not within the template. It seems I can't get code to display the AVATAR or USERID image for that post author, even though [ STARTEDBY ] is there.
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    21 Oct 2010 02:17 PM
    I mean that the {USERID} in the code placed in the TopicsView comes back as {-1} for all post authors, rather than unique to the author as it does for {STARTEDBY}
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    mmoney
    Customers
    mmoney
    Post Count:150

    --
    01 Dec 2010 02:28 PM
    Hi Daniel,

    Did you find an answer to this? If not try inserting "[AF:PROFILE:USERID]" in where you have [USERID] and see if that works for you.
    Daniel Comp
    Customers
    Daniel Comp
    Post Count:80

    --
    15 Dec 2010 12:39 PM
    Yes I did finish it. In the topicsview template I modified it with:
    <td class="[ROWCSS]" width="32" height="70" style="width: 0">[STATUS]<br /><a href="http://www.url.com/tabid/2222/asuid/[AUTHORID]/Default.aspx"><img src="/desktopmodules/activesocial/profilepic.ashx?PortalId=0&amp;uid=[AUTHORID]&amp;w=32&amp;h=32" border="0" /></a></td>
     
    the Enterprising Cycle™: decades of wisdom reduced to invaluable hours
    You are not authorized to post a reply.
    > Forums > Active Forums > Themes and Templates > Display the [AS:PROFILE:AVATAR] beside the [PostIcon]
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy