Skip to content
WJunction - Webmaster Forum

[TUT]Blocking botton Post new topick after click

Status
Not open for further replies.
2.2.x:

Often users hit the 'Post' button to create a new topic several times, resulting in many similar topics/posts. The article, I write as an opportunity to make clicking only once possible, after which the text buttons altered to "Sent", and re-pressing will be blocked.

ACP -> LOOK & FEEL -> Your Skin -> Edit Template HTML -> Post Screen -> EndForm
Find:
Code:
<input type="submit" name="dosubmit" value="$data" tabindex="7" class="button" accesskey="s" />&nbsp;
Replace with:
Code:
<input type="submit" onclick=this.disabled=true;this.value='Sending...' name="dosubmit" value="$data" tabindex="7" class="button" accesskey="s" />&nbsp;

That's all :)
 
Status
Not open for further replies.

About the author

L
Active Member · Joined
184
Messages
7
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom