[BETA] 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!
Ideas Centre
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: 166
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

[BETA] Group Subscription (PayPal)

Post by StevoTVR » Thu Aug 23, 2018 11:59 pm

Extension Name: Group Subscription
Author: StevoTVR

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

Requirements:
  • phpBB 3.2.0
  • 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.2.1.zip
Last edited by StevoTVR on Thu Sep 13, 2018 3:06 am, edited 3 times in total.

User avatar
</Solidjeuh>
Registered User
Posts: 1157
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by </Solidjeuh> » Fri Aug 24, 2018 12:48 am

This is interesting! Great ext!
We offer fun HTML5 games for young and old.
Register a free account & enjoy all functions!
Save your score, challenge other members or play along with our tournaments.


~~~ https://www.solidjeuh.be ~~~

User avatar
eunaumtenhoid
Registered User
Posts: 759
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Group Subscription (PayPal)

Post by eunaumtenhoid » Fri Aug 24, 2018 10:49 pm

WOW amazing dude ty
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
Hartenheer
Registered User
Posts: 673
Joined: Fri Jan 23, 2015 12:23 pm
Location: The Netherlands
Name: Willem Hartman
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Hartenheer » Sat Aug 25, 2018 8:49 am

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


Image

User avatar
jackennils
Registered User
Posts: 194
Joined: Mon Jun 01, 2009 7:48 pm

Re: [BETA] Group Subscription (PayPal)

Post by jackennils » Sat Aug 25, 2018 12:22 pm

Very interesting! Following right now.

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1979
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by kinerity » Sun Aug 26, 2018 1:29 am

Subscribed!
Kailey Truscott - Community Team

User avatar
eunaumtenhoid
Registered User
Posts: 759
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Group Subscription (PayPal)

Post by eunaumtenhoid » 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?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1979
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by kinerity » Sun Aug 26, 2018 3:21 pm

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 Truscott - Community Team

User avatar
kinerity
Community Team Member
Community Team Member
Posts: 1979
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by kinerity » 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
Kailey Truscott - Community Team

User avatar
StevoTVR
Registered User
Posts: 166
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR » Sun Aug 26, 2018 4:46 pm

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 :)

kamaleon
Registered User
Posts: 416
Joined: Tue Sep 09, 2014 9:47 am
Location: Barcelona

Re: [BETA] Group Subscription (PayPal)

Post by kamaleon » Tue Aug 28, 2018 9:54 am

What is the difference with that other extension?

https://www.phpbb.com/customise/db/exte ... extension/

User avatar
StevoTVR
Registered User
Posts: 166
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR » Tue Aug 28, 2018 3:45 pm

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: 594
Joined: Mon Oct 24, 2016 3:22 pm
Location: Namek
Contact:

Re: [BETA] Group Subscription (PayPal)

Post by Toxyy » Tue Aug 28, 2018 11:37 pm

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!

My extensions:
[3.2][BETA] Anonymous Posts || [3.2][RC] Show User Activity

User avatar
StevoTVR
Registered User
Posts: 166
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR » Tue Aug 28, 2018 11:40 pm

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: 166
Joined: Thu Jul 13, 2006 6:23 pm
Name: Steve Guidetti

Re: [BETA] Group Subscription (PayPal)

Post by StevoTVR » Wed Aug 29, 2018 4:17 am

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

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: MarkDHamill, VOLKERMORD and 25 guests

cron