![]() |
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 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.
[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. |
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. |
Hi
what about hiding user info from members too and just allow morderator |
I'll need to see about redoing it. Do you need it to be user selectable, or just hidden from everyone except staff?
|
Hi
thank you peterska2 Quote:
great hack |
ok, I'll get it coded up as soon as I have a free few mins
|
Hello
that is very kind of you peterska2 |
Ok, sorry for the delay there.
Use the always_hide_from_guests instructions but replace Code:
<if condition="$show[member]"> Code:
<if condition="$show[modcplink]"> Any problems let me know. |
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. |
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> 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 /> *clicks install* |
All times are GMT. The time now is 06:54 AM. |
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:
|