View Full Version : Hiding member profile to guests.
By hiding i meant, guests should not be able to click on the profile hyperlink of members.
Try creating a plugin using hook member_start and this code:
if ($vbulletin->userinfo['userid'] == 0)
{
print_no_permission();
}
Thank you. I have to replace 0 with my guest user group id right?
Still it is not working. I can click on the members links.
--------------- Added 1327585079 at 1327585079 ---------------
I even replaced userid with my guest user group id, still not working.
Thanks.
The userid is 0 if the user is not logged in. You could also check for the groupid but it should give the same result.
It works for me, so maybe I don't understand what you want. If you want the link to be inactive, then edit the postbit or postbit_legacy template and put
<vb:if condition="$show[member]"> ...</vb:if>
around the link. (The reason I chose the other method is that, while taking out the link will stop them from clicking on it, it won't keep guests from going directly to the profile url).
The userid is 0 if the user is not logged in. You could also check for the groupid but it should give the same result.
It works for me, so maybe I don't understand what you want. If you want the link to be inactive, then edit the postbit or postbit_legacy template and put
<vb:if condition="$show[member]"> ...</vb:if>
around the link. (The reason I chose the other method is that, while taking out the link will stop them from clicking on it, it won't keep guests from going directly to the profile url).
I want the link to be inactive. I am already using the condition method.But still people can click on others profile, while they search or during the showthread or forum display.
So, i am looking to disable it globally. So when they click on a user name, they are not taken to the members profile.
I am on vb 4.1.10
Thanks for your time.
Did you get the plugin to work then? If it didn't do anything for you, there must be something wrong somewhere.
I don't know of any way to disable all links without finding them all and editing the templates.
Did you get the plugin to work then? If it didn't do anything for you, there must be something wrong somewhere.
I don't know of any way to disable all links without finding them all and editing the templates.
The plug in didn't do anything for me.
Thanks for your time.
Max Taxable
01-26-2012, 01:16 PM
I want the link to be inactive. I am already using the condition method.But still people can click on others profile, while they search or during the showthread or forum display.
So, i am looking to disable it globally. So when they click on a user name, they are not taken to the members profile.
I am on vb 4.1.10
Thanks for your time.This in the bold makes it ambiguous to me - are you saying you do not want logged in members able to check profiles either? Or just the unregistered/not logged in class?Thank you. I have to replace 0 with my guest user group id right?
Still it is not working. I can click on the members links.
--------------- Added 1327585079 at 1327585079 ---------------
I even replaced userid with my guest user group id, still not working.
Thanks.You're checking this while logged out, right?
This in the bold makes it ambiguous to me - are you saying you do not want logged in members able to check profiles either? Or just the unregistered/not logged in class?You're checking this while logged out, right?
Only the admins have the ability to click on some one else profile. Yes, i checked this while logged in as well as logged out.
Actually, it just occurred to me that you don't need a plugin. I think there's a usergroup setting for 'can view member info' that you can set for the unregistered user group in the usergroup manager.
Actually, it just occurred to me that you don't need a plugin. I think there's a usergroup setting for 'can view member info' that you can set for the unregistered user group in the usergroup manager.
Yeah, i know. But it will show up an error message. I don't want that error message to be displayed too.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.