How to make something viewable only by other members no member it self ?
Posted December 19th 2011, 6:50am
Let me explain:

We have one member which is named "A" and we have all the rest members.How can I make something viewable only by the rest of the members and not for "A" ? To give you an example, If we have a member named "B".I want the content to be displayed to all of the members except "B" (including member "A"),that for "C","D"...

Thank you in advance !
φ
Posts: 35
Joined: October 21st 2011, 11:00pm
Likes Given: 4
Likes Received: 2
How to make something viewable only by other members no member it self ?
Posted December 20th 2011, 11:41pm
-Bump-
φ
Posts: 35
Joined: October 21st 2011, 11:00pm
Likes Given: 4
Likes Received: 2
Re: How to make something viewable only by other members no member it self ?
Posted December 21st 2011, 12:03am
Example 9 would let you do this.

Let's assume your "bad" member has a user ID of 44. If Example 9 is installed, the following code, if added to a script, would display a message to every member except user ID 44:

if (uid!='44' && uid!='-1') {

    code to display a message goes here
}

Pretty simple!
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
How to make something viewable only by other members no member it self ?
Posted December 21st 2011, 5:35am
Ok here's the thing:

I want a link to be displayed for the all the members in topics but not for the member itself.Did you understand me ?

I mean If I am logged with the account of the member "A" to see that link that will have to do with other members, but it should not be displayed to my profile.

If a member "B" sees the topic he should not have the link in his profile but,he should see that link on other members' profile.

Did you understand me ?

Thank you for helping me !
φ
Posts: 35
Joined: October 21st 2011, 11:00pm
Likes Given: 4
Likes Received: 2
How to make something viewable only by other members no member it self ?
Posted December 21st 2011, 11:27am
Your request in post #4 is completely different than your original request!

But it doesn't matter...my suggestion applies to both requests. In your second request, you would go through each post, get the user ID of the poster, and use my suggestion.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
1
#6
How to make something viewable only by other members no member it self ?
Posted December 21st 2011, 11:43am
How am I going to do such a thing ?

Thank you :)
φ
Posts: 35
Joined: October 21st 2011, 11:00pm
Likes Given: 4
Likes Received: 2
How to make something viewable only by other members no member it self ?
Posted January 16th 2012, 11:36pm
Let me explain better... :o

In topic messages I have a friend request link that exists in the member's profile too... If you press it, you get an error "You can not add yourself in the friends list".How can I make that link to be displayed in all users' profile area in posts but not to be shown for the member who is logged in for it's own profile ?

Was my explanation better now ? :)
φ
Posts: 35
Joined: October 21st 2011, 11:00pm
Likes Given: 4
Likes Received: 2

Who is online

Users browsing this forum: No registered users and 1 guest