Protected Member Area?

Ask for help or provide support to other members.
Post Reply
wmcig
Posts: 2
Joined: Sat Mar 26, 2022 7:56 am

Protected Member Area?

Post by wmcig »

I am new here. Is there any plugin or other way to create a protected area with frontend login ?
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Protected Member Area?

Post by wiz »

Hello wmcig, there is currently no such plugin.

There's probably a simpler way, to just put an if statement in your "theme.php" to not load any content if the the admin isn't logged in for specific pages. I could prepare a quick example if you're interested?
wmcig
Posts: 2
Joined: Sat Mar 26, 2022 7:56 am

Re: Protected Member Area?

Post by wmcig »

Hi, I need a login for different users, which are see different contents.

Please give me your example.
User avatar
wiz
Posts: 749
Joined: Sat Oct 30, 2010 12:23 am

Re: Protected Member Area?

Post by wiz »

Now I understand your idea better, however this isn't possible without major modifications, since WonderCMS supports only 1 user (admin) without additional configurable permissions.

However, in your theme.php, you could define something like

Code: Select all

<?php if ( $Wcms->currentPage == 'about' && $Wcms->loggedIn) : ?>
    your content
<?php endif ?>
It would only display the content if the admin is logged in on the "about" page.
Post Reply