> Forums > Active Social > Themes and Templates > Customizing Forum Activity box on profile (userstats)
Last Post 27 Mar 2010 02:36 PM by Adam Jones. 9 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Not Resolved
Smart-Thinker
Customers
Smart-Thinker
Post Count:546

--
28 Feb 2010 03:23 PM
    I want to custom the Forum box on profiles - see http://www.pokerdiy.com/rod.aspx on left column at bottom.

    In ProfileView it has this:

    af:userstats userid="[DNN:PROFILE:USERID]" run at="server" /

    How do I customize this view? I checked the forum templates (under AF) but I could not find a userstats template. It is not under ActiveSocial - how to do?

    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Tags: forum
    Andy
    Customers
    Andy
    Post Count:67

    --
    02 Mar 2010 12:13 PM
    Even  I am having the same problem.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    03 Mar 2010 11:42 AM
    It's the same as the profile info template in active forums. Add your own template in between < template >

    >af:userstats userid=""< you can complete the rest
    
    <template>
    whatever you want here.  
    </template>
    </af:userstats>
    
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    03 Mar 2010 12:19 PM
    Thanks - where do I get the existing template from tho - currently in Profile View it is just
    af:userstats userid="[DNN:PROFILE:USERID]" run at="server"

    with no DisplayTemplate - I just want to tweak what is there already.
    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Caleb Hanson
    Customers
    Caleb Hanson
    Post Count:69

    --
    08 Mar 2010 11:21 AM
    This is something I also need to do, has anyone found the default template yet?
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    21 Mar 2010 01:01 AM
    Will/Ben - can you please help with this - I am still no closer to figuring this out - we need to know where the existing template is please.
    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    21 Mar 2010 07:34 PM
    There isn't an existing template. When a template isn't specified it loads a hardcoded default string. If you want to modify the template then you need to create it as indicated above. It uses the same tokens as you would find in the Active Forums postinfo template.

    Go look at your postinfo template in Active Forums. Then go to your profile template and change the tag from
    
    <af:userstats userid="[DNN:PROFILE:USERID]" runat="server" />
    

    to something like this...
    
    <af:userstats userid="[DNN:PROFILE:USERID]" runat="server" >
    <template>
    <span class="aslabelsmbold">Posts:</span> [AF:PROFILE:POSTCOUNT]<br>
    <span class="aslabelsmbold">Rank:</span> [AF:PROFILE:RANKNAME]<br>
    <span class="aslabelsmbold">Level:</span> [AF:PROFILE:RANKDISPLAY] <br>
    <span class="aslabelsmbold">Last Activity:</span> [AF:PROFILE:DATELASTACTIVITY:d] <br>
    <span class="aslabelsmbold">Member Since:</span> [AF:PROFILE:DATECREATED:d]
    </template>
    </af:userstats>
    
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Smart-Thinker
    Customers
    Smart-Thinker
    Post Count:546

    --
    21 Mar 2010 10:32 PM
    Ok, thanks - I will give that a go!
    thanks
    Rodney Joyce
    PokerDIY.com - Connecting Poker Players
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7671

    --
    25 Mar 2010 02:27 PM
    correction. Use template instead of displaytemplate
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Adam Jones
    Customers
    Adam Jones
    Post Count:406

    --
    27 Mar 2010 02:36 PM
    Rod, it looks great!! I just checked it out
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Customizing Forum Activity box on profile (userstats)
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy