vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show phrase in profiles but visible to choosen id's only (https://vborg.vbsupport.ru/showthread.php?t=116248)

Valter 05-21-2006 10:14 AM

Show phrase in profiles but visible to choosen id's only
 
I want to show some phrase in member profiles but visible only to userid's which is listed in ACP, separated with commas.

How to make this? Which conditionals etc...

Thanks!

amykhar 05-22-2006 02:02 PM

1. Set up the admincp field for this by adding a setting in the vbulletin options. you need to be in debug mode for this.
2. Create a plugin in the profile to explode the comma separated list into an array.
3. Use a conditional that looks somewhat like this:

Code:

<if condition="in_array($vbulletin->userinfo[userid],$arrayname)">

Valter 05-22-2006 04:09 PM

Understood ;)

Thank you, Sir!

Rich 05-22-2006 07:17 PM

Ouch, sir? Screenname is Amykhar. Real name is Amy. Avatar is of a girl. Sir? hmmmmmm ;)

amykhar 05-22-2006 07:36 PM

I am NOT going to complain. It's nice working with somebody who understands what I'm trying to tell them.

Rich 05-22-2006 09:19 PM

I wouldn't have expected you to complain. In fact, I doubt Cybernetec even realized that "sir" was written. I was just bustin his/her chops a bit. lol ;)

Valter 05-25-2006 03:31 AM

Edit: Solved

Valter 05-26-2006 04:42 AM

Edit: Solved


All times are GMT. The time now is 09:55 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.00951 seconds
  • Memory Usage 1,716KB
  • 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
  • (1)bbcode_code_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