Author Topic: Permissions set to Private; dropdowns show YES by default.  (Read 9014 times)

0 Members and 1 Guest are viewing this topic.

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdowns show YES by default.
« on: October 02, 2002, 10:48:11 AM »
Dear Jan,

I need to disable certain users from commenting  :(  
Sorry, I was unable to solve this task myself.

I have two user groups - "Members" for good users, and "Restricted" for bad users (fortunately there are not many, but enough to mess up the things).

I assigned bad users to the Restricted group, but I can't set permissions to the "Restricted" group.

In the Admin interface of 4images there is no dropdown "Yes/No" to set the permission to the User groups. I guess it should be there, but I don't see it. Manipulations via phpMyAdmin did not help to get the dropdowns visible.

Well, I assigned group permissions via phpMyAdmin. Everything seems to be correct, but the group doesn't behave the way I need.
Certain users can still post their unwelcomed comments.

You see the problem?

With many thanks,
                          Dmitry
Regards,
Dmitry
____________________
www.violadabraccio.com

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Permissions set to Private; dropdowns show YES by default.
« Reply #1 on: October 02, 2002, 12:11:52 PM »
You have to set the permission for "Post Comment" to "Private" for the categories.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdowns show YES by default.
« Reply #2 on: October 02, 2002, 02:54:12 PM »
Dear Jan, Thanks! Problem seems to be solved.  :D
Regards,
Dmitry
____________________
www.violadabraccio.com

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdowns show YES by default.
« Reply #3 on: October 02, 2002, 03:47:18 PM »
Dear Jan,

There is still something strange with assiging and restricting permissions.

I copy the table from phpMyAdmin here for clarity:

Database ******* running on localhost
Showing records 0 - 20 (20 total)
 
SQL-query : [Edit]
SELECT * FROM `4images_groupmatch` LIMIT 0, 30
rows starting from


_________group_id  user_id  groupmatch_startdate  groupmatch_enddate  
Edit  Delete____2____33____1033513845____________0
Edit  Delete____2____21____1033513200____________0
Edit  Delete____9____6_____0_____________________0
Edit  Delete____10___11____0_____________________0
etc etc etc

So, I tell, I created the group 2, but I did not create these groups 9, 10, etc. There are only two groups wich I wanted to create Members and Restricted - group_id="1" and group_id ="2". That's all.
I don't understand where all these group_id's came from.

On the next step I wanted to assign certain user_id's certain group_id's
(in the table 4images_groupmatch) but I can not do that, because I don't understand what happens with the group_id's. Of course, I can go user by user from 4images Admin interface, and assign each user to appropriate group. However, I was looking for the way to modify bulks of information at once. I hope my explanation is clear, since I am not sure if I use the technical language in a correct way.

Am I doing something extremely weird? Is there a correct way of assigining groupmatch?
Regards,
Dmitry
____________________
www.violadabraccio.com

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Permissions set to Private; dropdowns show YES by default.
« Reply #4 on: October 02, 2002, 03:53:45 PM »
The other groups are single user groups. If you add an user, the user will be added as a single user group. If you see the "4images_groups" table, you will find a lot of groups, the column "group_type" tells you if this is a "group"-group (value = 1) or a single user group (value = 2).

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdowns show YES by default.
« Reply #5 on: October 02, 2002, 04:04:26 PM »
I see. Now I understand. Thanks, Jan, for your help.
Regards,
Dmitry
____________________
www.violadabraccio.com

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdows show YES by default.
« Reply #6 on: October 06, 2002, 11:15:22 PM »
Jan,

When permissions are set to Private, all the dropdown boxes show by default No.

I was trying to figure out what to change in the script in order to forse the dropdowns to show by default Yes.  

My users generally behave very well. There is just one... well. So, instead of setting Yes, Yes, Yes... five hundred times, it would be nice to set only one user to certain No's.  :wink:

With many thanks,

Dmitry

P.S. It seems it is the admin/usergouprs.php which I have to modify, but I don't dare to mess up with it without an advice from you - my website doesn't yet run locally.
Regards,
Dmitry
____________________
www.violadabraccio.com

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Permissions set to Private; dropdowns show YES by default.
« Reply #7 on: October 07, 2002, 08:36:14 AM »
Sorry, i dont't understand your problem. If you have two usergroups, you have to set the permissions only one time for each usergroup.

For example:

"Bad" -> "Post Comment" is set to "No"
"Good" -> "Post Comment" is set to "Yes"

If you add a user to group "Good", he automatically has the permission to post comments, if you add him to "Bad", he doesn't have the permission.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Dmitro

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Permissions set to Private; dropdowns show YES by default.
« Reply #8 on: October 07, 2002, 09:26:39 AM »
Thanks a lot, Jan... and, sorry, I have not done first what you wrote above. Of course, that's the way.  :oops:
Dmitry
Regards,
Dmitry
____________________
www.violadabraccio.com