How can I allow only members to view the articles?

I set the active item “Articles” to “Visible for member” only

 

in Builders, Navigation Menu Builder.

 

But, if I browse to mysite.com/articles I can read them

 

How can I allow only members to view the articles?

Quote · 22 Oct 2009

Im assuming you are using a Dolphin 6.1.x version. If so:

In Admin Panel, click Builders > Navigation Menu Builder

Located the blue block labeled "Articles" and click it. Remove the checkmark from Guest where is says Visible for:

That should remove it from the navigation menu UNLESS the member is logged in.

Nothing to see here
Quote · 23 Oct 2009

Oh yeah, and if for some reason a guest knows to type in www.yoursite.com/Articles (not always the case), you can block the page totally from guests by adding the following code to your articles.php page:

Find this (not very far down):

$_page['header'] = _t( "_ARTICLES_H", $site['title'] );
$_page['header_text'] = _t( "_ARTICLES_H1" );

Add this Under it:

if ( !( $logged['admin'] = member_auth( 1, false ) ) )
if ( !( $logged['member'] = member_auth( 0, true ) ) )
if ( !( $logged['aff'] = member_auth( 2, false )) )
$logged['moderator'] = member_auth( 3, false );

You can actually do that to ANY php page to keep people who are not logged in from viewing it.

Give that a shot and let me know if that works.

Nothing to see here
Quote · 23 Oct 2009

It works fine.

 

Thank's

Quote · 23 Oct 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.