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

Reply
 
Thread Tools
Hide User Contact Info From Guests Details »»
Hide User Contact Info From Guests
Version: 1.00, by peterska2 peterska2 is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.0.12 Rating:
Released: 01-10-2006 Last Update: Never Installs: 8
 
No support by the author.

What it does: Hides the user contact info part of the profile from guests.

Difficulty: Easy
Templates to Edit: 1 MEMBERINFO (4 edits to same template)
Phrases to add: 2
Profile Fields to add: 1 (for userselectable version only)

How to install: Download the attached text file and follow the instructions.

What does it look like?: See attached screenshots. One is for a guest and the other for a member.

I want to see a live demo: Go to www.peterska2.co.uk and take a look at the profiles there. It's running 3.5.x but it works exactly the same.

There are two text files attached.
  • always_hide_from_guests.txt is a fixed thing were it hides it and that is the end of the story.
  • userselectable_hide_from_guests.txt gives an option in the userCP to show or hide contact info from guests.
If you use this please remember to click the install button. It's the only way I know if you like what I do.

[high]If there are any bugs please let me know. I've coded this directly from the style.xml file for 3.0.x without a site running it. I'm confident it will work, but if there are any bugs I'll get them fixed. Thanks.[/high]


Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here. Support provided in this thread will be on an as and when basis.

Show Your Support

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

Comments
  #2  
Old 01-12-2006, 09:35 PM
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Location: Northridge CA
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great stuff, excellent. Installed.

I did one thing differently. I want to drive registrations, and since this allows the members to see it, saying it's "private" is not really accurate.

I made my Phrases like this:

Code:
Please <a href="http://your-forum.url/forum/register.php">REGISTER</a>  to see this info.
Reply With Quote
  #3  
Old 01-13-2006, 07:51 AM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

what about hiding user info from members too and just allow morderator
Reply With Quote
  #4  
Old 01-13-2006, 10:42 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll need to see about redoing it. Do you need it to be user selectable, or just hidden from everyone except staff?
Reply With Quote
  #5  
Old 01-14-2006, 10:28 AM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

thank you peterska2
Quote:
just hidden from everyone except staff?
that is what I need

great hack
Reply With Quote
  #6  
Old 01-15-2006, 09:55 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, I'll get it coded up as soon as I have a free few mins
Reply With Quote
  #7  
Old 01-16-2006, 05:54 AM
almqdad almqdad is offline
 
Join Date: Jul 2003
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello

that is very kind of you peterska2
Reply With Quote
  #8  
Old 01-18-2006, 09:29 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, sorry for the delay there.

Use the always_hide_from_guests instructions but replace
Code:
<if condition="$show[member]">
with
Code:
<if condition="$show[modcplink]">
This needs to be done in steps one and three.

Any problems let me know.
Reply With Quote
  #9  
Old 04-19-2006, 10:11 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Important information regarding support - 20/04/06
Due to time constraints and the amount of things that are being planned for future modifications, priority support will now be provided here. Support provided in this thread will be on an as and when basis.
Reply With Quote
  #10  
Old 05-17-2006, 09:08 PM
Yahookan's Avatar
Yahookan Yahookan is offline
 
Join Date: Jan 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I haven't played with the user selectable one yet but the first works fine. I used the register htmlin my phrase too as it seemsmore appropriate.

I have also stripped the messenger contacts from the postbit/postbit_legacy by replacing:

Code:
<if condition="$post[icqicon]">$post[icqicon]</if> <if condition="$post[aimicon]">$post[aimicon]</if> <if condition="$post[msnicon]">$post[msnicon]</if> <if condition="$post[yahooicon]">$post[yahooicon]</if></div>
With:

Code:
<if condition="$show[member]"><if condition="$post[icqicon]">$post[icqicon]</if> <if condition="$post[aimicon]">$post[aimicon]</if> <if condition="$post[msnicon]">$post[msnicon]</if> <if condition="$post[yahooicon]">$post[yahooicon]</if><else />
&nbsp;<br>
$vbphrase[contact_is_private]
</if></div>
Thanks!

*clicks install*
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 01:36 PM.


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.04790 seconds
  • Memory Usage 2,287KB
  • Queries Executed 23 (?)
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
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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