Author Topic: Disable comments for user  (Read 11387 times)

0 Members and 1 Guest are viewing this topic.

Offline vid_88

  • Pre-Newbie
  • Posts: 3
    • View Profile
Disable comments for user
« on: May 08, 2005, 11:48:32 AM »
Hey everyone,

I've searched around but couldn't find anything.. so:

Is it possible to disable comments, but not for everyone, just for one user?

I know you can do this if you change their permissions, but I do everything via the user groups and just want to disable comments for one user for the entire gallery, not just particular sections. And I also don't want to make their own personal user group with comments disabled, it's too fiddly.

Anyone know of any mods?

Thanks,

viddy

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Disable comments for user
« Reply #1 on: May 08, 2005, 03:50:04 PM »
Sorry.  No such mod exists and 4image just doesn't let you set permissions on a per-user basis.  Your only no-code alternative is to do what you described- create their own personal user group and then set permissions on that group to disallow comments.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Disable comments for user
« Reply #2 on: May 08, 2005, 09:28:48 PM »
and code-changed alternative would be replace in details.php:
Code: [Select]
  if ($config['bb_comments'] == 1 && $allow_posting) {with this:
Code: [Select]
  if ($config['bb_comments'] == 1 && $allow_posting && !in_array($user_info['user_id'], array(1,2,3,4))) {(replace 1,2,3,4 with the user IDs u dont want to allow posting)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline vid_88

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Disable comments for user
« Reply #3 on: May 15, 2005, 12:19:51 PM »
and code-changed alternative would be replace in details.php:
Code: [Select]
  if ($config['bb_comments'] == 1 && $allow_posting) {with this:
Code: [Select]
  if ($config['bb_comments'] == 1 && $allow_posting && !in_array($user_info['user_id'], array(1,2,3,4))) {(replace 1,2,3,4 with the user IDs u dont want to allow posting)

I tried that.. just with the one user ID and it didn't work.. the user can still post comments..

Code: [Select]
if ($config['bb_comments'] == 1 && $allow_posting && !in_array($user_info['user_id'], array(15))) {

Offline XIII

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Disable comments for user
« Reply #4 on: June 12, 2006, 11:34:46 PM »
I've tried this as a solution for this problem, but it doesn't work. When I log in as that user I'm still able to post comments.

Offline XIII

  • Pre-Newbie
  • Posts: 6
    • View Profile
Re: Disable comments for user
« Reply #5 on: June 16, 2006, 09:01:36 AM »
Anybody else have any idea how I can prohibit one specific user from posting comments?