How do i restrict a profile to friends only ?

Started on the old forum in March 2010 · view the original in the archive · old links redirect here

10 replies · 614 views · started 16 years ago · 1 min read

6 participants
andyjay33 Developer · 75 posts #1

i wanting to have a switch for my members where they can make there profile private but only allow friends to view it im coding my own script and would be grateful if someone can guide me in the right direction 🙂

andyjay33 Developer · 75 posts #3

ok thanks but i find laviar a bit confusing my script is alot different coding to that so what your saying is i need user groups ive already got user levels so do i check who is on the users budlist then allow to them else not allow anyone else ?

WhiteWarrior Principal · 1,419 posts #5

Malka1 wrote: There need to make an user group, with permissions, You should look at some scripts as preview, in example lavalair

Incorrect, you can allow this by using a buddy list feature. no need to make messy groups. Members could press private and only allow administer's and buds to view profile. its simple to code, just think how it would work, use your imagination, you could even "funk" it up, like only block certain people etc..

Good luck 🙂

WhiteWarrior Principal · 1,419 posts #6

Malka1 wrote: There need to make an user group, with permissions, You should look at some scripts as preview, in example lavalair

Incorrect, you can allow this by using a buddy list feature. no need to make messy groups. Members could press private and only allow administer's and buds to view profile. its simple to code, just think how it would work, use your imagination, you could even "funk" it up, like only block certain people etc..

Good luck 🙂

crazybrumi Super moderator Principal · 1,064 posts #7

WhiteWarrior wrote: Incorrect, you can allow this by using a buddy list feature. no need to make messy groups. Members could press private and only allow administer's and buds to view profile. its simple to code, just think how it would work, use your imagination, you could even "funk" it up, like only block certain people etc..

Good luck :)

yup he is right cos my private profile works exactly like this, i bet ur gna ask for it nw ent u well all im gna say is no im tired of giving stuff away to be assumed it was writtern by others and then others selling it even if it was given to them in the original state.!

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

andyjay33 Developer · 75 posts #8

crazybrumi wrote: yup he is right cos my private profile works exactly like this, i bet ur gna ask for it nw ent u well all im gna say is no im tired of giving stuff away to be assumed it was writtern by others and then others selling it even if it was given to them in the original state.!

no brumi i wasnt gonna ask you for yours as im fed up of using ppls scripts its not good all i was asking for was some genuine advice upto now ive built my site all myself with out any help i just need someone to point out the structure cos i think my buddylist is wrong anyway lol so prob gonna need rewriting. dont blame you for not sharing stuff to be honest my script wen its done is never getting made public !!!

andyjay33 Developer · 75 posts #9

kiLLeR-eyEd_14 wrote: It's already posted here..Use search..

yes i know its already posted here laviar style cant work with that code plus its not my own is it ? i was only asking for advice

andyjay33 Developer · 75 posts #10

so much for advice eh maybe il go else where for answers like google !!! best reply was white warriors thanks by the way il have a bash at a totally new buddy system

ksg91 Developer · 162 posts #11

simple logic, just add a bool column in your table of users's detail. if someone has private profile , then check if user is admin or his/her friend. if he is then show profile, else just give msg for private profile.

Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close