Advertisement

Registered users only site

Moderators: mandville, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
tricked
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Nov 24, 2014 3:31 am

Registered users only site

Post by tricked » Mon Nov 24, 2014 3:42 am

Is there a way in Joomla 3 so the whole site can be accessed only by registered users? As per my reading on this topic, it seems it is adviced to create a menu/contents set only to registered. I'm wondering if this method has changed in Joomla 3.

What I have tried is set the site offline, so it requires everyone to login, and in global configuration > permission > Registered > offline access set to allowed.

Can someone please give me best implementation of this scenario or the above is the way to go?

Edit: Re-phrase question.

Thanks!

Advertisement
waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Registered users only site

Post by waarnemer » Mon Nov 24, 2014 11:21 am

All articles, modules and menu items you want available for the public remain "public"
All that is "registered" only you assign "registered".

Of course you will need a public accessible login :) (module or page)

It works the same in 3 as it did in 2.5..

User avatar
rcarey
Joomla! Explorer
Joomla! Explorer
Posts: 471
Joined: Sat Apr 25, 2009 9:20 pm
Location: Minnesota (USA)
Contact:

Re: Registered users only site

Post by rcarey » Mon Nov 24, 2014 11:52 pm

Here is how I would handle it. I would write a simple Systems plugin. The plugin runs for the access level Guest (i.e., the user is not logged in). The plugin simply redirects to the login page (unless it sees that the page being requested is the login page). That should be all it needs.

I understand that not everyone knows how to write a plugin, but this is a simple plugin and using it is much easier than setting all of the site's items from Public to Registered.

Another solution is to code this logic into the template. In the template's index.php file, check to see if the user has an id (or if the page being asked for is the login page). If not, redirect to the login page.
Randy Carey -- as of 2023 I'm mostly retired in web development, but still engaged with a few Joomla projects through
Careytech Studios http://careytech.com custom development for tailored or value-added web solutions

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 45317
Joined: Sat Apr 05, 2008 9:58 pm

Re: Registered users only site

Post by Webdongle » Tue Nov 25, 2014 12:12 am

Global config >>> Site offline
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/migrat ... oomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 45317
Joined: Sat Apr 05, 2008 9:58 pm

Re: Registered users only site

Post by Webdongle » Tue Nov 25, 2014 12:14 am

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/migrat ... oomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

tricked
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Nov 24, 2014 3:31 am

Re: Registered users only site

Post by tricked » Tue Nov 25, 2014 3:31 am

As I've said above, what I did was set the site to offline and then just set Registered Users offline access to allowed. Somehow, it works just as what I want to achieve. So the question now would be, what will be the downside of this implementation because if none, I think this is the easiest solution. Please enlighten me if I'm missing something. Thanks.

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2954
Joined: Sun May 04, 2008 12:37 pm

Re: Registered users only site

Post by waarnemer » Tue Nov 25, 2014 8:28 am

If you don't need a public page it is enough.. if you do you need a public page you need to set ACL access levels and groups..

tricked
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Nov 24, 2014 3:31 am

Re: Registered users only site

Post by tricked » Wed Nov 26, 2014 1:09 am

@waarnemer, thanks for the reply.

User avatar
Templatemesh
Joomla! Apprentice
Joomla! Apprentice
Posts: 44
Joined: Wed Jun 25, 2014 6:40 am
Location: Chennai, India
Contact:

Re: Registered users only site

Post by Templatemesh » Wed Jun 29, 2016 5:13 am

Free & Premium Joomla Templates
https://pcmshaper.com/

Advertisement

Locked

Return to “Access Control List (ACL) in Joomla! 3.x”