We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Making blog open on registered view | Forum

Kris Corp
Kris Corp Sep 28 '14
How do I open the blog up for anyone to view/guest vew when the site is set to registered only. I paid someone a while back and he did this for me so i know it can be done. It was one line of code in the application.php file. Im hoping someone on the team can tell me how to do it. Should be that hard because the guy did it in 15 min. I just dont have his info anymore.
ross Team
ross Sep 29 '14
Topic was moved from General Questions.
Daisy Team
Daisy Nov 4 '14
Kris, you shouldn't make any changes in the core files. All you need is to add the following string at the end of the /ow_plugins/blogs/init.php file:

OW::getRequestHandler()->addCatchAllRequestsExclude('base.members_only', "BLOGS_CTRL_Blog");

This method will open the blogs list for everyone in case your site is closed for guests. You can open the view blog page, user's blogs page, etc. using this string, by simply changing the controller of the page you want to be visible.