XFileSharing Free - How to have the TOS ticked by default

Message
Author
filehosting
Posts: 13
Joined: Sep 15, 2007 9:47 pm

How to have the TOS ticked by default

#1 Postby filehosting » Oct 16, 2007 5:02 am

How do I go about have the terms of service tick box, already checked by default, so that users only have to browse to the file, and click upload?

Thanks

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Oct 16, 2007 6:12 am

That's easy. In Templates/upload_form.html replace

Code: Select all

<input type="checkbox" name="tos" value="1" id="tos">
with

Code: Select all

<input type="checkbox" name="tos" value="1" id="tos" checked>
Actually you can remove it at all from code with same effect. There won't be any error.

filehosting
Posts: 13
Joined: Sep 15, 2007 9:47 pm

#3 Postby filehosting » Oct 16, 2007 9:37 pm

Thanks! worked great!