![]() |
Disable Submit II
You will need to edit the 'NewThread' and 'NewPost' template
This is another version of Xenon's Disable Submit but it disables the buttons instead. Two steps for each template ;) Insert the following code anywhere between <head> and </head> Code:
<script> find: Code:
onSubmit="return validate(this)" Code:
onSubmit="return validate(this),submitonce(this)" Works with all vB versions. The buttons just turn grey like you cant click them anymore ;) |
Quote:
Very intresting, i didn't know ^^ |
sorry for been stupid, but what does it actually do?
|
Are you holding out on us again? :)
Quote:
|
im confused too... and wouldn't this be a template edit?
|
I guess, but you can take it as a hack.
|
I am still lost on the purpose of this hack. and yes this is a template edit because there is no PHP files that were hacked. Can you please xplain what it does thanks.
|
Quote:
|
I think it disables the Submit button after it's been clicked, probably to prevent double-posting. At least, that is my guess, based on the name of the function: "submitonce".
|
Well there is already a hack that disables double-posting, by merging your double post with it's previous..I find this method much better.
|
All times are GMT. The time now is 11:16 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|