View Full Version : Custom Profile Fields Edittable For Certain Usergroup IDs
Heidegger
01-31-2003, 03:20 PM
Anyone know offhand how I'd edit the members.php to allow certain usergroups to be allowed to edit a Custom Profile field? Note that is how our Store functions, hence I have to do it that way (least of a headache). If there are other edits, please say.
Hey Heidy. Hit me up on AIM sometime and I will help joo.
*is LL*
Heidegger
02-01-2003, 12:19 AM
Thanks Laguna.
Alright lets try this out.
find in member.php around line 300
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
ORDER BY displayorder");
replace that with
// Start Rage Bar Code
$ragebar_db=$DB_site->query_first("SELECT * FROM userfield WHERE userid = $bbuserinfo[userid]");
$usingragebar = $ragebar_db[fieldxx];
if ($usingragebar == 1) {
$exclude = "";
} else {
$exclude = "AND profilefieldid != xx AND profilefieldid != xx";
}
// End Rage Bar Code
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1 $exclude
ORDER BY displayorder");
bandersen
06-05-2003, 05:28 PM
Please Neo could you help with my problem too....
I am looking for a hack that will allow a certain usergroup only to view/fill out new profile fields or certain profilefield ID's (these profile fields will be required, hidden and non editable). Users that aren't in that usergroup should not be able to see / or be bothered with these additional profile fields.
I appreciate any help.
mustang_lex
06-03-2005, 09:03 PM
I need the same sorta thing, except everyone can view the fields but only usergroup ID9 is able to have the extra fields and editable.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.