![]() |
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.
|
hmm, do you think he meant my prevent doublepost hack?
really his expressions aren't really easy to understand then ;) |
I kind of got lost on that one, too. :)
|
=[
|
Quote:
a temp hack = nothing this should be a temp mod = template modification and shouldn't be published as full release hack (being a source code modification) |
hey thx, tis works gread.
anyway, it's not a hack but a template edit ;) |
i found a bug.
when you puch the preview button he submit the thread automatic. he don't show a preview of the post. is it posibel to fix this bug? |
All times are GMT. The time now is 03:57 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:
|