![]() |
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. |
Installed and works perfect, thanks :D
[high]* TyleR clicks install[/high] |
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?
|
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. |
I'm new to this stuff. Where exactly do I add the "phrases" part?
|
Quote:
@Topic; thanks, trying it out now. |
Got it! Thanks very much!
|
Quote:
Quote:
|
Great hack!
|
And is it going to work on 3.5.2?
|
Quote:
|
Nice work, Princess. But wouldn't it be better just to not allow guests to see member info? ;)
|
Quote:
|
Quote:
|
Quote:
|
Can this be a user-option and edit via the Usercp?
|
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
|
Well any luck with it yet?
|
Quote:
|
Yes, it would be nice to see this as a user selectable option.
|
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.
|
Cool, I'll be waiting... :)
|
Damn, I have a major bug. You'll have to bear with me.
|
No worries, I am a patient man.
|
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. |
Thanks, I'm gonna install it now! :)
|
w00t! thank you ma'am!
|
you're both welcome :)
|
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.
|
Yeah it only works with the default layout not with your mega-customized one.
|
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.
|
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.
|
Beggars can't be choosers, but user-selectable would be cool (I can always set options on the backend).
|
Ok, I'll code it up.
|
Quote:
Instead of Code:
<if condition="$show[registerbutton]"> Code:
<if condition="$bbuserinfo[usergroupid]!='x'"> |
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:
|
How much of a change is needed for this to work with 3.5.3?
|
@ Silurius: I'm not planning on doing any more major development work to this at present.
@ rnmcd: It should work perfectly fine. |
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 |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|