The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide a members profile page
Is there a way to hide a member's profile page?
I cant seem to find a way to do this. I want members to see the page and guest to see nothing. as if the users isnt even a member. I know how to make them un searchable but not hidden. For example when you delete a user their page is gone. You get an error if you try to goto their page. I want that same effect but controlable by usergroup. Thanks. |
#2
|
||||
|
||||
This is already a usergroup permission ;
General Permissions > Can View Member Info = Yes or No |
#3
|
||||
|
||||
You could add something like
PHP Code:
Quote:
|
#4
|
|||
|
|||
Quote:
I want it to be like this. say I bann you. NOT delte you just ban you. No one on the site can see your page. except the admin. Understand now? I prob. wasnt clear before. |
#5
|
|||
|
|||
bump... can this work.. please look at the code....
HTML Code:
if ($bbuserinfo[usergroupid] != X) { do the normal stuff. else $errormessage = "Custom Error Message"; eval('print_output("' . fetch_template('STANDARD_ERROR') . '");'); } I wouldnt want the sandard error. I would like that no results page. (like when you do a search and it has nothing to return) |
#6
|
||||
|
||||
Pretty close. You were missing the closing }
PHP Code:
You can customize the error by changing "Custom Error Message". |
#7
|
|||
|
|||
What I am doing is making banned members profile page disapear to all other members on the site.
At the moment when a member is banned you can still view thier profile. |
#8
|
||||
|
||||
Oh okay, I misunderstood then.
I think it would be $userinfo instead of $bbuserinfo. So this alone should work: PHP Code:
|
#9
|
|||
|
|||
sorry where do I place this code?
only admin can view the profiles btw. looking at this code its doesnt seem like it would work. I want the OPPOSITE of this. Ok. IF you get banned... your banned... good by. This isnt about you... its about the other members. now joe blow wants to goto your page. he cant. He gets the error your page does not exist. actually everyone gets this error except admins. Its like saying soft delete users. This does not exist on vb. This is what I am trying to do. |
#10
|
||||
|
||||
What it does is if user-your-trying-to-views['usergroupid'] is equal to X (banned group) then show error message.
You could change it to if ($userinfo[usergroupid] == X AND $bbuserinfo[usergroupid] != 6) to allow admins. I'll check quickly where to insert this. Stick it right before PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|