Quote:
Originally Posted by RS_Jelle
1. I'm sorry but this isn't possible at the moment.
2. I had a different idea of what you meant (I thought you meant a full page with a disclaimer and such a checkbox, but you mean it on the same page). Just replace the download buttons with a code like this:
Code:
<script type="text/javascript">
<!--
function checkCheckBoxes(disclaimercheck)
{
if (disclaimercheck.disclaimer.checked == false)
{
alert ("You have to agree to the disclaimer if you want to download.");
return false;
}
return true;
}
//-->
</script>
<form name="disclaimercheck" method="get" action="downloads.php" onsubmit="return checkCheckBoxes(this);">
<input type="hidden" name="do" value="file">
<input type="hidden" name="id" value="$file['id']">
<input type="hidden" name="act" value="down">
<input type="checkbox" name="disclaimer"> I have read and understand the <a href="http://www.yoursite.com/index.php?page=disclaimer">Disclamer</a>.
<br /><input type="submit" class="button" value="Download">
</form>
4. This site isn't running DownloadsII, but the older ecDownloads of Ron1n (a modified one). Such dropdowns won't work, because there is no option to do such search actions (you can only do a general search at the moment). The next big release will contain a more advanced search system, this is on our todo list.
6. The way to get around this requires modifying the DownloadsII PHP code a bit harder. Normally I've got some time this weekend, so I will try to send you a pm with some custom code to do it 
|
Thanks heaps, I really appreciate all the time you are putting in. and I will try out the above code now. Thanks.
Edit:After trying to place that code in different spots, replacing code that I think was the downloads button code and so on, I got this same error message when trying to save the template
Code:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/public_html/forums/includes/adminfunctions_template.php(3593) : eval()'d code on line 61
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I was trying to edit this template: downloads_file
Which templates should I edit, and what part of the code do I replace. I'll keep trying but I think im going about this the wrong way lol.
Thanks.