[CDB] Group Subscription (PayPal)

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Get Involved
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
StevoTVR
Registered User
Posts: 318
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

[CDB] Group Subscription (PayPal)

Post by StevoTVR »

Extension Name: Group Subscription
Author: StevoTVR

Extension Description: Allows you to create paid subscriptions for members to gain access to usergroups.
Extension Version: 1.1.0-beta
Source Repository: https://github.com/stevotvr/phpbb-groupsub

Requirements:
  • phpBB 3.2.0
  • cURL or allow_url_fopen enabled in the PHP configuration
Features:
  • Accept payments via PayPal in any currency supported by PayPal
  • Supports multiple packages each with multiple price/length options
  • Subscription packages can be attached to one or more usergroups
  • Users are automatically added/removed from groups as their subscription starts/ends
  • Optionally set subscribers' default group
  • Notifications when a subscription is about to expire and has expired
  • Configurable warning time and grace period
  • Sandbox mode for testing
Screenshots:
Image

Image

Image

Image

Image

Image

Image

Extension Download: https://github.com/stevotvr/phpbb-group ... 0-beta.zip
Last edited by StevoTVR on Sun Aug 11, 2019 6:04 pm, edited 4 times in total.
User avatar
</Solidjeuh>
Registered User
Posts: 1788
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by </Solidjeuh> »

This is interesting! Great ext!
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Group Subscription (PayPal)

Post by eunaumtenhoid »

WOW amazing dude ty
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
Hartenheer
Registered User
Posts: 780
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Hartenheer »

I follow this.
Sorry English is not my native language :oops:
regards: Willem

https://bierfijnproevers.nl/bierforum
User avatar
jackennils
Registered User
Posts: 229
Joined: Mon Jun 01, 2009 7:48 pm

Re: [BETA] Group Subscription (PayPal)

Post by jackennils »

Very interesting! Following right now.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3590
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Kailey »

Subscribed!
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
eunaumtenhoid
Registered User
Posts: 1007
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Group Subscription (PayPal)

Post by eunaumtenhoid »

When added to the group will it be the default group?
can I add a selectbox to this default group option or not?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3590
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Kailey »

2 things I noticed.

1) The first subscription uses 2 different background colors. It's hard to see in the picture below, but if you look closely you can see it.
2) BBCode only seems partially operational. My list is in a smaller text and the bullet points are outside the subscription area (refer back to the different backgrounds).

subscriptions.png
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3590
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Kailey »

Fixed both issues by changing the package_list.html file to this:

Code: Select all

{% include 'overall_header.html' %}

<h2>{{ lang('GROUPSUB_PACKAGE_LIST') }}</h2>

{% for p in package %}

<div class="panel bg{% if loop.index is odd %}1{% else %}2{% endif %}">

<div class="inner">

	<h3>{{ p.NAME }}</h3>

	<div class="column1">

	<div class="postbody">
	
	<div class="content">

			{% if p.DESC %}{{ p.DESC }}{% else %}<i>{{ lang('GROUPSUB_NO_DESC') }}</i>{% endif %}

	</div>

	</div>

	</div>

	<div class="column2">

		<div class="panel bg{% if loop.index is odd %}1{% else %}2{% endif %}">

		<div class="inner">

			<h4>{{ lang('GROUPSUB_CHOOSE_TERM', p.NAME) }}</h4>

			<form action="{{ U_ACTION }}" method="post">
				<fieldset>
				{% if p.term|length == 1 %}
				{% for t in p.term %}
					<input type="hidden" name="term_id" value="{{ t.ID }}">
					<p>{{ t.PRICE }} / {{ t.LENGTH }}</p>
				{% endfor %}
				{% elseif p.term|length > 6 %}
					<p>
						<select name="term_id">
						{% for t in p.term %}
							<option value="{{ t.ID }}">{{ t.PRICE }} / {{ t.LENGTH }}</option>
						{% endfor %}
						</select>
					</p>
				{% else %}
					<p>
					{% for t in p.term %}
						<label><input type="radio" name="term_id" value="{{ t.ID }}">{{ t.PRICE }} / {{ t.LENGTH }}</label><br>
					{% endfor %}
					</p>
				{% endif %}
				{% if p.S_ACTIVE %}
					<p{% if p.S_WARNING %} style="color: #f00"{% endif %}>{{ lang('GROUPSUB_SUBSCRIBED_UNTIL', p.EXPIRES) }}</p>
					<input class="button1" type="submit" name="submit" value="{{ lang('GROUPSUB_RENEW') }}">
				{% else %}
					<input class="button1" type="submit" name="submit" value="{{ lang('GROUPSUB_SUBSCRIBE') }}">
				{% endif %}
				</fieldset>
			</form>

	</div>

	</div>

	</div>

</div>

</div>

{% else %}

<div class="panel bg1">

<div class="inner">

	<p>{{ lang('GROUPSUB_NO_PACKAGES') }}</p>

</div>

</div>

{% endfor %}

{% include 'overall_footer.html' %}
subscriptions_new.png
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
User avatar
StevoTVR
Registered User
Posts: 318
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR »

eunaumtenhoid wrote: Sun Aug 26, 2018 5:38 am When added to the group will it be the default group?
can I add a selectbox to this default group option or not?
Not currently but that is something I want to add.
kinerity wrote: Sun Aug 26, 2018 4:27 pm Fixed both issues by changing the package_list.html file to this:

Code: Select all

{% include 'overall_header.html' %}

<h2>{{ lang('GROUPSUB_PACKAGE_LIST') }}</h2>

{% for p in package %}

<div class="panel bg{% if loop.index is odd %}1{% else %}2{% endif %}">

<div class="inner">

	<h3>{{ p.NAME }}</h3>

	<div class="column1">

	<div class="postbody">
	
	<div class="content">

			{% if p.DESC %}{{ p.DESC }}{% else %}<i>{{ lang('GROUPSUB_NO_DESC') }}</i>{% endif %}

	</div>

	</div>

	</div>

	<div class="column2">

		<div class="panel bg{% if loop.index is odd %}1{% else %}2{% endif %}">

		<div class="inner">

			<h4>{{ lang('GROUPSUB_CHOOSE_TERM', p.NAME) }}</h4>

			<form action="{{ U_ACTION }}" method="post">
				<fieldset>
				{% if p.term|length == 1 %}
				{% for t in p.term %}
					<input type="hidden" name="term_id" value="{{ t.ID }}">
					<p>{{ t.PRICE }} / {{ t.LENGTH }}</p>
				{% endfor %}
				{% elseif p.term|length > 6 %}
					<p>
						<select name="term_id">
						{% for t in p.term %}
							<option value="{{ t.ID }}">{{ t.PRICE }} / {{ t.LENGTH }}</option>
						{% endfor %}
						</select>
					</p>
				{% else %}
					<p>
					{% for t in p.term %}
						<label><input type="radio" name="term_id" value="{{ t.ID }}">{{ t.PRICE }} / {{ t.LENGTH }}</label><br>
					{% endfor %}
					</p>
				{% endif %}
				{% if p.S_ACTIVE %}
					<p{% if p.S_WARNING %} style="color: #f00"{% endif %}>{{ lang('GROUPSUB_SUBSCRIBED_UNTIL', p.EXPIRES) }}</p>
					<input class="button1" type="submit" name="submit" value="{{ lang('GROUPSUB_RENEW') }}">
				{% else %}
					<input class="button1" type="submit" name="submit" value="{{ lang('GROUPSUB_SUBSCRIBE') }}">
				{% endif %}
				</fieldset>
			</form>

	</div>

	</div>

	</div>

</div>

</div>

{% else %}

<div class="panel bg1">

<div class="inner">

	<p>{{ lang('GROUPSUB_NO_PACKAGES') }}</p>

</div>

</div>

{% endfor %}

{% include 'overall_footer.html' %}
subscriptions_new.png
That does look better. Thanks :)
User avatar
kamaleon
Registered User
Posts: 555
Joined: Tue Sep 09, 2014 9:47 am
Location: Barcelona

Re: [BETA] Group Subscription (PayPal)

Post by kamaleon »

What is the difference with that other extension?

https://www.phpbb.com/customise/db/exte ... extension/
This is a test signature. I hope you love it :D
User avatar
StevoTVR
Registered User
Posts: 318
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR »

kamaleon wrote: Tue Aug 28, 2018 9:54 am What is the difference with that other extension?

https://www.phpbb.com/customise/db/exte ... extension/
This one lets you create subscriptions that automatically add and remove users from groups.
User avatar
Toxyy
Registered User
Posts: 911
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Toxyy »

Oh thank you for this. One of the things missing from phpbb. Is it possible to make a length unlimited?

Besides that, fantastic job. Very glad there's a good way to do this now.
I am a web developer/administrator, specializing in forums. If you have work you need done or are too lazy to do, pm me!

Some of my extensions:
[3.3][BETA] Post Form Templates || [3.3][BETA] Anonymous Posts || [3.2][3.3][BETA] ACP Merge Child Forums || [3.2][BETA] Sticky Ad || [3.2][DEV] User Delete Topics || [3.3][DEV] Moderate While Searching || [3.3][RC] Short Number Twig Extension
User avatar
StevoTVR
Registered User
Posts: 318
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR »

Toxyy wrote: Tue Aug 28, 2018 11:37 pm Is it possible to make a length unlimited?
Yes. If you enter 0 for length, it will be unlimited.

Edit: Actually, it doesn't seem to let you do that. I'll get that fixed in the next update.
User avatar
StevoTVR
Registered User
Posts: 318
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR »

Version 0.2.0

Download

Changes:
  • Fixed styling issues with the package list
  • Fixed unlimited subscription terms
  • Added package option to set the default group for subscribers
Locked

Return to “Extensions in Development”