Elxis CMS Forum

Support => General => Topic started by: rentasite on April 04, 2008, 10:46:17

Title: Second level Members !!!
Post by: rentasite on April 04, 2008, 10:46:17

Hi. I dont know if what im thinking, can be done. Thats why im asking.  :)

I want to create another group of Registered users (lets name it Registered2) with particular privileges based on Sections/Categories.

Example: I have 2 Sections.  SECTION-1 and SECTION-2. I want the default "Registered" Users to have rights to read SECTION-1 only. And the new Registered2 group to be able to read Section-1 and Section-2.

Can this be done in Elxis 2006.4 ?   If not, can it be done with 2008? And how ?  :-\

Thanks in advance
Spiros
Title: Re: Second level Members !!!
Post by: Farhad Sakhaei on April 04, 2008, 10:49:34
This can be done by both versions , but you should change user group of those users that you want to include in Registered2
Title: Re: Second level Members !!!
Post by: rentasite on April 04, 2008, 10:51:45

 Thanks Farhad for the quick response.

::)  How can i give certain privileges to a Group to be able to read only some sections/categories?
Title: Re: Second level Members !!!
Post by: Farhad Sakhaei on April 04, 2008, 11:05:49
You can make a user group in access manager and give same permissions as Registered group to it , and set those sections/categories to this new user group
Title: Re: Second level Members !!!
Post by: rentasite on April 04, 2008, 11:35:01

Thanks  ;)
Title: Re: Second level Members !!!
Post by: Farhad Sakhaei on April 04, 2008, 11:35:43
You are welcome
Title: Re: Second level Members !!!
Post by: rentasite on April 04, 2008, 12:23:34

Another question: Can a certain ONLY registered member, have access to an (lets say) autonomus autonomous or section?

Or am i asking for too much  ;D :P

Thanks!
Title: Re: Second level Members !!!
Post by: Farhad Sakhaei on April 04, 2008, 12:27:52
If there are few peoples that you want to show them some pages individually , you can define a user group for every individual user and assign them to their user group ... But this way is not suitable for most peoples , you should create a special component in this case ...
Title: Re: Second level Members !!!
Post by: datahell on April 04, 2008, 14:02:36
You can do anything you wish with a small hack. I will give you only the idea you should build it by yourself. The solution in personalizing user access is to create hidden extra user field(s) and add in this field(s) as value something representative. For example you can enter as value the section id if you want to filter access based on sections. Afterwards you should modify the database query at component content to filter out those areas of the site where the user has no access to. It is very easy to create any access combination you wish. Elxis is very flexible in this.
Title: Re: Second level Members !!!
Post by: rentasite on April 04, 2008, 15:29:06

ok thanks.
Title: Re: Second level Members !!!
Post by: rentasite on April 05, 2008, 15:10:07

Question:

Can a user Registration be approved, from the Administrator, before the user's account is activated?

Thanks
Title: Re: Second level Members !!!
Post by: datahell on April 05, 2008, 18:28:23
Open components/com_registration/registration.php
go to line 365
comment everything betweeen this:
/*
$subject = sprintf (_E_SEND_SUB, $name, $mosConfig_sitename);
................
//Send email to user
mosMail($mosConfig_mailfrom, $mosConfig_fromname, $email, $subject, $message);
*/

modify properly this language variable: _REG_COMPLETE_ACTIVATE
done!

With the above hack users will have to be approved by the administrator.
Title: Re: Second level Members !!!
Post by: rentasite on April 05, 2008, 21:23:48

thank you yianni.