PDA

View Full Version : Profile Enhancements - Hide Instant Messaging Info from Guests and Bots


obmob
11 Jul 2008, 17:17
Well... I recall a fancy way to hide contact info from visitors and bots, Iused to have it installed on my 3.6 styles, but now on vB 3.7 i siimply reverted everything to start overwith the new member templates.

I tried finding a "Can View Member Profile" config in the usergoups, but i can't seem tofind any, that's why I made a simple modification to a template, just to hide the instant messaging from regular visitors, and probably some email catching bots.

If you want to hide this, enter your Style Manager and find this template in the Member Info Templates group

Open memberinfo_block_contactinfo

Find:
<if condition="$prepared['hasimdetails']">
<fieldset>
<legend>$vbphrase[instant_messaging]</legend>
<div class="fieldset_padding floatcontainer">
<div><phrase 1="$prepared[username]">$vbphrase[send_instant_message_to_x_using]</phrase></div>
<ul class="list_no_decoration" id="instant_messaging_list">
$block_data[imbits]
</ul>
</div>
</fieldset>
</if>

Replace it with:

<if condition="$show['member']">
<if condition="$prepared['hasimdetails']">
<fieldset>
<legend>$vbphrase[instant_messaging]</legend>
<div class="fieldset_padding floatcontainer">
<div><phrase 1="$prepared[username]">$vbphrase[send_instant_message_to_x_using]</phrase></div>
<ul class="list_no_decoration" id="instant_messaging_list">
$block_data[imbits]
</ul>
</div>
</fieldset>
</if>
</if>

That's it, that might do the trick in a simple way.

Maybe this is useful for someone... or maybe you can tell me where to set those permissions :p

Thanks!

Emmmmrz
14 Jul 2008, 03:07
This is one of those things that should be standard =/
Thanks for the mod

AdrianH
14 Jul 2008, 05:42
Maybe this is useful for someone... or maybe you can tell me where to set those permissions

Usergroups >General Permissions> Can view member info. Yes/No

I have never allowed any guest/banned member/bot/spider to view member list/profiles/messaging and all that is needed is one standard setting,I have never seen any forum software that does not have this basic function available.

obmob
15 Jul 2008, 17:55
Oh... then it is standard and it hides everything from guests.

Now... my little mod will hide the contact info, but still let you see the user's profile page. :p

Thanks CareyCrew! :D

yahoooh
19 Jul 2008, 02:29
thanks and also :
in the template: MEMBERINFO
look for<!-- contact popup menu -->
after it add :
<if condition="$show['member']">
and look for :
$vbphrase[send_skype_message_to_x]</phrase></a></li>
</if>
just add </if>

and look for :
<if condition="$show['contactlinks']">
<li class="thead" id="minicontact"><a href="#contactinfo">$vbphrase[send_message]</a> <script type="text/javascript">vBmenu.register("minicontact");</script></li>
</if>
before it add
<if condition="$show['member']">
and after it add :
</if>


this addition to hide popup contact for visitors also

any one can help us with more option if i add profilefield to hide or not hide instant messaging from unregistered users

obmob
19 Jul 2008, 03:58
So true, thanks yahoooh! :D