Extended Profile v2.xx
|
Yxos |
Posted on 18-06-2008 17:05
|
Member
Posts: 3
Joined: 20.10.07
|
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 ? |
|
|
|
muscapaul |
Posted on 18-06-2008 22:22
|
Super Administrator
Posts: 368
Joined: 24.03.06
|
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.
Paul
Time flies like an arrow, fruit flies like banana (Groucho Marx)
sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator) |
|
|
|
Yxos |
Posted on 18-06-2008 23:43
|
Member
Posts: 3
Joined: 20.10.07
|
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
|
|
|
|
bvcweb |
Posted on 27-08-2008 13:50
|
Member
Posts: 2
Joined: 06.05.08
|
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. |
|
|
|
muscapaul |
Posted on 27-08-2008 13:59
|
Super Administrator
Posts: 368
Joined: 24.03.06
|
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();
}
}
Paul
Time flies like an arrow, fruit flies like banana (Groucho Marx)
sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator) |
|
|
|
bvcweb |
Posted on 29-08-2008 14:43
|
Member
Posts: 2
Joined: 06.05.08
|
Thnx Paul. This works.
I don't understand how it works, but it works.
Thanks again. |
|
|
|
muscapaul |
Posted on 29-08-2008 16:15
|
Super Administrator
Posts: 368
Joined: 24.03.06
|
The additional code prevents the Extended Profile fields to be displayed for non-admins by locking out the necessary include file.
Paul
Time flies like an arrow, fruit flies like banana (Groucho Marx)
sites: www.diptera.info (site owner); www.phpfusion-ned... (superadministrator) |
|
|