Hi All,
I noticed that when a user had clicked on unlink, on the profile edit screen of the frontend and admin it still shows a little facebook logo with a warning saying they should update this information on facebook.
This I think will be a little confusing to the user seen as they have clicked on unlink.
On looking at the profile I found that on unlinking the fb_userid is set to zero and the fb_previous_userid is then set.
The problem then is that on line 88 of cbcb.faebookconnect.php it reads
[code:1]if ( isset( $user->fb_userid ) ) {[/code:1]
This then shows the logo and warning as the field is set but to zero.
I tried to on unlinking set the field to NULL, '', null & 'NULL' (line 826) but it would not take a NULL value so I accepted this and changed line 88 to
[code:1]if ( isset( $user->fb_userid ) && $user->fb_userid>0 ) {[/code:1]
Is there anyway to set to NULL to stop the logo and warning showing as NULL I guess is better than a table full of zeros.
Also having looked at the twitter connect the code is the same so I guess it will also show the logo and warning when it is not needed. However I have not had a look at the twitter connect fully yet.
Last question is why are we keeping the facebook id of a user who does not want their profiles linked?
Is this not unnecessary information? In the UK we have data protection laws which while I am no expert do have a bit to say about keeping information for longer than necessary.
To solve this unnecessary info issue on line 828 could I not send a NULL value and if not a zero value?
[code:1]$user->fb_previous_userid = 0;[/code:1]
I tried it and I can unlink and relink but I thought I best check if I was just causing problem for myself in the future.
Thank you to all of the joomlapolis team for all of your continued work, and thank you for your help with my questions.
Mike