vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   admin profile (https://vborg.vbsupport.ru/showthread.php?t=193971)

Cust0ms 10-18-2008 07:38 PM

admin profile
 
hello
I want to disable my profile (admin profile) for all my users.
disable = users can not view admin profile

Can anyone help me?

pspmaster93 10-18-2008 09:13 PM

hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm mmmmmmmmmm

id say you would need to use a modification to do that

Lynne 10-18-2008 10:00 PM

A quick way would be to just put a condition around the content in the MEMBERINFO template that you don't want others to see (probably from right under the navbar to right above the footer).

HTML Code:

<if condition="$userinfo['userid'] != x">
all the content in MEMBERINFO not to show if you are looking at the profile for userid x
</if>


Cust0ms 10-19-2008 07:16 AM

When I did it I get such error (when I visit any profile):
Code:

Parse error: syntax error, unexpected '[' in /home/domains/domain.nl/public_html/member.php(506) : eval()'d code on line 48

Dismounted 10-19-2008 07:41 AM

Code:

<if condition="$userinfo['userid'] != x">
all the content in MEMBERINFO not to show if you are looking at the profile for userid x
</if>


Lynne 10-19-2008 02:55 PM

Stupid dollar sign.....

(I edited my original post so no one else tries to use my wrong code.)

Cust0ms 10-20-2008 05:08 AM

OK, it works, thanks.
And one more question...how to add some info (when user visit my profile they can see only this info).

Dismounted 10-20-2008 10:37 AM

Code:

<if condition="$userinfo['userid'] != x">
all the content in MEMBERINFO not to show if you are looking at the profile for userid x
<else />
HAHA, you can't see my profile :-).
</if>



All times are GMT. The time now is 11:41 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
  • Page Generation 0.01102 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete