Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Instant Messaging Info from Guests and Bots Details »»
Hide Instant Messaging Info from Guests and Bots
Version: 1.00, by obmob obmob is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.7.2 Rating:
Released: 07-10-2008 Last Update: Never Installs: 10
Template Edits
 
No support by the author.

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:
Code:
	<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:

Code:
<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

Thanks!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-14-2008, 02:07 AM
Emmmmrz's Avatar
Emmmmrz Emmmmrz is offline
 
Join Date: Jul 2008
Location: NorthPole
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is one of those things that should be standard =/
Thanks for the mod
Reply With Quote
  #3  
Old 07-14-2008, 04:42 AM
AdrianH AdrianH is offline
 
Join Date: Sep 2007
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.
Reply With Quote
  #4  
Old 07-15-2008, 04:55 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Thanks CareyCrew!
Reply With Quote
  #5  
Old 07-19-2008, 01:29 AM
yahoooh yahoooh is offline
 
Join Date: Oct 2002
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks and also :
in the template: MEMBERINFO
look for
Code:
<!-- contact popup menu -->
after it add :
Code:
<if condition="$show['member']">
and look for :
Code:
$vbphrase[send_skype_message_to_x]</phrase></a></li>
					</if>
just add
Code:
</if>
and look for :
Code:
<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
Code:
<if condition="$show['member']">
and after it add :
Code:
</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
Reply With Quote
  #6  
Old 07-19-2008, 02:58 AM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So true, thanks yahoooh!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04180 seconds
  • Memory Usage 2,253KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete