Disable your social network from public viewing! This component will force visitors to register and login in order to access any inner pages of your site.
Please note that this component is owned by the https://www.openteknik.com. If you need any more information please contact https://www.openteknik.com/contact.
Please also see the link:
https://www.opensource-socialnetwork.org/discussion/view/1565/how-to-create-a-private-social-network
Release 5.3 comes with a hook now to extend the array of hardcoded allowed pages to be used by any component like
ossn_add_hook('private:network', 'allowed:pages', 'com_YOUR_COMPONENT_ID_extend_allowed_pages');
and an accompanying function like
function com_YOUR_COMPONENT_ID_extend_allowed_pages($hook, $type, $allowed_pages, $params) {
$allowed_pages[0][] = 'extrapage'; // pages to be addressed by 1 path element
$allowed_pages[1][] = 'hey/hello'; // pages to be addressed by 2 path elements
/* ...
$allowed_pages[n][] = 'a/b/c/...'; // pages to be addressed by n+1 path elements
*/
return $allowed_pages;
}
Changes
V 7.1
V 6.3
V 6.2
V 6.1
V 5.4
https://site.com/subdir/
V 5.3
V 5.2
/home
as usual.V 5.1
Use latest version it works fine on privacy page.
the tab "privacy" is missing on allowed pages.
So new people cannot access privacy site while registering
That's brilliant thank you. I have to say, you guys are super fast at adding updates and helping out the community. Thank you and keep up the good work!
Kevin,
5.2 should do.
This works brilliantly thank you. Just a slight tweak if possible?
Can it be updated to return to the referrer URL ?
I have a custom page (based on the Hello World component), which re-directs to the logon page correctly, but once logged on just returns to /home
instead of the referrer url. It's a bit jarring having to keep clicking back to the original custom page each time.
Thank you very much for it!
Having difficulty with this component. It gives me a warning message saying I need to be logged on to view the page on my login page and on the first page after login for some reason. Any thoughts? You can try the site out here Use username: Guest and password: 1234pass
@Aron
Your question has been answered already by Toni (see 3 postings below)
Now, that your page handler appears to be 'rsvp', add it to the array as explained and you're done.
Nonetheless I can only warn to use the RSVP component because it is
creating incomplete user records (no birthdate, no gender) which
results in a wrong user count on your admin dashboard.
I'm wanting to use RSVP - By Invitation Only (here), but this component keeps blocking the page that is sent in the invite. I think it generates a unique link.
For example:
mysite.com/rsvp/signup/14/50031a823e8a6xxe8c93ff223435bb925
Is there any way to tell it to ignore pages that begin with:
mysite.com/rsvp/signup
Even if the link continues with the numbers?
I'm asking the developer of RSVP how it deals out links as well. Any help would be appreciated!
I find it, thanks!