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
Posts: 42
Joined: 05 Jun 2015, 04: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.

User avatar

martin
Admin
Admin
Posts: 5138
Joined: 06 Apr 2014, 16: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
Posts: 42
Joined: 05 Jun 2015, 04: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
Posts: 5138
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Pay for download

Post by martin »

Download the file upload ext viewtopic.php?f=66&t=2470 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
Posts: 42
Joined: 05 Jun 2015, 04:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Thank you very much martin :wink:

User avatar

martin
Admin
Admin
Posts: 5138
Joined: 06 Apr 2014, 16: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
Posts: 42
Joined: 05 Jun 2015, 04:32
    Windows 10 Chrome

Re: Pay for download

Post by francesca »

Thank you :tumbsyes: :wink:

User avatar

Maclobster
Users
Users
Posts: 80
Joined: 26 Apr 2020, 20: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
Founder
Founder
Posts: 6586
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6586
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

Topic Author
dmzx
Founder
Founder
Posts: 6586
Joined: 13 Jan 2014, 21:45
    Windows 10 Chrome

Re: Pay for download

Post by dmzx »

First post updated.

User avatar

The Good
Users
Users
Posts: 93
Joined: 05 Nov 2015, 22: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
Founder
Founder
Posts: 6586
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Pay for download

Post by dmzx »

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 ?
it can be any link, on server or outside server.

User avatar

jordon
Users
Users
Posts: 7
Joined: 19 Dec 2021, 20:29
    Windows 10 Chrome

Re: Pay for download

Post by jordon »

Hello, what extension do I need to pay?

User avatar

martin
Admin
Admin
Posts: 5138
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Pay for download

Post by martin »

jordon wrote: 19 Dec 2021, 20:43 Hello, what extension do I need to pay?
?

Post Reply Previous topicNext topic