November 21 2024 21:54:19
Navigation
· Home
· Articles
· Downloads
· FAQ
· Discussion Forum
· News Categories
· Contact Me
· Search
Demos
· Glossary
Users Online
· Guests Online: 2

· Members Online: 0

· Total Members: 1,892
· Newest Member: skalsted
Last Seen Users
· muscapaul13 weeks
· Unforgiven42 weeks
· Wheeler44 weeks
· batbaru150 weeks
· MM131 weeks
· Zippo153 weeks
· hyperkolyok155 weeks
· Wivern208 weeks
· Sinders327 weeks
· Froberg371 weeks
Support sites
Fusion Sites
PHP-Fusion
View Thread
 Print Thread
Extended Profile v2.xx
Yxos
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
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
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 Smile

 
bvcweb
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:
Download source  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.
 
www.bvcweb.nl
muscapaul
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:
Download source  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:
Download source  Code
if (iGUEST || (iMEMBER && $data['user_id'] != $userdata['user_id'])) {
    tablebreak();
} else {
    tablebreak();
    @include INFUSIONS."extended_profile/includes/profile.php";
    tablebreak();
}



By:
Download source  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
Thnx Paul. This works.

I don't understand how it works, but it works.
Thanks again.
 
www.bvcweb.nl
muscapaul
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)
 
Jump to Forum:
Donate
Please help to make
muscapaul.com
possible and enable
further improvements!
Login
Username

Password



Forgotten your password?
Request a new one here.
Temporary email addresses
Please note: While activating new accounts I usually check them out. If I notice an account registered with a temporary email address it will be deleted.
Newsletter
Newsletters are for registered members only.
Shoutbox
You must login to post a message.

01/12/2021 16:45
Szép napot

13/06/2021 07:01
I found this site again!

21/04/2020 18:32
Barely...

11/11/2013 00:48
Cool! This site is still around!

18/10/2013 20:28
hey! Smile

25/06/2011 01:40
My name is Andreo, I'm new member Smile

25/06/2011 01:39
Hello Muscapaul, is there anyone here ?

13/09/2010 01:02
nice mod thanks Smile

10/07/2010 15:01
Paul, hows thing?

07/07/2010 03:47
Who becomes the world champion on football? We wil

Render time: 0.07 seconds 9,488,178 unique visits