PDA

View Full Version : No Double Post v1.0


saint_seiya
07-20-2003, 10:00 PM
This hack will not allow users to double post. Very useful and helps the mods a lot.

If you want any improvements for a future version let me know at:

AIM: Saint Seiya Zero
MSN: d_tenemazakramaley@hotmail.com (do not e-mail me here)
E-mail: david@vgcity.com

Tested in Version 2.2.9 but should work on any Vbulletin version.

DEDICATED TO: Our best double posters and spammers at www.vgcity.com/forum =)

If you need support just reply to this thread.

Time to install: 5minutes or less
Difficultness: Very Easy
Likeness to an error: Very Low

If you use it please click Install (https://vborg.vbsupport.ru/misc.php?s=&action=install&threadid=55481 )

Next Version Requests
-Exclude a certain forum.
-Usergroup settings integration

saint_seiya
07-21-2003, 04:21 PM
If the user was the last to reply he will get this message instead of the reply box.

Hehe, i know its a small hack but very effective.

Soundr
07-21-2003, 04:21 PM
Nice.

Sn00peh
07-21-2003, 04:39 PM
wewt! thanks, installed on my vB 2.3.0 and pressed the button ;)

saint_seiya
07-21-2003, 04:46 PM
Hehe, cool so it works on 2.3.0 too, great :)

Opie
07-21-2003, 06:39 PM
Can you exclude forums like on Xenon's?

saint_seiya
07-21-2003, 06:44 PM
Not at this time but that can be done i guess. I will try to include it in the next version.

N9ne
07-21-2003, 06:50 PM
Some ideas for this hack:

Usergroup settings integration
Forum settings integration

So only certain usergroups are affected, and certain forums.

mx3
07-21-2003, 07:20 PM
Ill install this when 1. My boards are back up and 2. When i can exclude certain forums. :D

saint_seiya
07-21-2003, 08:24 PM
I don't reall see why exclude certain forums. Doubleposts aren't useful anywhere =o

MGM
07-21-2003, 11:07 PM
Except in SPAM or Testing forums :p

MGM out

saint_seiya
07-21-2003, 11:59 PM
Haha, ok your right. Havent seen many forums with those though. lol Well expect the new version in around 2 weeks. I'm kinda very busy making a new design and adding new features to our cms :( (the double post was one of em in my do list :P )

Link14716
07-22-2003, 12:27 AM
Here's a better way to do it IMO...

-----OPEN newreply.php-------
-----FIND------

updateuserforum($threadinfo['forumid']);

-----ADD AFTER IT------

//START NO DOUBLEPOSTS v1.0
$ddp = $DB_site->query_first("SELECT * FROM post WHERE threadid='$threadid' AND visible=1 ORDER BY postid DESC LIMIT 1");
$dpp = $ddp['userid'];

if ($bbuserinfo['userid'] == $dpp){
eval("dooutput(\"".gettemplate("nodoublepost")."\");");
}
//END NO DOUBLEPOSTS v1.0

-----SAVE&UPLOAD newreply.php--------

Kriek
07-22-2003, 01:09 AM
Xenon's Prevent Doubleposting (https://vborg.vbsupport.ru/showthread.php?s=&threadid=40145) is more beneficial/productive in my opinion.

saint_seiya
07-22-2003, 02:02 AM
Link: I don't see how that is a better way. It's still the same.

Kriek: Yeah that might be a better way. Oh well. Never noticed that =o.

Link14716
07-22-2003, 04:40 AM
It's better in that it is less code and it is one less file edit...

sabret00the
07-22-2003, 02:02 PM
yeah i use xenon's it's great, but good work seiya

saint_seiya
07-22-2003, 02:17 PM
I dont think


if ($bbuserinfo['userid'] == $dpp){
eval("dooutput(\"".gettemplate("nodoublepost")."\");");
}


Will do the work. Yes it will output the error page but it will still output the post form after it. Think about it... =o

David Bott
07-24-2003, 12:28 PM
This is very nice. What I would really wish to find is something that would gray out the submit button when pressed so they do not press it more than one time making a real double post!

David Bott
AVSForum.com

saint_seiya
07-24-2003, 07:46 PM
That's easy to do. I might add that in the next version.

David Bott
07-24-2003, 09:14 PM
Make it a seperate hack for I really do not need this one for we do not mind a post after another if needed. :) That is what I thought this was...do fix dup posts.

DarkDraco07
07-24-2003, 09:26 PM
hasnt this hack been released already, i downloaded and installed long ago

saint_seiya
07-24-2003, 10:45 PM
There is another similar one. Not one exactly like this though.

gaxpox
09-14-2007, 01:06 AM
i can't find this updateuserforum($threadinfo['forumid']); in newreply.php