Remove Comments

Hi, is there the possibility to remove comments on own profile?

Quote · 3 Aug 2008

no solutions?

 

 

www.waslove.com

Quote · 9 Aug 2008

Hi - the only answer I have seen to this is to buy a $20 mod from Praveenk at expertzzz.com /

Surely this has to be basic Dolphin functionality.

At least please tell me it will be fixed in the next version ...?

Thanks

Dan V

Quote · 19 Nov 2008

So Admin can remove comments from peoples pages but they cant remove comments from their own pages?

That sucks :-(

That means Admin has to keep an eye on all the spammy comments and tidy up for everyone.

Can someone please explain how to allow the member to remove comments from their own profile page?

Thanks

Dan V

Quote · 24 Nov 2008

Someone tell me please that theres an easy way to make it possible for members to moderate their own pages comments...   pretty please

Quote · 26 Nov 2008

Bump

Quote · 30 Nov 2008

I found this bit of code that seems like it might be possible to activate members  deleting their own comments.

Is there somewhere here that one can activate deleting comments if they are on your own paofile page and posted by someone else?

There MUST be a way to do this - no??

Dan V

Quote · 30 Nov 2008

Woops forgot the code below Embarassed

From inc/classes/BxDolCmts.php

/**
* check if user can post/edit or delete own comments
*/
function checkAction ($iAction)
{
$iId = $this->_getAuthorId();
$check_res = checkAction( $iId, $iAction );
return $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
}


function getId ()
{
return $this->_iId;
}

function isEnabled ()
{
return $this->_aSystem['is_on'];
}

function getSystemName()
{
return $this->_sSystem;
}

Quote · 30 Nov 2008

Bump. Come on Boonex, this is a simple enough question. Why wont anyone answer it?

Quote · 16 Dec 2008

as admin how can we remove members comments?

Quote · 16 Dec 2008

birdtribes, have you checked this code, does it work?

Stuart -

Woops forgot the code below Embarassed

From inc/classes/BxDolCmts.php

/**
* check if user can post/edit or delete own comments
*/
function checkAction ($iAction)
{
$iId = $this->_getAuthorId();
$check_res = checkAction( $iId, $iAction );
return $check_res[CHECK_ACTION_RESULT] == CHECK_ACTION_RESULT_ALLOWED;
}


function getId ()
{
return $this->_iId;
}

function isEnabled ()
{
return $this->_aSystem['is_on'];
}

function getSystemName()
{
return $this->_sSystem;
}

There are none so blind as those that will not see.
Quote · 16 Dec 2008

I have spent hours trying to solve this problem and still into it...

But I believe that the part of the code refers to the user who posted it not the owner of the profile...this code checks what you set in admin section if "owner of comment" which means poster can edit/remove it...

nurke

Quote · 18 Dec 2008

hey guys i have a solution to this :)

Step 1:

in admin/settings/Membership Levels

""Site is running in free mode"" disable free mode

Step2:

Manage Membership Types

klick on Standard and add

comments edit own

comments remove own

Save changes

That's it :))))

wasn't that easy lol :))

Quote · 19 Dec 2008

won't have any effect on free running sites

well looks like we have to find another way around this :(

Quote · 19 Dec 2008

Well Im glad to see Im not the only one interested in this.

I agree with the people above who said the code I posted was for the maker of the comment to remove their own comment. I just thought it indicated the possibility of adapting this code to allow the profile owner to remove posts. I am not a programmer myself.

Allowing the owner of the profile to remove comments is such basic and essential functionality I cant believe that this has not been included in the default Dolphin.

What are you supposed to do if someone posts crud on your profile????

Come on Boonex - give us a hint what you expect us to do about this ....

DV

Quote · 22 Dec 2008

there are many basic functions left out in dolphin but why ?... who knows maybe it's just a way to make ppl. buy extra mods ....

Quote · 23 Dec 2008

Would someone from Boonex please address this issue? It really cant be that hard to give us a solution can it?

(I am using Dolphin 6.1004)

Quote · 12 Jan 2009

Just in case anyone is still interested ....  okayweb pointed out in another thread that there is a new mod that claims to do this  http://www.expertzzz.com/Downloadz/view/5157

also a later version for $15 that allows the member to stop anonymous comments.

Looks good. Will be a while before I get to it but please report if anyone installs and it works (or not).

Quote · 22 Jan 2009

Users cannot edit or remove thier own comments in 6.14 if the site is running in free mode. here is what I did to resolve it:

 

In /inc/classes/BxDolCmnts.php

 

Change the following code:

 

      if(getParam("free_mode") == "on") return false;
     return $this->checkAction (ACTION_ID_COMMENTS_EDIT_OWN);
    }

    // is removing own comment allowed
    function isRemoveAllowed ()
    {
      if(getParam("free_mode") == "on") return false;
     return $this->checkAction (ACTION_ID_COMMENTS_REMOVE_OWN);
    }

      

To this:

 

      // if(getParam("free_mode") == "on") return false;
     return $this->checkAction (ACTION_ID_COMMENTS_EDIT_OWN);
    }

    // is removing own comment allowed
    function isRemoveAllowed ()
    {
      //  if(getParam("free_mode") == "on") return false;
     return $this->checkAction (ACTION_ID_COMMENTS_REMOVE_OWN);
    }

  

By commenting out these two this will work for users to edit or delete thier own comments but I have not yet found a solution for members to edit or delete comments on thier own profiles that were put there by other users. still working on that.

Quote · 9 Mar 2009

Thanks Tango3D - please let us know if you do solve the 'removing other peoples comments from your Profile Page' problem. I've spent so much on mods Im reluctant to keep spending, especially when Dolphin 7 will probably have a different set of mods possible and useful anyway.

DV

Quote · 17 Mar 2009

Ok guys, prior to looking at this I've had zero experience with PHP, but I think I've cracked it.

In inc>classes>BxDolCmts.php replace the code between

// is edit any comment allowed

and

/** actions functions

with the following

function isEditAllowedAll ()
{
global $logged;

$return = false;

if ($logged['admin'])
{
$return = true;
}
return $return;
}

// is removing any comment allowed
function isRemoveAllowedAll ()
{
global $logged;
global $p_arr;

$return = false;

$memberID  = (int)$_COOKIE['memberID'];
$profileID = (int)$p_arr['ID'];

if ($logged['member'] && $memberID == $profileID)
{
$return = true;
}
elseif ($logged['admin'])
{
$return = true;
}
return $return;
}

Then, in templates>base>scripts>BxBaseCmtsView.php replace line 244

if (!($n && $isJustPosted) && !$isEditAllowedPermanently) return '';

with

if (!($n && $isJustPosted) && !$isEditAllowedPermanently && !$isRemoveAllowedPermanently) return '';

and that, I think, should solve the problem.

A couple of caveats

1) Like I say I'm brand new to PHP so can't promise that the above isn't buggy or hacky. All I will say is that it does the job for me.

2) I've spent the best part of two days figuring this out and have a sneaking suspicion that I've forgotten a tweak in the BXBaseCmtsView.php file. If I have it will be something along the lines of making sure that whatever the file does for an isEditAllowed command it does for a isRemoveAllowed command too. Will be interested to hear any feedback.

Finally, when faced with problems like this I recommend having a crack at learning the PHP. There's lots of support online and it's (slightly) easier, and certainly more fun than it looks.

Best of luck.

Quote · 23 Jul 2009

I tried what you have added here- all looks great and seems to be in order- Only I get a access denied error. I tried for an hour to figure it out and have not.

 

The remove and edit buttons are there, as should be but when I try to edit or remove a comment it gives a access denied error.

So it is looking good so far, now to get around that error would allow it to work!

Quote · 23 Jul 2009

 

I tried what you have added here- all looks great and seems to be in order- Only I get a access denied error. I tried for an hour to figure it out and have not.

 

The remove and edit buttons are there, as should be but when I try to edit or remove a comment it gives a access denied error.

So it is looking good so far, now to get around that error would allow it to work!

 You have missed something in the code, causing an error on the permission.  Check the code again, also ensure you are putting it in the exact spot they have show you.  It does work, I've tried it on 3 different domains and also the test sites for each of them. 

Quote · 23 Jul 2009

@ TheHairBall

Your mod is correct just add my other mod for the same file

BxDolCmts.php

At the top look for

'sec_to_edit' =>

replace

'sec_to_edit' => 999999999999999999999999999999999999999999999999999999999999999990,

It will work perfect now

Quote · 23 Jul 2009

 

@ TheHairBall

 

Your mod is correct just add my other mod for the same file

 

BxDolCmts.php

 

At the top look for

 

'sec_to_edit' =>

 

replace

 

'sec_to_edit' => 999999999999999999999999999999999999999999999999999999999999999990,

 

It will work perfect now

 THANK YOU, THIS DID THE TRICK. I am a happy camper now!

 

I knew I had not made an error considering, I have installed so many mods I know Dolphin files well. I did try to change that on my own but made that number a 0, I did not think of many 9's. I have version 6.1.4

 

Again thank you very much!

Quote · 24 Jul 2009

You are welcome!

Quote · 24 Jul 2009

Yey Im so glad to hear we finally have a fix for this *^%$&$# lack of basic functionality !

Cant wait to get it up and running.

Thanks Everyone.

Dan V

Quote · 16 Oct 2009

This still works for D6.1.6, thanks!

 

Taking Dolphin and Making Profitable Websites Since 2009 :)
Quote · 13 Aug 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.