[ABD] Members Only

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
User avatar
Tecktron
Registered User
Posts: 5
Joined: Wed Jul 01, 2015 11:55 pm
Name: Tecktron

[ABD] Members Only

Post by Tecktron » Thu Jul 02, 2015 2:55 am

Members Only

Extension to make your phpBB for members only.

This phpbb 3.1.x extension will make it so that any non-logged in user will be redirected to the login page. This is done by means of core events, so there is no need to update templates or anything else.

Keep in mind that this currently (although this is planned on being optional in the next revision) also blocks user registration. For that I suggest the Add User ACP Extension

Please see the github page: https://github.com/Tecktron/membersonly

I created this because I want a private board, that is, only those members that I've created. I know I could have done this though templates, but I find this to be a much more elegant solution since, if I want to open it up to the public at anytime, it's just a flip of a switch as opposed to having to alter the templates.

PRs, thoughts and suggestions welcome. This is my first attempt so please be easy on me if I didn't do something quite to standard.

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2851
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Members Only

Post by HiFiKabin » Thu Jul 02, 2015 9:29 am

What is the difference between this and setting permissions so that guests have no access and disabling registration?

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

Re: [RC] Members Only

Post by kinerity » Thu Jul 02, 2015 11:14 am

Looking at the code, looks like it automatically re-directs you to the login page. So for example, if i browse to http://www.phpbb.com/community, instead of seeing the index page, I'm sent to the login page.
Kailey Truscott - Community Team

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 2851
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: [RC] Members Only

Post by HiFiKabin » Thu Jul 02, 2015 11:36 am

Ahhhh, yes that makes sense now.

User avatar
Tecktron
Registered User
Posts: 5
Joined: Wed Jul 01, 2015 11:55 pm
Name: Tecktron

Re: [RC] Members Only

Post by Tecktron » Thu Jul 02, 2015 12:54 pm

Yeah I found the homepage to be too revealing, plus I like the page the way it is and didn't want to mess with the template, since it's nice once you login.

Plus if you wanted to simplify the login page (remove the nav, etc), it's a much simpler template to deal with and if you ever open up to the public, it's not a big deal to have to revert it.

User avatar
david63
Jr. Extension Validator
Posts: 14341
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [RC] Members Only

Post by david63 » Thu Jul 02, 2015 2:28 pm

Tecktron wrote:I found the homepage to be too revealing
Not if you set permissions so that Guests cannot view any fora.

=============================

Can I suggest that you check the coding guidelines in respect of opening {
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Tecktron
Registered User
Posts: 5
Joined: Wed Jul 01, 2015 11:55 pm
Name: Tecktron

Re: [RC] Members Only

Post by Tecktron » Thu Jul 02, 2015 7:12 pm

Yeah, but I find the login page is much more elegant. :D

Thanks for the tips on the braces CS. I'll get that fixed right up.

User avatar
wkuzma
Registered User
Posts: 389
Joined: Sun Sep 02, 2007 10:18 pm
Contact:

Re: [RC] Members Only

Post by wkuzma » Fri Jul 03, 2015 2:17 am

I just installed it on my test page and it works great HOWEVER
Keep in mind that this currently (although this is planned on being optional in the next revision) also blocks user registration. For that I suggest the Add User ACP Extension
It does not disable the registration function as you said it would. I like that it doesn't because that is alway possible in the acp.

see http://kickallbutts.org/new3

Miri4ever
Registered User
Posts: 409
Joined: Sat Mar 07, 2015 11:18 am

Re: [RC] Members Only

Post by Miri4ever » Sun Jul 05, 2015 1:13 pm

Portal Pages Exentsion not working anymore with this, so I had to disable again.
Homepage: Terra Oceanica

User avatar
Tecktron
Registered User
Posts: 5
Joined: Wed Jul 01, 2015 11:55 pm
Name: Tecktron

Re: [RC] Members Only

Post by Tecktron » Sun Jul 05, 2015 6:58 pm

Thanks for the find @wkuzma

Turns out that I had this disabled in the backend and therefore did not show up (Doh!)
Since I only check for ucp.php in the current file list and the registration page is run by this page, it does indeed work. I've updated the readme to reflect this.

User avatar
Tecktron
Registered User
Posts: 5
Joined: Wed Jul 01, 2015 11:55 pm
Name: Tecktron

Re: [RC] Members Only

Post by Tecktron » Mon Jul 06, 2015 12:32 pm

Miri4ever wrote:Portal Pages Exentsion not working anymore with this, so I had to disable again.
Could you elaborate on this some more please?

By 'Portal Pages Exentsion' do you mean the 'Pages' extension from phpbb?
If not, please provide a link as I could not find it in the Db.

What do you mean by 'not working'? Do you mean it cans your entire board, or that the pages are no longer viewable? Is this only for guest users, meaning if you login you can see the pages?

If it's the latter, then I'd consider this a feature request since, by design, guests should only be able to view the login page (or registration page if enabled). Everything else is for 'Members Only' and will redirect to the login page.

I have pages on my board, and they work just fine for anybody logged in.

Thanks.

bcurran3
Registered User
Posts: 119
Joined: Sat Aug 29, 2015 2:52 am

Re: [RC] Members Only

Post by bcurran3 » Mon Aug 31, 2015 1:51 am

This works great for me, thanks!

Previously I had to make a MAIN forum that only registered users could click past to get to the real content. Even that way there was some basic statistical info that guests could see. This redirects and makes basically nothing visible unless you are logged in. Love it!

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

Re: [RC] Members Only

Post by eunaumtenhoid » Tue Jan 30, 2018 3:47 am

abd??
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 24310
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [ABD] Members Only

Post by Paul » Tue Jan 30, 2018 8:11 am

This topic has been marked as [ABD] - Abandoned as the extension author has not been active recently. If the extension author wishes to continue development, please PM anyone on the Extension Customisations Team to request this topic be unlocked.

Notice!
We do not recommend that a user of the phpBB software install this extension, or any other extension that is marked as "abandoned" or "in development", on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Extension Customisations Team
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

Locked

Return to “Abandoned Extensions”

Who is online

Users browsing this forum: Bing [Bot] and 6 guests