Thread subject: muscapaul's PHP-Fusion website :: Extended Profile v2.xx

Posted by Yxos on 18-06-2008 17:05
#1

I read somewhere that user defined fields are somewhat integrated in v7. I wondered if that would make this infusion more or less redundant...

I see that you have planned a v7 version of the infusion, so I guess not. Maybe you can explain the difference between your infusion and the upcomming v7 functionality ?

Posted by muscapaul on 18-06-2008 22:22
#2

I guess that in some ways it will make the infusion redundant, except for the fact that some site may already have a considerable amount of data in the infusion, which will be lost when the infusion is defused. Furthermore, there is the Users by Profile extension that can list members by there extended profile fileds. This is not (yet) available for the user defined fields.

I may look into a conversion tool for transferring data from the extended profile to user defined fields, but at present converting the infusion to v7 was easier.

Posted by Yxos on 18-06-2008 23:43
#3

I use extended_profile on most of my sites, so I would very much appreciate a conversion routine, if that is possible.

Of course that will mean that I no longer need your infusion, but at least you get the satisfaction of knowing that your functionality turned out to be such a big issue that it will be incorporated in standard :)


Posted by bvcweb on 27-08-2008 13:50
#4

I use this infusion for add some private information so I only want this information for the admin and the superadmin (not for member). And only his own information.

Now I have the following code in profile.php:
Code
if (iGUEST || (iMEMBER && $data['user_id'] != $userdata['user_id'])) {
    tablebreak();
} else {
    tablebreak();
    @include INFUSIONS."extended_profile/includes/profile.php";
    tablebreak();
}




The superadmin see his own info and the admin see his own info. BUT the member see his info too and that's not wath I want.

Please help.

Posted by muscapaul on 27-08-2008 13:59
#5

bvcweb wrote:
I use this infusion for add some private information so I only want this information for the admin and the superadmin (not for member). And only his own information.

Now I have the following code in profile.php:
Code
if (iGUEST || (iMEMBER && $data['user_id'] != $userdata['user_id'])) {
    tablebreak();
} else {
    tablebreak();
    @include INFUSIONS."extended_profile/includes/profile.php";
    tablebreak();
}




The superadmin see his own info and the admin see his own info. BUT the member see his info too and that's not wath I want.

Please help.

Replace:
Code
if (iGUEST || (iMEMBER && $data['user_id'] != $userdata['user_id'])) {
    tablebreak();
} else {
    tablebreak();
    @include INFUSIONS."extended_profile/includes/profile.php";
    tablebreak();
}



By:
Code
if (iGUEST || (iMEMBER && $data['user_id'] != $userdata['user_id'])) {
    tablebreak();
} else {
    tablebreak();
    if (iADMIN) {
        @include INFUSIONS."extended_profile/includes/profile.php";
        tablebreak();
    }
}



Posted by bvcweb on 29-08-2008 14:43
#6

Thnx Paul. This works.

I don't understand how it works, but it works.
Thanks again.

Posted by muscapaul on 29-08-2008 16:15
#7

The additional code prevents the Extended Profile fields to be displayed for non-admins by locking out the necessary include file.