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?


All times are GMT. The time now is 11:24 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.01124 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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