Delete Spam Posts

Started by Kays, December 04, 2007, 11:39:17 PM

Previous topic - Next topic

Kays

I'll look into updating it for 2.0.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Kays

Sorry about the delay. but this mod now has been updated for 2.0 RC2.

Unfortunately, due to the changes in how the moderation log is put together for 2.0. It is no longer possible to display the body of the deleted message or that of any modified messages as before.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

sunman4008

Hello,

I just tried to install in 1.1.1.11 and I get this:     Execute Modification     ./Sources/Post.php     Test failed

How do I fix that?

-Mike

Kays

Hi, can you attach that file to a post so I can have a look at it.

Don't install the mod until I do.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Joker™

bro can u explain how it'll look after the removal of message .... as i cant see anything like u shown in pics

im using RC2 default curve theme
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Joker™

Quote from: sid2varun on March 02, 2010, 03:58:59 AM
bro can u explain how it'll look after the removal of message .... as i cant see anything like u shown in pics

im using RC2 default curve theme

bump**
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Kays

There should be a link in the bottom of a post replacing the "Report to moderator" link.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Joker™

ummm no such link for me there

plz see the pic attached ... i've cleared site cache also , also have enabled options from admin cp
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Kays

In looking at it, I think that's normal. It won't show if it's your own post. Or in the recycle board.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Joker™

thats a test post in general board by another user
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

poomkupz

Pls Upgrade To Rc3

Thank you Very Much

Kays

Updated for 2.0 RC3.

@ sid2varun
Are you still having this problem? I can't seem to reproduce it in my testing


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Joker™

bro .. im using pretty heavily modified RC2 .... will upgrade to final version only now ....

If it works ok on RC3 then will try on my test site in my pc ... right now im out ...
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Bugo

#53
Kays, maybe make a small fix in install_20xml?

updateMemberData($row['id_member'], array('karmaBad' => '+'));

Column 'karmaBad' doesn't exists in SMF 2.0 ('karma_bad' only).

Also I think it makes sense to replace this block
     $smcFunc['db_query']('', '
SELECT
subject, body, id_member, poster_name, poster_email, poster_ip, icon
FROM {db_prefix}messages
WHERE id_msg = {int:msg}
LIMIT 1',
array(
'msg' => $_REQUEST['msg'],
)
);

$row = $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);

on this:
$request = $smcFunc['db_query']('', '
SELECT
subject, body, id_member, poster_name, poster_email, poster_ip, icon
FROM {db_prefix}messages
WHERE id_msg = {int:msg}
LIMIT 1',
array(
'msg' => $_REQUEST['msg'],
)
);

$row = $smcFunc['db_fetch_assoc']($request);
$smcFunc['db_free_result']($request);

Errors in the log will disappear ;)

Kays

Thanks Bugo, just got a chance to update the mod. :)

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Bugo

Well, then add russian translation :) For SMF 1.x and 2.x separately.

Robert A. Rosenberg

I have this mod on but it does not seem to be working. The post just gets deleted instead of being replaced with the template text. What am I doing wrong or how do I delete a SPAM post so this mod gets triggered.

Thank You.

Kays

Sorry for the delay Bugo and thanks. I just noticed the translations.

The mod has been updated for 2.0 RC5. Russian translation added.

Quote from: Robert A. Rosenberg on February 16, 2011, 05:18:51 PM
I have this mod on but it does not seem to be working. The post just gets deleted instead of being replaced with the template text. What am I doing wrong or how do I delete a SPAM post so this mod gets triggered.

Thank You.

Are you clicking on the "Delete Spam Post" link at the bottom right of the post?
If so, any errors on the error log?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: