3.2 & 3.3 Extensions Database 3.2 / 3.3 ⇒ Pay for download
-
francesca
- Donator

- Posts: 42
- Joined: 05 Jun 2015, 04:32
Re: Pay for download
Thank you Hamidouki-dz but make an upload button here
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Pay for download
Dont put you downloads in the ext you loose them on updates il post how to add the upload in the morning.

-
francesca
- Donator

- Posts: 42
- Joined: 05 Jun 2015, 04:32
Re: Pay for download
Hello no one to help me with my question ?
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Pay for download
Download the file upload ext
File Upload install it and set it to admin only use then replace the payfordownload_input_link.html code with this.
Code: Select all
<div class="inner">
<p><h3>{{ lang('PAYFORDOWNLOAD_LINK_ADD_TITLE') }}</h3></p>
<fieldset class="fields2">
<dl>
<dt><label for="payfordownloadlink">{{ lang('PAYFORDOWNLOAD_LINK_ADD_TITLE_BOX1') }}</label></dt>
<dd>{% if FILEUPLOAD_USE_UPLOAD and S_ACCESS %}
<button class="button" class="button2" onclick="popup('./fileupload', 700, 800); return false;" value="{{ lang('FILEUPLOAD_UPLOAD') }}" title="{{ lang('FILEUPLOAD_UPLOAD') }}" />
<i class="icon fa fa-files-o" aria-hidden="true"></i><span class="sr-only">{{ lang('FILEUPLOAD_UPLOAD') }}</span>
</button>
{% endif %}<input type="url" name="payfordownloadlink" id="payfordownloadlink" class="inputbox"><i class="buttoncopy" data-copytarget="#payfordownloadlink">{{ lang('PAY_COPY') }}</i></dd>
</dl>
<dl>
<dt><label for="payfordownload_credits">{{ lang('PAYFORDOWNLOAD_LINK_ADD_TITLE_BOX2') }}</label></dt>
<dd><input type="number" min="1" max="1000" name="payfordownload_credits" id="payfordownload_credits" value="40" class="inputbox autowidth">{{ lang('PAYFORDOWNLOAD_LINK_ADD_TITLE_BOX2_EXPLAIN') }}</dd>
</dl>
{% if S_ACCESS %}
<dl>
<dt><label for="payfordownload_owner">{{ lang('PAYFORDOWNLOAD_LINK_ADD_TITLE_BOX4') }}</label></dt>
<dd><input type="text" name="payfordownload_owner" id="payfordownload_owner" maxlength="255" value="{{ USERNAME }}" class="inputbox" style="max-width: 40%;"></dd>
</dl>
<dl>
<dt><label for="payfordownload_find_username"></label></dt>
<dd><input type="button" id="payfordownload_find_username" value="{{ lang('FIND_USERNAME') }}" class="button2" onclick="find_username('{{ U_FIND_USERNAME }}'); this.blur(); return false;"></dd>
</dl>
{% endif %}
</fieldset>
<fieldset class="submit-buttons">
{% if S_ACCESS %}
<input type="button" value="{{ lang('PAYFORDOWNLOAD_LINK_ADD_BUTTON') }}" class="button1" onclick="Reload_Body('{{ U_MAKE }}&payfordownloadlink='+encodeURIComponent(document.getElementById('payfordownloadlink').value)+'&payfordownload_credits='+document.getElementById('payfordownload_credits').value+'&payfordownload_owner='+document.getElementById('payfordownload_owner').value,'payfordownloadcontent');">
{% else %}
<input type="button" value="{{ lang('PAYFORDOWNLOAD_LINK_ADD_BUTTON') }}" class="button1" onclick="Reload_Body('{{ U_MAKE }}&payfordownloadlink='+encodeURIComponent(document.getElementById('payfordownloadlink').value)+'&payfordownload_credits='+document.getElementById('payfordownload_credits').value,'payfordownloadcontent');">
{% endif %}
<hr class="dashed">
</fieldset>
<p>{{ lang('PAYFORDOWNLOAD_LINK_ADD_EXPLAIN') }}</p>
</div>
{% INCLUDEJS '@dmzx_payfordownload/js/copy.js' %}-
francesca
- Donator

- Posts: 42
- Joined: 05 Jun 2015, 04:32
Re: Pay for download
Thank you very much martin 
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Pay for download
Disable the button on posting pages and keep it for admin too as later in life you may run into issues. 
-
Maclobster
- Users

- Posts: 80
- Joined: 26 Apr 2020, 20:26
Re: Pay for download
Thanks

“A man searching for the Lost Paradise, can seem a fool to those who never sought the other world.”
-JM
-JM
-
The Good
- Users

- Posts: 93
- Joined: 05 Nov 2015, 22:48
Re: Pay for download
Hi.. I want to try..
the file should be hosted in forum server or can be as link exp www.mediafire.com ?
the file should be hosted in forum server or can be as link exp www.mediafire.com ?
-
dmzx
- Founder

- Posts: 6466
- Joined: 13 Jan 2014, 21:45
Re: Pay for download
it can be any link, on server or outside server.The Good wrote: 17 Aug 2021, 13:54 Hi.. I want to try..
the file should be hosted in forum server or can be as link exp www.mediafire.com ?
-
jordon
- Users

- Posts: 7
- Joined: 19 Dec 2021, 20:29
Re: Pay for download
Hello, what extension do I need to pay?