Results 1 to 4 of 4
  1. #1
    New Pligger jongaa's Avatar
    Joined
    Jul 2007
    Posts
    13

    Restricted access for some users

    I want to show a message of "restricted access for some users" when he access certain pages, similar to module "Hello world", for example:

    Enter = http://www.digaki.com/show_content
    Exit = http://www.digaki.com




    YouTube has a similar system:
    This video or group may contain content that is inappropriate for some users, as flagged by YouTube's user community.
    By clicking "Confirm", you are agreeing that all videos or groups flagged by the YouTube community will be viewable by this account.

  2. #2
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    I put out a helper module for creating dialog boxes that may help.
    See:
    http://forums.pligg.com/pligg-module...log-boxes.html

  3. #3
    New Pligger jongaa's Avatar
    Joined
    Jul 2007
    Posts
    13
    Almost ready, just missing it be activated once the page is loaded. see:

    África do Sul comemora Dia da Liberdade 15 anos após o fim do apartheid | Digaki.com

  4. #4
    New Pligger jongaa's Avatar
    Joined
    Jul 2007
    Posts
    13
    The solution of "Eric Martin," but I do not understand, I have to change or add this code?
    Eric Martin SimpleModal

    confirm.js
    Code:
    -You can just call the modal when the DOM is ready:
    
    $(document).ready(function () {
      $(element).modal({onShow: function (dialog) {
        dialog.data.find("a.close").click(function (e) {
          e.preventDefault();
          $.modal.close(); // closes the dialog
          window.location = "http://www.yoururl.com"; // redirect
        });
      }});
    });

Similar Threads

  1. Restricted user page
    By Listing in forum Questions & Comments
    Replies: 2
    Last Post: 08-25-2011, 05:24 AM
  2. Guest users can't access members profile
    By ossy in forum Questions & Comments
    Replies: 0
    Last Post: 02-21-2011, 12:00 AM
  3. Group Privacy Restricted #2
    By JonniE_M in forum Questions & Comments
    Replies: 1
    Last Post: 03-06-2009, 04:08 PM
  4. Admin Restricted Categories
    By TravisVOX in forum Questions & Comments
    Replies: 9
    Last Post: 02-21-2008, 12:45 AM
  5. Mod Request: Restrict access to "Top Users" pages
    By not2serious in forum Questions & Comments
    Replies: 3
    Last Post: 09-23-2007, 04:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting