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

How to make new pages viewable to guests while keeping yours ite private? | Forum

Topic location: Forum home » Support » General Questions
Jason
Jason Oct 9 '15
So I have version 1.8.0 (build 9900)
Running most plug ins that it came with and the simplicity theme.

Now under settings, user settings, and in the privacy section I made the site so that anyone can register and for guest to not be able to see the site.

Now everything seems to be working fine, registration and login but I am having a small problem with pages.

I want guests to be able to see some of the pages I create like the terms of use page works. and if possible for the contact page which is eable via a plug in to be access by guest if they want to contact the site admin.

I have 2 pages that I created and under "Visible For" settings I have both members and guest checked, yet when a guest tries to access any of these 2 sites they are not available it just re routes back to the log in page.

I know this can be done since the terms of service page which is created when the application is install can be viewed by guest. why can't the rest?

If anyone can help I will really appreciated.

By the way I did try to look for such question but I couldn't find any topics that match what I was looking for.
The Forum post is edited by Jason Oct 9 '15
ross Team
ross Oct 9 '15
Topic was moved from Bug reports and troubleshooting.
Jason
Jason Oct 9 '15
So I just tried the same thing on the demo and it seems that the terms of service page is the only page that you can view if you put your site on, only members can view the site.

So how do you make a page be public and keep your main members site private?
Jordi
Jordi Oct 10 '15
go to ow_core application.php line 365 and make something like this


            // TODO refactor - hotfix for TOS page            //if ( UTIL_String::removeFirstAndLastSlashes($value->getUri()) == 'terms-of-use' )              if ( in_array(UTIL_String::removeFirstAndLastSlashes($value->getUri()), array('terms-of-use', 'aboutus', 'privacy-policy', 'legalinfo', 'help-faq', 'contactus' , 'contact-us', 'links')) )            {

Jason
Jason Oct 10 '15

Quote from Jordi go to ow_core application.php line 365 and make something like this


            // TODO refactor - hotfix for TOS page            //if ( UTIL_String::removeFirstAndLastSlashes($value->getUri()) == 'terms-of-use' )              if ( in_array(UTIL_String::removeFirstAndLastSlashes($value->getUri()), array('terms-of-use', 'aboutus', 'privacy-policy', 'legalinfo', 'help-faq', 'contactus' , 'contact-us', 'links')) )            {



Thank you for the help, that actually fix my problem for all the static pages I created. And on my file it was actually line 184.

My contact section is still not working but is not a static page is actually a plugin from the store, ill see if I can figure it out.

Thanks again I really appreciate the help. Been digging in the code for the pas day or so trying to figure this one out.

I was trying to look for such a thing but I guess my text editor didn't catch it.

Anyway thanks again. 
Jordi
Jordi Oct 10 '15
i had the same problem!!


for the contact i created a php contact form. 

Taissa Team
Taissa Oct 14 '15
Jason, if I understand you correctly, you close your site for Guests via Settings in Admin Area, and you want Guests to be able to open and view the Contact Us page. In this case you can manage "Contact Us" page visibility via Admin Area > Pages > Manage Pages. Hover mouse over Contact Us item and click Edit. Users will see this page menu item on the Join page and be able to open it.
Also, you can find this topic useful:  http://www.oxwall.org/forum/topic/33893.
Jason
Jason Oct 14 '15

Quote from Taissa Jason, if I understand you correctly, you close your site for Guests via Settings in Admin Area, and you want Guests to be able to open and view the Contact Us page. In this case you can manage "Contact Us" page visibility via Admin Area > Pages > Manage Pages. Hover mouse over Contact Us item and click Edit. Users will see this page menu item on the Join page and be able to open it.
Also, you can find this topic useful:  http://www.oxwall.org/forum/topic/33893.

I understand what you're saying but I am using a plugin that creates a contact page to submit information.
Now having a private community is not a problem hiding 90% of the content but there is some content specially legal content for people to read before the sign up and a contact page to be viewed by everyone else.

Anyway The fix from @jordi worked pretty well I just need to figure out the contact page plugin which I am thinking to do what he did which create my own.

I think having a little more of granular permissions, specially on sections of the site would be great but that can come later as for now everything is working great.
Jordi
Jordi Oct 15 '15
Hi Jason,


you can just use a phpmailer script and put that on that page.