Results 1 to 3 of 3
  1. #1
    Casual Pligger ddluk's Avatar
    Joined
    Feb 2008
    Posts
    33

    Category only for registered and ...

    I've trying to do some strange thing.I need a possibility to give people access to one category only when they are registered and about 18 years old. The best solution will be the field in profile with age o user, and if the age is above 18 then access will be given. I'm trying to do that all day but nothing happen. Could someone give me same help or solution? I'm sorry if I write in not good category.

  2. #2
    Pligg Donor abraxas's Avatar
    Joined
    Feb 2008
    Posts
    100
    I'd like to find something similar.

    I understand that Joomla does this, but I've invested so much work into my Pligg-based site so far, I don't want to convert.

  3. #3
    Pligg Donor grusha's Avatar
    Joined
    Jul 2007
    Posts
    221
    Quote Originally Posted by ddluk View Post
    I've trying to do some strange thing.I need a possibility to give people access to one category only when they are registered and about 18 years old. The best solution will be the field in profile with age o user, and if the age is above 18 then access will be given. I'm trying to do that all day but nothing happen. Could someone give me same help or solution? I'm sorry if I write in not good category.
    There are 2 possibilities.
    1) Advansed Login.But one must also add new fields in the database, then check this fields......
    2) 2 option I think the easiest...
    Add special tag in your text story (example: <mytag>This text see only people above 18 years old</mytag>).
    Then you can add a new feature in plugin/function.embedvideos.php
    something like that
    Text initially hidden, and then if the user agrees(I agree and I above 18 years old), then he will see the text.I recommend use Javascript.

    Code:
    $MyNewTag = '<div id="mydiv" style="display:none;">$1</div>' ;
    	// replace <mytag> tags with the mytag code
    			$displayed_story = preg_replace("/\<mytag\>(.+?)\<\/mytag\>/is", $MyNewTag , $displayed_story);
    This is not working code, this only as an example

    Sorry for my english.
    Attached Images Attached Images

Similar Threads

  1. Registered Users Can't See News
    By acidrain in forum Questions & Comments
    Replies: 3
    Last Post: 04-12-2009, 10:24 PM
  2. Number of registered users
    By Jaffa in forum Questions & Comments
    Replies: 2
    Last Post: 11-09-2008, 05:07 PM
  3. Limit Non Registered Users
    By psross in forum Questions & Comments
    Replies: 1
    Last Post: 04-29-2008, 04:25 PM
  4. Who Voted to be viewed by registered users only
    By aviator in forum Questions & Comments
    Replies: 0
    Last Post: 03-02-2008, 10:49 PM
  5. How many registered users do you have?
    By ablaye in forum Questions & Comments
    Replies: 19
    Last Post: 03-01-2008, 06:58 PM

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