Go to previous topic
Go to next topic
Last Post 22 Dec 2016 06:06 PM by  Steven McFadyen
Profile image and link not working
 10 Replies
Author Messages


New Member


Posts:22
New Member


--
16 Nov 2016 02:56 PM

    Hi,

    I've just enabled comments and made a few style changes to ViewRevindexWiki.ascx (version 03.00.00). I notice that the profile image and link in the comments are not working.

    When I check the image tag (chrome developer tools), it shows:

    <img src="https://www.revindex.com/profilepic.ashx?userid=2&w=32&h=32" alt="">

    and the profile link as:

    <a id="dnn_ctr422_ViewRevindexWiki_TopicContentRepeater_CommentRepeater_0_CommentNameHyperLink_0">Steven McFadyen</a>

    In ViewRevindexWiki.ascx, the two lines are (which I have not modified):

    <asp:HyperLink ID="CommentProfileHyperLink" runat="server" ImageUrl='<%# "CommentProfileImage_ImageUrl") %>' CssClass="rvdwkProfileImage"></asp:HyperLink>

    <asp:HyperLink ID="CommentNameHyperLink" runat="server" Text='<%# "CommentNameHyperLink_Text") %>'></asp:HyperLink>

    What is the best way to fix this?

    Also, is it also possible to use the displayName, rather than first name and last nam.

    Steven

    0


    Basic Member


    Posts:394
    Basic Member


    --
    16 Nov 2016 09:17 PM

    Hi Steven

    Is your site running on a virtual path (non-root) e.g. "http://site.com/child/" ? What is your version of DNN and what version of Wiki are you running? Are you certain that user has a valid profile image.

    We use the Wiki on our own site and the profile image shows up. It uses the same image path if you check with the developer tool.

    0


    New Member


    Posts:22
    New Member


    --
    17 Nov 2016 12:59 PM

    Hi JT,

    Thanks for the reply.

    My site is not a child site (it is the only site on the DNN installation as well). The DNN version is 08.00.02 (4), and RevIndexWiki is 3.0.0.

    There are valid profile images. I have attached a screenshot of this working on the site in the DNN journal module.

    I have made some changes to VieRevindexWiki.ascx - structured data as suggested in (http://www.revindex.com/S...d/5199/scope/posts), some share this icons and modified the template using Bootstrap to display the article/discussion [comments] on different tabs. These are all client side, and I do not think they should affect the server rendering of the links. I have attached a copy of my ViewRevindexWiki file anyhow.

    You can also see the problem live (on the discussion tab) at: https://mycableengineerin...edge-base/dashboard.

    Steven

    profileImageIssue.zip

    0


    Basic Member


    Posts:394
    Basic Member


    --
    18 Nov 2016 02:07 PM

    Under your site's Admin > Site Settings page. Look in the User Account Settings tab. In the Profile Settings section, make sure your Photo is set to visible for All Users.

    Please confirm if that works?

    0


    New Member


    Posts:22
    New Member


    --
    19 Nov 2016 01:21 PM

    The profile photo is set to visible (see attached screenshot). I have also tried different users to make sure there are no permissions affecting anything.

    Photos are visible other places on the site, just not the Wiki comments.

    2016-11-19_1316.png

    0


    New Member


    Posts:22
    New Member


    --
    16 Dec 2016 10:58 AM

    Hi,

    Do you have any other suggestions as this is still not working.

    Steven

    0


    Veteran Member


    Posts:2955
    Veteran Member


    --
    21 Dec 2016 09:32 PM

    If you copy the generated URL for the profile image and visit it on your browser, does it show up? For example, the absolute path should be:

    http://www.site.com/profi...mp;w=32&h=32

    If you run your developer tool, look at the Network tab and see what is the HTTP response you get back from DNN. Try it with different userid values and see if it works. The profile pic is a DNN functionality. If your skin permits, it should show the same image (using the same image URL) on your control bar near the top of your page next to your profile name or logout link. You can try to match and see if the URL matches the same?

    Thanks,

    0


    Veteran Member


    Posts:2955
    Veteran Member


    --
    21 Dec 2016 09:36 PM

    There's a similar post on DNN forum about the avatar image not showing here. You might want to check it out. The solution seems to be theme related. Can you try changing your DNN skin? Some other links I found here.

    0


    New Member


    Posts:22
    New Member


    --
    22 Dec 2016 02:16 PM

    Thanks, the links helped, and I was able to solve the profile picture issue. I needed to add to the web.config:

    <add name="ProfielPic" path="ProfilePic.ashx" verb="*" type="DotNetNuke.Services.UserProfile.UserProfilePicHandler, DotNetNuke" />

    Is a bit confusing as the DNNStuff uses DnnImageHandler, which showed ok. Once I added in the ProfilePic, my Wiki images started showing.

    Solved the picture, but the hyperlink to the profile is still not working (see the initial post). Would you have any suggestions on this? Also is it possible to use DisplayName (not FrstName, LastName)?

    0


    Basic Member


    Posts:394
    Basic Member


    --
    22 Dec 2016 05:23 PM

    The image handler should have been in your Web.config. It could happen when you upgraded your DNN, that it was left out.

    Unfortunately, the Wiki currently does not link to the profile. It merely shows the picture and is hardcoded to the First and Last names. If this is something you want added, you may sponsor to get them implemented sooner.

    Thanks,

    0


    New Member


    Posts:22
    New Member


    --
    22 Dec 2016 06:06 PM

    JT,

    Thanks for the reply.

    Just checked your own site and true enough the links are not working. Maybe if they do not function you should remove them from the view template, as it is a little confusing.

    Steven

    0


    ---