Private Network Download 5.4

This component/theme works with latest OSSN version.
German ~Z~ Man 5 years ago

Disable your social network from public. This component will force user to login before visiting the public pages.

Please note that this component is owned by the softlab24 ltd If you need any information you can contact us at https://www.softlab24.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 5.4 bug fixed causing infinite redirects if the server's site root is pointing to a subdirectory like https://site.com/subdir/

  • V 5.3 added hook to extend the number of allowed pages

  • V 5.2 when logging in, the member will be redirected to a formerly visited restricted page in case the login happens within 2 minutes. Logging in later redirects to /home as usual.

  • V 5.1 changed checking/loading sequence of page in question (Ossn >= 5.3 required !)

Comments
gb Kevin B Replied 3 weeks ago

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!

German ~Z~ Man Replied 3 weeks ago

Kevin,
5.2 should do.

gb Kevin B Replied 3 weeks ago

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.

ua Estee Andr Replied 1 year ago

Thank you very much for it!

us Allon Prooit Replied 2 years ago

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

German ~Z~ Man Replied 2 years ago

@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.

us Aaron Michael Replied 2 years ago

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!

Romanian János-Széll István Replied 3 years ago

I find it, thanks!

Romanian János-Széll István Replied 3 years ago

Hi, is there a way to make Site Pages: About, Privacy, Terms and Conditions, to be visible to the public? Thanks.

us Toni Hoskin Replied 3 years ago

My question about making pages public is answered here: https://www.opensource-socialnetwork.org/discussion/view/1565/how-to-create-a-private-social-network

There is code to add to exclude pages from the privacy handling.

Component

Developer: ~Z~
License ossnv4
Type: Authentication
Minimum Requirement: 5.3
Latest Version: 5.4
Last Updated 6 days ago
Repository Url View Repository

Versions