Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post Restriction In Viewing User Profile 
 
hi everyone
is there a way not to let users to view staff profile or let users to view only theirself profiles? I can't figure how to do it and I dind't find anything in ACP and in this forum  
thank you in advance  
 




____________
rescued by MG :10k_0025:
 
ieioSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Restriction In Viewing User Profile 
 
In cms>>permissions>>profile>>"what you want in it´s chekbox"
 



 
novice programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Restriction In Viewing User Profile 
 
excuse me novice programmer, maybe I couldn't explain my intent
I want that users can view only their own profile or can view all profiles but the staff ones: if I set the permissions via cms I can't block users viewing staff profiles, or not?  
if it's impossible, nevermind  
 




____________
rescued by MG :10k_0025:
 
ieioSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Restriction In Viewing User Profile 
 
ieio wrote: [View Post]
excuse me novice programmer, maybe I couldn't explain my intent
I want that users can view only their own profile or can view all profiles but the staff ones: if I set the permissions via cms I can't block users viewing staff profiles, or not?  
if it's impossible, nevermind  


You will have to make sure that:

$user_id=$userdata['user_id']

or

$userdata['auth']="MOD"

i think you´ll need some help from MG.
 



 
novice programmerSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Restriction In Viewing User Profile 
 
ieio wrote: [View Post]
excuse me novice programmer, maybe I couldn't explain my intent
I want that users can view only their own profile or can view all profiles but the staff ones: if I set the permissions via cms I can't block users viewing staff profiles, or not?  
if it's impossible, nevermind  

You can do that only by modifying the profile page...

It is not easy, because you have to add an extra SQL to check if the user is mod or admin and only then you know if profile may be shown or not.

In next version it should be easiest doing that, because I have created some extra functions for doing this.

When next RC will be out, bump this topic and I'll show you how to do that.
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  Reply to topic  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events