Quote:
Originally Posted by Aglarech
Love the mod, and have actively used it on a few different forums I frequent, but now I've installed it to my own forum and I get that same 'security token' error when trying to upload a new file. Since I'm new to this I have to ask: which "forms" are we talking about here? Any chance you could list them, or just point me in the right direction? Many thanks.
|
Quote:
Originally Posted by DmentedH
yeah i also want to know this. i get a security token error as well and want to know where to put that edit
|
You will need to go into the Stylers & Templates --> Style Manager --> Choose the Drop Down next to your active Style and choose: Edit Templates
Now you will need to find the templates for DownloadsII and add the line Jelle listed after each form.
Example (downloads_file Templates):
I added the above line right below this line:
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
so it looked like:
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="file" size="40" name="image" />
Example #2 (downloads_file Templates):
Same templates, but another form
Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<table cellpadding="5" cellspacing="0" border="0" width="100%">
Using the above examples you should be able to use the search template option and find everything you need.
Cheers!