HomeUnityBlogs
 
 
noman

How to Restrict Pages to Members Only?

Hi there,
I am trying to only allow my members to access the tabs for pages (such as Events, Classifieds, etc) so that it functions like the chat feature where the page prompts the user to log in or register before accessing the page. Is that possible?

I'm currently using 6.0.0005 so I would appreciate instructions for 6.0.0005 as well as 6.1.1 (which I plan to upgrade to within the next several weeks).

Thank you!!!

bad
1
good
 
 

Comments

tango3d
tango3d 174 days agocomment permalink
 
Admin/ settings/ memebr levels free mode off
 
bad
0
good
 
 
yossi
yossi 174 days agocomment permalink
 
Very simple..go to admin pannel and then to navigation menu and then click on your desire item. You'll have the option of guest/member.
 
bad
0
good
 
 
gkcgautam
gkcgautam(positive) 174 days agocomment permalink
 
Well...some code modifications are required to do what you are asking for...i would work on it and get back to you soon...please be patient...n ya...it wud be free!
 
bad
1
good
 
 
noman
noman 174 days agocomment permalink
 
Not quite what I was looking for as neither one of these methods fully restricts a non-member from accessing the links. Any other ideas? :)
 
bad
0
good
 
 
noman
noman(positive) 174 days agocomment permalink
 
I posted that before refreshing my post to see gkcgautam's post! Whoops! Thanks, gkcgautam!
 
bad
1
good
 
 
LHAdmin
LHAdmin 174 days agocomment permalink
 
Add this to each page after the check login line:

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 );

Works for all but Forums.
 
bad
0
good
 
 
noman
noman(positive) 174 days agocomment permalink
 
That did it! Thanks, LHAdmin!
 
bad
1
good
 
 
LHAdmin
LHAdmin 174 days agocomment permalink
 
You're welcome. Let me know if you figure out how to do it for Forums.
 
bad
0
good
 
 
DosDawg
DosDawg(positive) 174 days agocomment permalink
 
that fix was actually posted over on expertzzz.com i applied that fix to 6.0.0005 and it worked beautifully. i was there today digging around looking for it. i am pretty sure its was done the same way. also, i have the forums restricted or did have prior to 6.1.1 update. will have to get back in there and dig around.

later,
DosDawg
 
bad
1
good
 
 
Stuart038
Stuart038(positive) 174 days agocomment permalink
 
Does this:
Add this to each page after the check login line:

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 );

Works for all but Forums.

Work for 6.1.1. ?

Thanks
 
bad
1
good
 
 
praveenkv1988
praveenkv1988 174 days agocomment permalink
 
For 6.1.1 add this line.

$logged['member'] = member_auth( 0 );
 
bad
0
good
 
 
Vespen
Vespen 174 days agocomment permalink
 
I don't understand where i need to insert this one...
Some php files or somewhere in admin panel?
Plz, specify more clearly.
 
bad
0
good
 
View 1 replies to this comment
 


Post a Comment

Please login to post a comment.

This Post
 
 
noman Blog
All Blogs
Found a bug? Have a suggestion? We really value your feedback!
 
© 2008 BoonEx Ltd
ABN 27 127 966 581
 
PET:0.868475914001