> Forums > Active Forums > Themes and Templates > Add Profile Picture to Template?
Last Post 03 Mar 2011 04:14 PM by Ben - DotNetNuke. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
browe68
Customers
browe68
Post Count:107

--
02 Mar 2011 04:38 PM
    • DotNetNuke Version: 5.6.1
    • Active Forums Version: 4.3.4
    Anyone have an example of this?   I am just trying to add the AS Profile Picture to a template (using the Blog Template) in Active Forums.

    Thanks.
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1643

    --
    03 Mar 2011 10:07 AM
    <img src="/desktopmodules/activesocial/profilepic.ashx?PortalId=0&uid=[AUTHORID]&w=32&h=32" border="0" />

    You may need to change the PortalId, width and height parameters to fit your needs.
    browe68
    Customers
    browe68
    Post Count:107

    --
    03 Mar 2011 12:58 PM
    Thanks also I am trying to add a twitter "Count" widget. to the blog template....  It is asking for the URL to be created dynamically.   How would I accomplish this?

    The code I have is this....

    Using AF what should I enter for the URL and TITLE so that it will pick it up dynamically?



    Stupid side question Ben.... in editing/creating a post. there is the "Design", "HTML" and "Preview" View - how do you 'enable' the "Preview" View.

    I am using the Telerik HTML editor like AF uses.

    THANKS!
    browe68
    Customers
    browe68
    Post Count:107

    --
    03 Mar 2011 01:00 PM
    Posted By browe68 on 03 Mar 2011 01:58 PM
    Thanks also I am trying to add a twitter "Count" widget. to the blog template....  It is asking for the URL to be created dynamically.   How would I accomplish this?

    The code I have is this....

    Using AF what should I enter for the URL and TITLE so that it will pick it up dynamically?



    Stupid side question Ben.... in editing/creating a post. there is the "Design", "HTML" and "Preview" View - how do you 'enable' the "Preview" View.

    I am using the Telerik HTML editor like AF uses.

    THANKS!

    The code I added was not picked up... Try this (I removed some formatting) div style="float: left; margin-right: 10px; margin-bottom: 4px;" iframe allowtransparency="true"frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url={Permalink}&via=bob&text={Title}&count=vertical" width="55"height="63" /iframe div I am looking for URL and TEXT Parameters?
    browe68
    Customers
    browe68
    Post Count:107

    --
    03 Mar 2011 02:33 PM
    Posted By Ben on 03 Mar 2011 11:07 AM
    <img src="/desktopmodules/activesocial/profilepic.ashx?PortalId=0&uid=[AUTHORID]&w=32&h=32" border="0" />

    You may need to change the PortalId, width and height parameters to fit your needs.

    This is working perfectly in the TopicSView, but not in the TopicView.... Is there anything special needed for the TopicView mode?
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1643

    --
    03 Mar 2011 04:03 PM
    Try this for the TopicView template:

    <img src="/desktopmodules/activesocial/profilepic.ashx?PortalId=0&uid=[AF:PROFILE:USERID]&w=32&h=32" border="0" />

    As for the Twitter Widget.... Assuming that the button is referring to a specific post, text=[SUBJECT] would probably work.

    The URL is a little more tricky. Unfortunately, the [SUBJECTLINK] and [TOPICURL] tokens do not render in the TopicView template.

    You may need to manually form part of the url, but it SHOULD work like this:

    http://{www.domain.com}/{TabName}/{TabName2}/tabid/[TABID]/aft/[TOPICID]/Default.aspx

    You may need to URL encode it, since its a url inside a url, which would look like this:

    http%3A%2F%2F{www.domain.com}%2F{TabName}%2F{TabName2}%2Ftabid%2F[TABID]%2Faft%2F[TOPICID]%2FDefault.aspx

    Unless you are using AF vanity URLs... in which case the widget would show a less than accurate amount of tweets, since no one would be linking a URL formed this way (unless they click this button).
    browe68
    Customers
    browe68
    Post Count:107

    --
    03 Mar 2011 04:12 PM
    Thanks Ben! That worked for the TopicView! At the point that 5.6.1 is out and the 404 bug that Will mentions is fixed, I will start using the Vanity URLs. Hopefully, then I will be able to place the tweet box in there.
    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1643

    --
    03 Mar 2011 04:14 PM
    Also, should have mentioned, that if you have AF avatars enabled, and the AF profile set to your AS Profile, you can just use this token to display the AS profile picture in the TopicView:

    [AF:PROFILE:AVATAR]
    You are not authorized to post a reply.
    > Forums > Active Forums > Themes and Templates > Add Profile Picture to Template?
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy