Quote:
Originally Posted by hornstar1337
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.
|
You have to edit
downloads_file indeed
This code should do the trick:
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>
Quote:
Originally Posted by jarvis
I've been using this hack for a while, and thanks by the way, but I would love to see a future enhancement.
Hopefully this is fairly easy since I saw the PM modification for it, but what I would like to see is that each time a file is added/uploaded, it creates a thread in a specific forum announcing the upload with description, link ,etc.
If no one had the time, I'd be willing to contribute to a fund. 
|
I will try to create this one

The poster of the thread: do you want it to be a specified person or the person who placed the file?