> Forums > Active Forums > Community Support > Display "You must be registered..." message for non-logged in users
Last Post 31 Dec 2010 07:09 AM by Will Morgenweck. 7 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
David O'Leary
Customers
David O'Leary
Post Count:189

--
29 Dec 2010 02:03 PM
    • Active Forums Version: 4.3.3
    • DotNetNuke Version: 5.6.0
    I want to display the following message in place of the Add Topic and Reply buttons if the user isn't registered.

    You must be a registered user to post to this forum. Already registered? Please login.


    What is the best way to do this?
    Tags: usability
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Dec 2010 02:28 PM
    You can edit the resource (RESX) file to change this.


    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    29 Dec 2010 02:36 PM
    Steven,
    I'm not seeing any special resource item for non-logged in users.
    How would I do this in a way that the text would be different for authenticated vs. unauthenticated users?

    David
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Dec 2010 03:42 PM
    IIRC the module hides the button and shows the message to users without access based on forum security. So an anonymous user would not see the button but would see the message. So the anon user and the registered user outside of the security role would see the same RESX message.

    Am I understanding your need correctly?
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    Steven Webster
    Customers
    Steven Webster
    Post Count:1665

    --
    29 Dec 2010 03:45 PM
    On my portals I've copied it down and renamed it (SharedResources.Portal-0.resx) where the 0 is the portal id on a specific DNN installation. Then I can change the messaging on these three entries:

    [RESX:NotAuthorized].Text You must be logged in to post a reply.
    [RESX:NotAuthorizedReply].Text You are not authorized to post a reply.
    [RESX:NotAuthorizedTopic].Text You are not authorized to create a new topic.
    Steven Webster
    dnnOsphere.com, An Independent Community for DotNetNuke Users
    David O'Leary
    Customers
    David O'Leary
    Post Count:189

    --
    29 Dec 2010 05:27 PM
    Thanks Steven. I've updated those items and it's working great for replies but I'm not seeing the text for the NotAuthorizedTopic. Do I need to add something to the templates to get that text to show?
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    31 Dec 2010 07:07 AM
    Posted By David O'Leary on 29 Dec 2010 06:27 PM
    Thanks Steven. I've updated those items and it's working great for replies but I'm not seeing the text for the NotAuthorizedTopic. Do I need to add something to the templates to get that text to show?
    This looks like a problem with the template parsing.    We added some code in 4.3 to allow for better control of that text for unauthenticated users.  The token for the NotAuthorizedTopic text is being removed instead of replaced.  We are finishing up an update for AF which will include a fix for this.

    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    31 Dec 2010 07:09 AM
    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Forums > Community Support > Display "You must be registered..." message for non-logged in users
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy