[2.0.10] Double Post Control 1.1.0

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
10
50%
Very Good
6
30%
Good
1
5%
Fair
0
No votes
Poor
3
15%
 
Total votes : 20

[2.0.10] Double Post Control 1.1.0

Postby MOD Robot » Sun Aug 01, 2004 5:57 pm

MOD Name: Double Post Control 1.1.0
Author: Kinetix-
MOD Description: This MOD effectively stops users from posting the same message twice in a row, which can be caused by page-loading problems and when a user clicks the "Submit" problem twice (double-post).

MOD Version: 1.1.0 (Updated 11/16/04)



Download File: double_post_control_110.mod
mods overview page: View
File Size: 3833 Bytes

Security Score:
Last edited by MOD Robot on Mon Apr 30, 2007 12:30 am, edited 1 time in total.
(this is a non-active account manager for the phpBB MOD Team)
MOD Robot
MOD Queue Bot
MOD Queue Bot
 
Posts: 21210
Joined: Sat Aug 16, 2003 7:36 am

Postby wGEric » Sat Aug 21, 2004 4:06 am

MOD Validated/Released

Notes:
This MOD stops the posting of the same message twice by checking to see if another post has been made with the exact same text.

In a way, this MOD can stop spammers because they won't be able to copy and paste the same message over and over while spamming. They will have to change each message a little bit.
User avatar
wGEric
Operations Manager
Operations Manager
 
Posts: 8595
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday

Postby twister17e » Sat Aug 21, 2004 5:11 am

Excellent, I'm installing now :P .
twister17e
Registered User
 
Posts: 187
Joined: Tue Aug 17, 2004 9:31 pm

Postby DK Avalanche » Sat Aug 21, 2004 5:15 am

simple! :wink:

thanks

Av
Quote by UncleHusker "okay... maybe you can could explain this like i'm a 2 year old (because iam VERY slow at this! lol) "
DK Avalanche
Registered User
 
Posts: 158
Joined: Fri Oct 31, 2003 10:06 pm

Postby »»EDDY«« » Sat Aug 21, 2004 8:10 am

Function work, but:
- why checks title also?
- why signature also?
- why has not no message?
look


Lang Polish:
Code: Select all
$lang['Double_Post_Error'] = 'Nie możesz wysłać takiej samej wiadomo¶ci po raz drugi.';




PS. Sorry for my english.
Make a Tiny URL in excellent domain heh.pl


cooling system & water cooling
User avatar
»»EDDY««
Registered User
 
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk

Postby Kinetix- » Sat Aug 21, 2004 4:05 pm

Hi, thanks for validating my MOD.

It's actually not to prevent people from copying their text and reposting it, but rather to prevent people from pressing the "Submit" button twice - which I've seen very often when people run into page loading problems -which causes their message to appear twice.

@»»EDDY««: It does not check the title nor the signature. They are not part of the post_text column.
As for no message showing, did you put your message into language/lang_english/lang_main.php? If you did, you should have put it into language/lang_polish/lang_main.php.
Kinetix-
Registered User
 
Posts: 128
Joined: Sun Aug 01, 2004 12:07 pm
Location: Canada

Postby .Wes. » Sat Aug 21, 2004 5:09 pm

Thanks Kinetix-! Very neat mod and very usefull.
User avatar
.Wes.
Registered User
 
Posts: 29
Joined: Sat Jul 31, 2004 5:29 pm
Location: England!

Postby »»EDDY«« » Sat Aug 21, 2004 9:20 pm

- As for no message showing, did you put your message into language/lang_english/lang_main.php?
Yes.

- to prevent people from pressing the "Submit" button twice - which I've seen very often when people run into page loading problems -which causes their message to appear twice.
It sneezes...
Make a Tiny URL in excellent domain heh.pl


cooling system & water cooling
User avatar
»»EDDY««
Registered User
 
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk

Postby electronikus » Tue Sep 07, 2004 4:00 pm

...deleted by poster.
User avatar
electronikus
Registered User
 
Posts: 102
Joined: Tue May 18, 2004 11:41 am
Location: Munich, Germany

Postby Nordica » Mon Sep 20, 2004 7:50 pm

I have this mod installed on 2.0.10, and it seemd to work just fine, until ..., until I got a double post.

I verified that I installed this mod correctly.

Double post occured when poster replied to a topic, and subject of the reply was blank. Reply showed up twice.
Nordica
Registered User
 
Posts: 31
Joined: Tue Sep 14, 2004 6:00 pm

Postby Nordica » Tue Sep 28, 2004 9:52 pm

Just got another double post on my board with this mod installed.

I just don't know enough about it to figure out how it is happening.

Only similarity is that both double posts were replies to an existing topic, both were not on the first page of the thread, and both had an empty subject line.
Nordica
Registered User
 
Posts: 31
Joined: Tue Sep 14, 2004 6:00 pm

Postby Kinetix- » Sat Oct 09, 2004 1:34 pm

Sorry, been away from community for a while.

In the code, try removing this from the double post control:
Code: Select all
AND p.post_time = $lastposttime


See how it goes.
Kinetix-
Registered User
 
Posts: 128
Joined: Sun Aug 01, 2004 12:07 pm
Location: Canada

Postby Meithar » Sun Oct 17, 2004 10:19 pm

Kinetix-
Thanks, but... what about bbcode_uid :wink: . This mod control only plain text posts.

Here is my version:

Code: Select all
// Double Post Control
if ($mode != 'editpost') {
   $lastposttime = intval($row['last_post_time']);
   $where_sql = ($userdata['user_id'] == ANONYMOUS) ? "p.poster_ip = '$user_ip'" : 'p.poster_id = ' . $userdata['user_id'];
   $sql = "SELECT pt.post_text, pt.bbcode_uid
      FROM " . POSTS_TABLE . " p, " . POSTS_TEXT_TABLE . " pt
      WHERE $where_sql AND p.post_time = $lastposttime AND pt.post_id = p.post_id
      LIMIT 1";
   if ($result = $db->sql_query($sql)) {
      if ($row = $db->sql_fetchrow($result)) {
         if ( str_replace($row['bbcode_uid'], $bbcode_uid, $row['post_text']) == $post_message) {
            message_die(GENERAL_MESSAGE, $lang['Double_Post_Error']);
         }
      }$db->sql_freeresult($result);
   }
}
Last edited by Meithar on Sun Nov 14, 2004 4:12 pm, edited 1 time in total.
Meithar
Registered User
 
Posts: 16
Joined: Tue Sep 16, 2003 8:57 am

Postby Makc666 » Fri Nov 12, 2004 11:51 am

Is there any difference with this one??

[2.0.6] Topic flood control
http://www.phpbb.com/phpBB/viewtopic.php?t=156144
User avatar
Makc666
Registered User
 
Posts: 357
Joined: Fri Mar 07, 2003 12:03 pm
Location: MSK-RU

Postby Kinetix- » Sat Nov 13, 2004 5:53 pm

Ah, I completely forgot about this MOD.

Makc666: This MOD is for preventing users from posting the same message twice in a row (hitting Submit twice, causes double-posting).
That MOD is for changing the flood control limit (which I thought was a feature of phpBB already?).

As for the bbcode_uid thing, thanks for posting that problem. It's now fixed and will be available as soon as it gets revalidated.
For now, you can get the file here.
Kinetix-
Registered User
 
Posts: 128
Joined: Sun Aug 01, 2004 12:07 pm
Location: Canada

Next

Return to [2.0.x] MOD Database Cleanup

Who is online

Users browsing this forum: No registered users and 2 guests