Administer comments on own nodes - d6 module

atuyo60 - January 12, 2008 - 07:15
Project:User Comment
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:akaserer
Status:closed
Issue tags:administer, comments, D6, own nodes
Description

Does the option to approve own blog comments only force the comments to site admins for approval while the blog owner himself cannot approve the comment? I can't seem to get the approve link to appear on his own blog

#1

atuyo60 - January 13, 2008 - 17:24
Priority:normal» critical

Anyone maintaining the module? The approve links and unpublished posts only appear for a user's own blog when administer comments permission is given. But that also allows the user to administer site-wide comments.

#2

gruso - January 15, 2008 - 14:11

I have the same problem, did you find a solution?

#3

atuyo60 - January 15, 2008 - 15:54

seems to be a bug, I do not have the time to check the code at the moment so I have refrained from installing it on my live site for now... am wondering why no one reported this though...

#4

gwen - January 18, 2008 - 21:39

You should be able to turn on links for users without turning on full on comment administration. It's been working fine on my site for months, but I'm still on 5.1, so I wonder if it's a drupal version issue? What version are you on?

#5

atuyo60 - January 19, 2008 - 16:31

Drupal 5.5, it doesn't seem to work here...

#6

gruso - January 21, 2008 - 16:22

5.1
Exactly like you, turn off Comment administration and turn on approve,delete own ... content.
When i login i can't manage comment!

#7

edhel - February 4, 2008 - 12:24

This module doesn't work on my Drupal and there a lot of incorrect places in code... so just now I make another similar "hack module" - see it below. It uses absolutely another technique - it fix access rights on fly. It's not yet tested enough and can have some security and others issues mb..

update 04.02.2008: sometimes user has full access to all comments... temporarily... because of menu cache...

AttachmentSize
administer_comments.zip 1.46 KB

#8

gwen - February 14, 2008 - 03:19
Priority:critical» normal

@atuyo60, @gruso: what other modules are you using? i'm wondering if there's some conflict with some other module?

@edhel: can you specify what you think is wrong with the code? it's admittedly been a while since i've looked at the code b/c, like i said, it's been working fine for me for months.

#9

MGParisi - July 18, 2008 - 00:55

Has this issue showed up? Again?

Mike

#10

atuyo60 - July 25, 2008 - 15:41

I did not enable the module for my production site and I will be upgrading to Drupal 6 soon, I do need a working port of this. Might take a look at the code when I have the time.

#11

ethanre - September 5, 2008 - 00:31

@ Edhel, #7.
I had trouble with usercomments so I installed your module and it works well. Then I created a view for the users (now with comment admin powers) to view all their pending comments, then they could 'edit' and 'publish' comments one by one.

Emails notification: I'll look for some other module to manage emailing the author of a node once a comment is posted, whether the comment needed approval or not.. I may use the workflow-ng module I'm looking here: http://drupal.org/node/156531

#12

madjoe - December 10, 2008 - 16:44

Why do you need a administer_comment ROLE?

<?php
$user
->roles[$rid] = 'administer_comments';
?>

I was expecting something more like "administer comments of own content" access for existing roles.

Usercomments module is not functional at all.
This little module (#7) is doing what it has to do. I would recommend this feature as a small addition:

"edit comments on own content"
"delete comments from own content"

It would be more helpful to separate those two access permissions for roles.

#13

marcoBauli - December 16, 2008 - 15:24

adding myself to the queue, the approvation of own comments seems broken also here on D5.14, no link appearing below nodes.

#14

gwen - January 27, 2009 - 06:16
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:active» fixed

I'm no longer supporting 5.x, but I just did a little work on the 6.x version and these issues should be resolved in the latest dev tarball.

#15

System Message - February 10, 2009 - 06:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#16

akaserer - October 17, 2009 - 16:39
Title:Unable to approve own blog comments» Administer comments on own nodes - d6 module
Assigned to:Anonymous» akaserer

here is the updated modules from
#7
edhel - February 4, 2008 - 14:24

for d6

the only trouble i have with this module is that it shows all the links below the comment (same like with 'administer comments' permission)
e.g. fasttoggle-link (from http://drupal.org/project/fasttoggle) below, but the user does not have permission for this action

AttachmentSize
administer_comments.zip 1.67 KB

#17

Hamster5 - October 17, 2009 - 18:37

Hi akaserer,

I'd like to know how this module works, i really need this functions but usercomment doesn't works at all, could you tell me how to use administer_comments?,

Also when i install, i get this

warning: mysql_insert_id() [function.mysql-insert-id]: A link to the server could not be established in .../sites/all/modules/administer_comments/administer_comments.install on line 5.

Thanks

#18

akaserer - October 18, 2009 - 06:12

.

#19

akaserer - October 18, 2009 - 06:12

hi

the code i posted was just an update and review of the code from post #7.

line 5 just creates a new role:

just try to uncomment (using php // ) these function, you dont realy need this

//function administer_comments_install() {
//  db_query ( "INSERT INTO {role} (name) VALUES ('%s')", 'administer_comments' );
//  $rid = mysql_insert_id ();
//  variable_set ( 'administer_comments_role', $rid );
//  db_query ( "INSERT INTO {permission} (rid, perm) VALUES (%d, '%s')", $rid, 'administer comments' );
//}

after installing the module you need to give any role the 'administer comments' permission

good luck

another way is to patch commend.module (i dont recommend that) - see patch attached

AttachmentSize
my_comment_d6.patch 880 bytes

#20

Hamster5 - October 19, 2009 - 16:51

Ok, i don't know but maybe i'm doing something wrong, all users get always administer comments permission on all comments, they always see administration links below, and yes they have permission for this actions.

I have to say that now i can use user_comments module, so thanks anyway.

Regards,

 
 

Drupal is a registered trademark of Dries Buytaert.