has_profile flag vs. profile table lookup


log in

Advanced search

Questions and Answers : Web site : has_profile flag vs. profile table lookup

Author Message
Profile Ananas
Volunteer tester
Send message
Joined: 14 Dec 01
Posts: 192
Credit: 2,319,430
RAC: 0
Germany
Message 103783 - Posted: 25 Apr 2005, 19:49:15 UTC

One user at CPDN managed it to have a profile but on some pages the profile link isn't shown. His "has_profile" flag is 0/false but the entry in the table "profile" is definitely there.

Some of the PHP functions use a lookup on the profile table to decide wether to show the link or not - those work in his case.

Other PHP functions rely on has_profile, those do not work.

I think it would be a good idea to change process_create_results() and put the SQL

update user set has_profile=1 where id=$user->id

behind the "else" part so it isn't dependant on a previously existing profile but updated in any case.

I didn't find how the flag could be 0 while the profile is still there but this would be an acceptable workaround as long as the reason is unclear.


Here's the related thread at CPDN.

Pascal, K G
Volunteer tester
Avatar
Send message
Joined: 3 Apr 99
Posts: 2343
Credit: 150,491
RAC: 0
United States
Message 105064 - Posted: 29 Apr 2005, 5:02:40 UTC

Good you did post in CPDN forums, CPDN DEVs and or MODs will need to take care of that problem.....
____________
Semper Eadem
So long Paul, it has been a hell of a ride.

Park your ego's, fire up the computers, Science YES, Credits No.

Profile Ananas
Volunteer tester
Send message
Joined: 14 Dec 01
Posts: 192
Credit: 2,319,430
RAC: 0
Germany
Message 105105 - Posted: 29 Apr 2005, 7:52:06 UTC - in response to Message 105064.

> Good you did post in CPDN forums, CPDN DEVs and or MODs will need to take care
> of that problem.....


In this specific case, only the CPDN guys can help, yes.

But it would be a basic solution that helps for all projects if the change I suggested for process_create_results() would be made. It would make the flag "has_profile" more reliable.
____________

Profile Ananas
Volunteer tester
Send message
Joined: 14 Dec 01
Posts: 192
Credit: 2,319,430
RAC: 0
Germany
Message 107781 - Posted: 5 May 2005, 15:52:35 UTC

Now it is more BOINC related ;-)

http://isaac.ssl.berkeley.edu/alpha/show_user.php?userid=4

The user page has a link "show profile" but the link target says "No user profile exists for that user ID."

So there needs to be a bugfix on BOINC level.
____________

Questions and Answers : Web site : has_profile flag vs. profile table lookup

Copyright © 2014 University of California