Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Houston 533 posts 977 karma points MVP admin c-trib
    Jul 17, 2009 @ 16:33
    Chris Houston
    0

    Member profile pages need a bit more filtering in the XSLT

    Hi,

    I was just trying to discover what my member profile ID is (I've still not worked it out.. but that's a side issue)

    The XSLT that is used to produce the members pages needs a bit of error trapping ( or at least an "else" clause )

    if you try and access the following URL you will get a XSLT error:

    http://our.umbraco.org/member/1

    Also if you try some higher numbers you get some weird profiles that are not users, but are actually pages that are

    returning other node data. Surely the XSLT should only being showing nodes that are defined as Members?

    E.g.: http://our.umbraco.org/member/1069

    Cheers,

    Chris

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Jul 17, 2009 @ 16:47
    Lee Kelleher
    0

    Chris, your member profile ID is 1868 - your name links to your profile (which you most likely already know).

    http://our.umbraco.org/member/1868

     

    It should be straight-forward to figure out if the node XML is a member node, as it will have other attributes like @email and @loginname - otherwise check for the @nodeTypeAlias - which would match the member type?

    I haven't looked at the uForum code myself (yet).

  • Chris Houston 533 posts 977 karma points MVP admin c-trib
    Jul 17, 2009 @ 18:34
    Chris Houston
    0

    Thanks Lee,

    I agree I would check the @nodeTypeAlias, who is maintaining the forum, is it open? I'd be happy to patch it.

    Cheers,

    Chris

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies