Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

auth redirect from home URL to login page

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Christian Wach.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 21, 2020 at 8:52 am #8557
    Anonymous
    Inactive

    As of now I’d like our working group site to be visible only for logged in users, so I’d like to redirect from the home URL to the login page, if the user is not logged in yet. From what I understand from web search, people use a template and
    if ( !is_user_logged_in() ) {
    auth_redirect();
    }

    Is that a good way to implement it in CBOX, or are there any better ways? I am not familiar with web programming, and I don’t know it there are problems with updates if you use user-specific templates.

    Thanks for any help!

    October 21, 2020 at 3:05 pm #8559
    Christian Wach
    Participant

    I find that the Restricted Site Access plugin works perfectly for private sites. If you want to style the default WordPress login screen, there is a guide on the WordPress codex.

    Best wishes, Christian

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register