profiles attributes

Permalink
hi anyone know how I can get specific attributes to appear on the user's profile page for a specific group.

so group 1 will show 10 attributes and group 2 will only show 5....

thanks!

agentorange
 
Remo replied on at Permalink Reply
Remo
Currently you can only specific attributes that are visible in the profile. There's no relation to the groups a user belongs.

For something like this you'd have to do some customization. You wouldn't have to hack into the core but you have to understand PHP as well as the basic concrete5 framework structure!
agentorange replied on at Permalink Reply
agentorange
Hi Remo, thanks for your reply

would I be able to do something like this...

If this user is in this group then hide this attribute? - using php code in the profiles view.php page...
Remo replied on at Permalink Reply
Remo
Yes, you could copy /concrete/single_pages/profile/view.php to /single_pages/profile/view.php and make the modifications you need.

Basically you'd have to add some check within this loop:
<?php 
        $uaks = UserAttributeKey::getPublicProfileList();
        foreach($uaks as $ua) { ?>
            <div>
                <label><?php echo $ua->getKeyName()?></label>
                <?php echo $profile->getAttribute($ua, 'displaySanitized', 'display'); ?>
            </div>
        <?php  } ?>
agentorange replied on at Permalink Reply
agentorange
Ok thanks - will see what I can get done. might need to actually pay someone to do this. php knowledge is minimal.

thanks for your info.
agentorange replied on at Permalink Reply
agentorange
Just can't figure this out... if anyone would be willing to help me on this I would really appreciate it.
Remo replied on at Permalink Reply
Remo
Can you post the code you've got so far? We might be able to guide you in the right direction!
agentorange replied on at Permalink Reply
agentorange
hey Remo, it's just a mess. I got nothing. tried to go through the documentation but I got very overwhelmed and basically I am stuck.

I don't expect anyone to do work for me for free. I am not sure how difficult/easy this whole setup is.
Remo replied on at Permalink Reply
Remo
I'll send you a private message