Log in

View Full Version : Hide/Show Profile Fields per Usergroup


Elenna
03-06-2007, 12:58 AM
I'd like for some custom profile fields to only be viewable by certain user groups, but others only viewable by admins/mods.

Is there any way to specify which private fields are viewable by which usergroups?

Elenna
03-08-2007, 01:23 PM
Just seeing if anyone has a solution for this?

Jei
05-14-2007, 04:32 AM
this would be very useful

sidhighwind
05-23-2007, 12:13 AM
Any update on this???

h_jinx
05-28-2007, 11:48 AM
I am actually working on this right now....

Create a bitfield XML for a Product.

Then within the hook profle_editprofile_start:

$djperms = $permissions['radiodj_settings'] & $vbulletin->bf_ugp['radiodj_settings']['radiodj_allowed'];
$show['dj_info'] = ($djperms == 0 ? false : true );

Then within the modifyprofile template, have a conditional

<if condition="$show['dj_info']">
...
</if>

sidhighwind
05-28-2007, 09:08 PM
scratch that, I figured it out.