3.2 & 3.3 Extensions Database 3.2 / 3.3Pay for download

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

francesca
Users
Users
Status: Offline
User theme: Dark
Posts: 42
Joined: Jun 5th, '15, 02:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Thank you Hamidouki-dz but make an upload button here
up.png
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5136
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Pay for download

Post by martin »

Dont put you downloads in the ext you loose them on updates il post how to add the upload in the morning.
Image

User avatar

francesca
Users
Users
Status: Offline
User theme: Dark
Posts: 42
Joined: Jun 5th, '15, 02:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Hello no one to help me with my question ?

User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5136
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Pay for download

Post by martin »

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' %}

User avatar

francesca
Users
Users
Status: Offline
User theme: Dark
Posts: 42
Joined: Jun 5th, '15, 02:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Thank you very much martin :wink:

User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5136
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Pay for download

Post by martin »

Disable the button on posting pages and keep it for admin too as later in life you may run into issues. :whistl:

User avatar

francesca
Users
Users
Status: Offline
User theme: Dark
Posts: 42
Joined: Jun 5th, '15, 02:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Thank you :tumbsyes: :wink:

User avatar

Maclobster
Users
Users
Status: Offline
User theme: Dark
Posts: 80
Joined: Apr 26th, '20, 18:26
    Windows 10 Chrome

Re: Pay for download

Post by Maclobster »

Thanks :tumbsyes: :eusa_dance:
“A man searching for the Lost Paradise, can seem a fool to those who never sought the other world.”
-JM

User avatar

Topic Author
dmzx Online
Founder
Founder
Status: Online
User theme: Dark
Posts: 6517
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

Topic Author
dmzx Online
Founder
Founder
Status: Online
User theme: Dark
Posts: 6517
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

Topic Author
dmzx Online
Founder
Founder
Status: Online
User theme: Dark
Posts: 6517
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

The Good
Users
Users
Status: Offline
User theme: Dark
Posts: 93
Joined: Nov 5th, '15, 21:48
    Windows 10 Chrome

Re: Pay for download

Post by The Good »

Hi.. I want to try..
the file should be hosted in forum server or can be as link exp www.mediafire.com ?

User avatar

Topic Author
dmzx Online
Founder
Founder
Status: Online
User theme: Dark
Posts: 6517
Joined: Jan 13th, '14, 20:45
    Android Chrome

Re: Pay for download

Post by dmzx »

The Good wrote: Aug 17th, '21, 11:54 Hi.. I want to try..
the file should be hosted in forum server or can be as link exp www.mediafire.com ?
it can be any link, on server or outside server.

User avatar

jordon
Users
Users
Status: Offline
User theme: Dark
Posts: 7
Joined: Dec 19th, '21, 19:29
    Windows 10 Chrome

Re: Pay for download

Post by jordon »

Hello, what extension do I need to pay?

User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5136
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Pay for download

Post by martin »

jordon wrote: Dec 19th, '21, 19:43 Hello, what extension do I need to pay?
?