Welcome to the Community Exchange

Welcome to the Community Exchange, a place where community members can exchange questions and answers related to DotNetNuke. If you would like more info about the Community Exchange, please visit this page in our Wiki. 

Journal Default Visibility

I have a private social group and within it I would like the visibility of Journal entries to default to Private setting instead of it always being Everyone.

RIght now the group members must remember to set visibility to Private every time they come back to the site - this potentially could result in privillaged messages being seen by everyone.

Any plans for including it in the core Journal module
e.g. Default Visibility - Everyone, Community Members, Friends, Private

In addition to the default visibility, it would also be useful to hide/disable the visibility selector so that the admin would decide to keep all the group messages private.

I could implement these changes myself but I would have to impement them with each Journal revision.

Thanks,
Ark

asked 9/6/2012
Arkady Lesniara67
Arkady Lesniara

5 Answers

I looked at the code and it would not be too difficult to add the options and implement the functionality, but I don't want to have to patch it up every time there is a core update.

Vote for this answer if you think you would be interested in this kind of functionality.

In the meantime, I'm using jQuery to tweak this for my needs. Here is how, if you're interested:
You may place the following code in the page header or a js file:

<!--Set default privacy to Private-->
<SCRIPT language=javascript type=text/javascript>
    jQuery(document).ready(function ($) {
        var $rdo = $('input:radio[name=privacy]');
        $rdo.filter('[value=U]').attr('CHECKED'true);
        journalItem.Security = "U";
    });
</SCRIPT>
 
<!--Hide privacy selector-->
<SCRIPT language=javascript type=text/javascript>
    jQuery(document).ready(function ($) {
        $('#tbar-perm').css("display""none");
    });
</SCRIPT>
 
<!--Set default privacy to Private, hide privacy selector, for a specific social group-->
<SCRIPT language=javascript type=text/javascript>
    jQuery(document).ready(function ($) {
        // Get the group display text
        var socialGroup = $(".GroupViewHeader > h1").text();
        if (socialGroup === "Assessors") {
            // Get the privacy selector
            var $rdo = $('input:radio[name=privacy]');
            // Set privacy to "Private" 
            // Options: E = Everyone, C = Community Members, F = Friends, U = Private
            $rdo.filter('[value=U]').attr('CHECKED'true);
            journalItem.Security = "U";
            // Hide privacy selector
            $('#tbar-perm').css("display""none");
        }
    });
</SCRIPT>
answered 9/10/2012 Arkady Lesniara 67
Arkady Lesniara
  • Hey Daniel, try this., make sure you place it below other initializers or it may not work. I tried in the Journal module footer section (via module settings):




    Hope this helps,
    Ark - Arkady Lesniara 1 month ago

  • Arkady, can you figure out how to have the security selection 'nag' box open by default - rather than open on click? We want people to be reminded when it isn't 'private' and to click to close it by default. - Daniel Comp 1 month ago

Sorry, here is the code for Daniel's question, the simple comment sripped it:

<SCRIPT language=javascript type=text/javascript>
    jQuery(document).ready(function ($) {
        $('#tbar-perm').click();
});
</SCRIPT>

answered 1 month ago Arkady Lesniara 67
Arkady Lesniara
V interested in this.  Great JQuery solution tho @arkady - thx for sharing :)
answered 5 months ago manxmidge 2
manxmidge

Thanks Arkady. Nice solution. 

Since I'm NOT yet able to vote-up, yet I find this a good (for now) solution, I'll add an answer to 'score'

Be sure to note the note:

   // Options: E = Everyone, C = Community Members, F = Friends, U = Private

answered 10/29/2012 Daniel Comp 129
Daniel Comp

I'm so interested to this feature! Any one know if it's ll be made in a new release?

Fabio

answered 10/8/2012 Fabio Parigi 10
Fabio Parigi

Your Answer

In order to provide an answer to this question, you must Login

I am flagging this question because...




10 inform moderator flags remaining

I am deleting this question because...




I am flagging this answer because...




10 inform moderator flags remaining

Flagging a Post

You have already flagged this post. Clicking "Remove Flag" below will remove your flag, thus reducing the count by one as well.

I am deleting this answer because...




DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.