Log in

View Full Version : Show phrase in profiles but visible to choosen id's only


Valter
05-21-2006, 10:14 AM
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:


<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