Private Network Download 7.1

German Michael Zülsdorff 9 years ago

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

  • fixed not working redirects to homepage (showing 404 page instead) on some pages
  • addes Hungarian language file

V 6.3

  • Added social login more end points.

V 6.2

  • fixed crash if the requested url has more path elements than the number of elements being checked by Private Network

V 6.1

  • verified Ossn 6.x / PHP 8 compatibility
  • added social logins and privacy page to exceptions of allowed pages
  • completed set of language files

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
Comments are disabled for this project!
Indonesian Arsalan Shah Replied 2 years ago

Use latest version it works fine on privacy page.

German Dominik L Replied 2 years ago

the tab "privacy" is missing on allowed pages.

So new people cannot access privacy site while registering

gb Kevin B Replied 4 years 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 Michael Zülsdorff Replied 4 years ago

Kevin,
5.2 should do.

gb Kevin B Replied 4 years 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 5 years ago

Thank you very much for it!

us Allon Prooit Replied 6 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 Michael Zülsdorff Replied 6 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 6 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 7 years ago

I find it, thanks!

Component

Developer: Michael
License ossnv4
Type: Authentication
Requires Ossn Version : 7.1
Latest Version: 7.1
Last Updated 1 year ago
Repository Url View Repository

Versions