vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Hide User Contact Info From Guests (https://vborg.vbsupport.ru/showthread.php?t=101180)

peterska2 11-18-2005 10:00 PM

Hide User Contact Info From Guests
 
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

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.

If you use this please remember to click the install button. It's the only way I know if you like what I do.

There is now an option to make this a user selectable option. To upgrade an existing install download the zip and follow the instructions in the file marked UPGRADE. For a fresh install use the file marked NEWINSTALL

Updated 06 Jan 2006 @ 1855 GMT: Added instructions for user selectable show and hide.

Updated 09 Dec 2005 @ 2320 GMT:
Added new text file for 3.5.2 instructions as last edit has changed.


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.

TyleR 11-19-2005 09:45 PM

Installed and works perfect, thanks :D

[high]* TyleR clicks install[/high]

slvr ralliart 11-20-2005 03:31 AM

anyway to let the guest know that the people's info is private because they are a guest and can't view unless they are a registered member?

Mastar 11-20-2005 04:43 AM

For some reason I'm getting this error:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/domains/****.com/public_html/includes/adminfunctions_template.php(3532) : eval()'d code on line 206

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Dsyn11 11-20-2005 07:29 AM

I'm new to this stuff. Where exactly do I add the "phrases" part?

Yorixz 11-20-2005 08:42 AM

Quote:

Originally Posted by Dsyn11
I'm new to this stuff. Where exactly do I add the "phrases" part?

Go to your AdminCP, click "Languages & Phrases" -> "Phrase Manager" -> "Add New Phrase"

@Topic; thanks, trying it out now.

Dsyn11 11-20-2005 09:18 AM

Got it! Thanks very much!

peterska2 11-20-2005 09:55 PM

Quote:

Originally Posted by Mastar
For some reason I'm getting this error:

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/****/domains/****.com/public_html/includes/adminfunctions_template.php(3532) : eval()'d code on line 206

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Did you do all 4 edits before attemptiing to save? If you didn't do all four then it will error as you will have unfinished if statements.

Quote:

Originally Posted by slvr ralliart
anyway to let the guest know that the people's info is private because they are a guest and can't view unless they are a registered member?

You can change the phrases to display different text. You might want to consider something along the lines of "Contact Info is available to members only"

Snake 11-21-2005 11:27 AM

Great hack!

Snake 12-09-2005 09:04 AM

And is it going to work on 3.5.2?

Mastar 12-09-2005 02:56 PM

Quote:

Originally Posted by peterska2
Did you do all 4 edits before attemptiing to save? If you didn't do all four then it will error as you will have unfinished if statements.



You can change the phrases to display different text. You might want to consider something along the lines of "Contact Info is available to members only"

Installed with no errors, the forth template is alittle off since vb3.52

Boofo 12-09-2005 05:30 PM

Nice work, Princess. But wouldn't it be better just to not allow guests to see member info? ;)

peterska2 12-09-2005 09:13 PM

Quote:

Originally Posted by Mastar
Installed with no errors, the forth template is alittle off since vb3.52

I'll check it out and see about an update

peterska2 12-09-2005 09:13 PM

Quote:

Originally Posted by Boofo
Nice work, Princess. But wouldn't it be better just to not allow guests to see member info? ;)

That stops them from viewing the profile. This just hides the email, PM, homepage, and IM stuff on the profile page.

peterska2 12-09-2005 09:21 PM

Quote:

Originally Posted by Mastar
Installed with no errors, the forth template is alittle off since vb3.52

I've updated the text file. Thanks for pointing this out.

Snake 12-10-2005 12:01 PM

Can this be a user-option and edit via the Usercp?

peterska2 12-10-2005 04:30 PM

Don't see why not. Leave it with me and I'll get it coded when I get chance. ie not tonight as I'm going out to a Christmas party

Snake 12-21-2005 11:32 AM

Well any luck with it yet?

Snake 01-04-2006 04:36 PM

Quote:

Originally Posted by peterska2
Don't see why not. Leave it with me and I'll get it coded when I get chance. ie not tonight as I'm going out to a Christmas party

No news?!

EricaJoy 01-05-2006 09:29 PM

Yes, it would be nice to see this as a user selectable option.

peterska2 01-06-2006 02:47 PM

I've just back from my Christmas break. I'm playing catch up then I'll double check the code I threw together and if it works ok then I'll get it released.

Snake 01-06-2006 04:11 PM

Cool, I'll be waiting... :)

peterska2 01-06-2006 04:43 PM

Damn, I have a major bug. You'll have to bear with me.

Snake 01-06-2006 04:48 PM

No worries, I am a patient man.

peterska2 01-06-2006 04:59 PM

Finally. It just took a couple of massive changes instead of a couple of little ones.

I've uploaded a zip called 'User_Selectable' that contains the upgrade and fresh install instructions.

Snake 01-06-2006 05:12 PM

Thanks, I'm gonna install it now! :)

EricaJoy 01-07-2006 03:51 PM

w00t! thank you ma'am!

peterska2 01-07-2006 03:57 PM

you're both welcome :)

EricaJoy 01-07-2006 04:36 PM

hrm, the user selectable option didn't quite behave properly. probably because i have modified my memberinfo template so much. no worries though, its doing its ultimate job of hiding members contact info from guests.

peterska2 01-07-2006 04:59 PM

Yeah it only works with the default layout not with your mega-customized one.

silurius 01-07-2006 05:16 PM

Been looking for something like this, nice one. Is it possible to control by usergroup? I want contact info to show up for an internal team to that team only.

peterska2 01-07-2006 05:21 PM

I guess so. I'll have to see about it. Will you want it fixed or user selectable as I'll need to write the code accordingly.

silurius 01-07-2006 05:22 PM

Beggars can't be choosers, but user-selectable would be cool (I can always set options on the backend).

peterska2 01-07-2006 05:34 PM

Ok, I'll code it up.

peterska2 01-07-2006 05:48 PM

Quote:

Originally Posted by silurius
Been looking for something like this, nice one. Is it possible to control by usergroup? I want contact info to show up for an internal team to that team only.

OK, here goes.

Instead of
Code:

<if condition="$show[registerbutton]">
use
Code:

<if condition="$bbuserinfo[usergroupid]!='x'">
where x is the usergroupid number of the usergroups that you want to be able to view it. You will need to change both instances of this.

silurius 01-07-2006 08:08 PM

Thanks again, I'll continue playing around with this!

One issue I'm having with it currently is that I have the "Force Users to Fill in Required Fields" hack installed, which is not very specific when it asks users to go update their profile (they do not think to look in the options for this one, and even if they look there the option does not explicitly state that it is required).

As is, it's a little more than halfway towards meeting an internal team requirement. I'll be playing around with it to see what more I can do. Love it!

Would gladly tip if this could be made into a product, whereby:

  • Members can define by dropdown which usergroups can view their IM contact info (perhaps could be made more generic so people can add other contact stuff like phone info).
  • Admins can define which usergroups are visible in said dropdown.
  • Nice-to-have: Members can define by dropdown which specific IM or other contact options are visible to said usergroups. (This would permit opening up certain types of contact info to the world, and keeping others somewhat private).

rnmcd 01-09-2006 04:08 AM

How much of a change is needed for this to work with 3.5.3?

peterska2 01-09-2006 09:48 PM

@ Silurius: I'm not planning on doing any more major development work to this at present.

@ rnmcd: It should work perfectly fine.

Dsyn11 01-12-2006 04:36 AM

good hack, but there's a hole:

in member list, you can still click on the AIM/MSN/etc icons to get the names. Shouldn't be too hard to fix, but I don't have much time right now. Anyone want to tackle this? :D

peterska2 01-12-2006 10:28 AM

Ah, now I'd completely forgot about that. I'll get a fixed knocked up later today.


All times are GMT. The time now is 06:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01306 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete