vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   No Double Post v1.0 (https://vborg.vbsupport.ru/showthread.php?t=55481)

saint_seiya 07-20-2003 10:00 PM

No Double Post v1.0
 
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

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...

PHP Code:

-----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 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

PHP Code:

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


All times are GMT. The time now is 06:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01224 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete