> Forums > Active Social > Themes and Templates > custom view based on profile view
Last Post 10 Jun 2011 02:26 PM by TotalGolf. 14 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Untanglemyweb
Customers
Untanglemyweb
Post Count:31

--
29 Sep 2010 12:49 AM
    • DotNetNuke Version: 5.4.0
    • Active Social Version: 1.8.2
    Hello,

    I would like to create a custom view based on profile view. This custom view basically display pretty much the same content(tokens) as the default profile view. I know there are quite a few custom view example on "Who's Online ", "Gallery Images List ", " group list" etc.

    I noticed the custom view syntax are different in the forum post.
    Like "<active:memberslist o nlineOnly="True" runat="server" PagingEnabled="False" PageSize="12" >"
    and "<active:groupslist id="ctlGroupsNew" filterbyuserid="[AS:SOCIALUSER:USERID]" runat="server" UsersGroupsOnly="True">" . But I did not find an example of the custom view of profile view. Is there a documentation to teach us(syntax) how to write an custom view based on profile view.

    P.S I am not talking about the profile view template which I am able to do. I mean custom view.

    Could someone please point me to the right direction or give me some clue. Much appreciated.


    Thanks,
    Alan
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    29 Sep 2010 01:49 AM
    Anybody any thoughts? Been stuck here for a while
    any help would be appreciated.


    Alan
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Sep 2010 06:02 AM
    Are you planning to use this in a specific way or to customize the profile view?
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    29 Sep 2010 09:51 AM
    Yes, we plan to use this in a specific way. We want two pages with profile view, but not redirect to the default profile view page defined in control panel settings. Meaning, the two pages can be browsed individually. Currently the pages always points to the same profile view page(as per setting in control panel).

    So we came up a thinking that we create another custom view to display exactly like the profile view. In this way, the two pages both with "profile view" can be viewed interdependently.
    We have asked this question in the helpdesk but was suggested posting here.

    So now we need a sample of the custom view which displays the same content( or similar) as profile view.

    Thanks,
    Alan

    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Sep 2010 04:31 PM
    Have you tried creating a custom view from the template manager in control panel?
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    29 Sep 2010 05:45 PM
    I tried from the template manager in control panel.
    From there we can create templates based on existing templates(profile, group, messaging, gallery,other), but we can't create custom views based on existing custom view. I made a try for that approach, it did not help. That template manager worked well for creating templates but not for custom view. Seemed the custom view can only be built from scratch to me.

    Am I missing anything or what? Is there a sample custom view for profile view?

    Thanks
    Alan
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Sep 2010 07:46 PM
    you can cut and paste from an existing view. I should say I have not tested a second profile view.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    29 Sep 2010 11:53 PM
    Hi Steve, there is no exiting view in the view/template manager(control panel->Design) I can copy from. If there is a existing view sample(profile view), things will be much easier.
    We can copy templates over, but I could not copy the custom view. As there is no existing custom view or view in view/template manager to copy from.

    Can you please provide me a sample custom view based on "profile view" so I can work on it.

    Any comments or thoughts would be great help.

    PS I also lodged a ticket on help desk section and been contaminating with support staff. If you would like to check out.

    Thanks,
    Alan
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    30 Sep 2010 12:08 AM
    All you need to do is "Create a Blank Template". Select Profile as template type. Select Custom View for the Save To value then click save. Then copy the contents of the ProfileView.ascx file located in /desktopmodules/activesocial/config/templates/profile/ and save the template.

    That being said, I still can't say will 100% certainty that you will be able to successfully setup multiple profile views. It was never intended and hasn't been tested. I know some customers have created multiple "mini-profile" views, but not a full profile view. Having multiple views for profiles would cause problems with Vanity URLs, Edit Profile, My Settings and Journal Entries. As long as you aren't expecting this secondary profile to have all the same capabilities of the primary view then you should be fine.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    30 Sep 2010 12:09 AM
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    30 Sep 2010 03:16 AM
    Thanks so much Will for popping in and the detailed instruction. I can see you know exactly what we want to achieve.

    All you need to do is "Create a Blank Template". Select Profile as template type. Select Custom View for the Save To value then click save. Then copy the contents of the ProfileView.ascx file located in /desktopmodules/activesocial/config/templates/profile/ and save the template.


    I did exactly the same as above steps. But the page shows nothing. Seems it doesn't render the tokens.
    So that's why I am wondering if there is a syntax for the custom profile view.

    The sample custom views found on forum are "memberlist" "online users" etc.
    The Syntax are Like "<active:memberslist o="" nlineonly="True" runat="server" pagingenabled="False" pagesize="12">"
    and "<active:groupslist id="ctlGroupsNew" filterbyuserid="&#91;AS:SOCIALUSER:USERID&#93;" runat="server" usersgroupsonly="True">"
    Is there a default similar syntax for custom profile view?


    We don't expect this secondary profile to have all the same capabilities of the primary view, but as many capabilities as possible. Is it possible that you could provide a sample custom view based on profile view for us to work on. As I said we copied over the contents of /desktopmodules/activesocial/config/templates/profile/ ProfileView.ascx, it does not render at all.


    One thing I found out, If I work on "min-profile" found on the forum, I could get a few tokens displayed. But not all. For example, the token [AS:CONTROL:TABSTRIP] would not be rendered(displayed).


    Having multiple views for profiles would cause problems with Vanity URLs, Edit Profile, My Settings and Journal Entries.

    Thanks for confirming that to us.


    What we want to achieve is that, we have two pages with profile view, and the two pages should be viewed independently. Currently the situation is that when visiting the two pages, it always redirect to the page which is defined in control panel -> settings as the default "profile view" page. We can't even get to see the other profile view page at all. Is there a way to achieve this goal?

    Thanks so much for your patience and clear in depth reply.

    thanks,
    Alan
    Untanglemyweb
    Customers
    Untanglemyweb
    Post Count:31

    --
    07 Oct 2010 09:21 AM
    Hi Will, we implemented a work around for this issue by modifying Memberlist.ascx file to link to another profile view not the default one. Anyway this has sorted.

    However, could you please provide me sample custom view of "Latest Member" showing the latest members of the site. 
    The "member directory" will do the job by sorting with UserID, but can't limit down how many members to show. So we may need a custom view to display say 20 latest member. Could you please either provide me a sample custom view of "Latest Member" Or show me the way to do it? Would appreciate that very much. 

    Thanks,
    Alan
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    07 Oct 2010 04:24 PM
    Alan,
    The members list does have the ability to change the page size. The views that you see on ActiveSocial.com are not custom views. UsersOnline and Latest Members are both MemberList views.
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Jeff Blanks
    Customers
    Jeff Blanks
    Post Count:387

    --
    30 May 2011 05:22 PM
    we implemented a work around for this issue by modifying Memberlist.ascx file to link to another profile view not the default one. Anyway this has sorted.
    Alan,

    Can you share how you did this? I've been trying to move certain tabs in my profile view into another custom view with limited success that would be basically a management page for users to manage their friends groups, etc.

    Cheers! Jeff
    @northeastok | @jeffblanks | My Blog
    TotalGolf
    Customers
    TotalGolf
    Post Count:223

    --
    10 Jun 2011 02:26 PM
    I tried to follow Will's instructions here to create a custom view for the Member's List. I thought this might fix another problem I have which is similar to the one Untanglemyweb had with the default profile view being redirected to. My problem is that the search mechanism on my Member's List is always redirecting to the default Member's List and searching based on its settings.

    Anyway, I have the same problem. None of the tokens are rendering in the custom view.
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > custom view based on profile view
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy