Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
pdoobepd
Worker
Worker



Joined: May 07, 2005
Posts: 129

PostPosted: Tue Jun 20, 2006 4:48 pm Reply with quote

Is there a way to make certain content pages or categories available to all while others are available to registered Users Only?

If so Please help I am looking for away to do this.

PHPNuke Version 7.6 3.1 patched.

Thanks!
Ginger

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Tue Jun 20, 2006 5:06 pm Reply with quote

u mean modules?

in modules admin u can set who views what....also in blocks

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
pdoobepd







PostPosted: Tue Jun 20, 2006 5:11 pm Reply with quote

I want certain portions of my content to be available to all and other portions to be available to a select few such as registered users only.

If I do the entire module it has to be one way or the other for all content...that is not what I want.

Basically I want two content portions or category portions one would be available to all and the other would be available to registered users only.

Is there a way to do this???
 
gregexp







PostPosted: Tue Jun 20, 2006 5:39 pm Reply with quote

coding it into the module ....


<?php
Code u want all to see

global $user;
if(is_user($user)) {

php code within module that u want ur users to see...and only ur users.
}

only code in things that u want the user to see
 
pdoobepd







PostPosted: Tue Jun 20, 2006 6:31 pm Reply with quote

Ok I am not familiar with all php coding but know my way around enough to get the idea of what you are saying and what the code would do, BUT...can you give me all the code and "___" where the links would go. And a for instance if there is More than One of each ?

I have done a work around it for now but anyone who knows anything about phpnuke can find what they want...just looking for a more secure way of doing it.

Thanks Bunches!!!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©