Additional Settings For Custom Profile Fields [1.2]
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #9
RE: Additional Settings For Custom Profile Fields
Thanks, Lee Smile

You can try the update.

To upgrade, replace all the plugin files with the new one.
There is a xt_proffields_upgrade.php file inside the archive.
Upload it to your plugins folder. Activate and deactivate the upgrade file.
After deactivating it, you can delete it.

There are two settings in the plugin files:

PHP Code:
338
$xt_proffields_custom = 0;

replace it to:

PHP Code:
338
$xt_proffields_custom = 1;

for the default {$profilefields}

and

PHP Code:
528
$xt_proffields_custom_edit = 0;

for the Editable by Usergroups setting (will be applied in UserCP and for editable and non required fields only).

If we activate the codes above, there is a behavior change in the {$profilefields} block (again, hopefully).
Beside using the Viewable by Usergroups permission, it will use the Editable by Usergroups permission too.
For example, if a profile field is settable by A, B, C and D usergroup/additional usergroups only, it will be displayed in the profile page if the profile page owner is in usergroup A, B, C or D (or at least they have one of those usergroup in their additional usergroups list).
With this way we can make it a bit private for each usergroup Biggrin
If the profile page owner is in usergroup A, B, C or D (or at least they have one of those usergroup in their additional usergroups list), but the viewer doesn't have permission to view it (Viewable by Usergroups setting), it won't be displayed.
It won't be displayed if the field is empty and there is no value supplied in Blank Replacement Value.


04-04-2012 07:49 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Additional Settings For Custom Profile Fields - RateU - 04-04-2012 07:49 AM

 Standard Tools
Forum Jump: