i have successfully login by using my facebook account,
everithing is fine except one thing,
MY FACEBOOK CONNECT DOESN;T CATCH facebook profile pic.
it should be success like another website based dolphin 7.0.4
Application ID and Secret Key are correct.
I think some of php functions are disabled on my server. but i don't know which function.
CAN SOMEBODY HERE HELP ME,
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
hemm.. i'm still thinking,,,
:hard thinking:
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
Are you using Dolphin's Facebook Connect or a 3rd party module?
You can see what PHP functions are disabled by going to Tools>Phpinfo
You say 'it should be success like another website based dolphin 7.0.4'. Are you running D 7.0.4 also? Was it an upgrade or a new install?
Nothing to see here |
Are you using Dolphin's Facebook Connect or a 3rd party module?
You can see what PHP functions are disabled by going to Tools>Phpinfo
You say 'it should be success like another website based dolphin 7.0.4'. Are you running D 7.0.4 also? Was it an upgrade or a new install?
thanks for reply zargon
it's default dolphin modules,
yes, my site is new install of dolphin 7.0.4,
i have tried boonex.us, and another website that i found in this forum, all of them are fine.
for tools > phpinfo, i wil try to see that
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
Here are some result of my server
*Disabled function : system,exec,readfile,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source
*allow_url_fopen = off
any suggestion to make my facebook connect catch my fb profile pic?
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
You must enable allow_url_fopen for this script to work properly (and in some cases, at all). BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
magnusoft, is there another option for allow_url_fopen??? and which line i should change ??? :(
some days ago i have changed readfile to file_get_contents to make my dolphin work.. huh
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
magnusoft, is there another option for allow_url_fopen??? and which line i should change ??? :(
some days ago i have changed readfile to file_get_contents to make my dolphin work.. huh
You'll need to edit your PHP configuration file. If your server is running PHP as CGI, you can create a php.ini file with the needed changes. If not, try contacting your hosting provider.
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
Wait before 7.0.5 is coming. Facebook connect will have some improvements. http://www.boonex.com/trac/dolphin/ticket/2296
PS: If possible do not write me personally, please try to ask on the forum first |
magnusoft, is there another option for allow_url_fopen??? and which line i should change ??? :(
some days ago i have changed readfile to file_get_contents to make my dolphin work.. huh
You'll need to edit your PHP configuration file. If your server is running PHP as CGI, you can create a php.ini file with the needed changes. If not, try contacting your hosting provider.
My hosting doesn't allow that,,,,
hem, i think it's not about allow_url_fopen.
i have just found that dieano have solved it here : http://www.boonex.com/unity/forums/topic/Deanos-Facebook-Connect-Support.htm#post_row_94100
i want to contact deano to help me here. i hope he will help me
@sashe: yes, i have download it from you trunk, and found many features like redirecting after join and automatically befriends.
BUT, my site is still cannot fetch facebook profile pic ...
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
Wait before 7.0.5 is coming. Facebook connect will have some improvements. http://www.boonex.com/trac/dolphin/ticket/2296
May I ask when 7.05 is coming?
|
Wait before 7.0.5 is coming. Facebook connect will have some improvements. http://www.boonex.com/trac/dolphin/ticket/2296
May I ask when 7.05 is coming?
may be in a week
PS: If possible do not write me personally, please try to ask on the forum first |
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
provide me with your FTP, cpanel and admin account here
PS: If possible do not write me personally, please try to ask on the forum first |
I have sent you messages, hopefully you check it.. ^_^ => http://friends.smansakra.sch.id => friends community based dolphin 7 |
magnusoft, is there another option for allow_url_fopen??? and which line i should change ??? :(
some days ago i have changed readfile to file_get_contents to make my dolphin work.. huh
You'll need to edit your PHP configuration file. If your server is running PHP as CGI, you can create a php.ini file with the needed changes. If not, try contacting your hosting provider.
My hosting doesn't allow that,,,,
hem, i think it's not about allow_url_fopen.
i have just found that dieano have solved it here : http://www.boonex.com/unity/forums/topic/Deanos-Facebook-Connect-Support.htm#post_row_94100
i want to contact deano to help me here. i hope he will help me
@sashe: yes, i have download it from you trunk, and found many features like redirecting after join and automatically befriends.
BUT, my site is still cannot fetch facebook profile pic ...
Actually it might be.
Based on your photo, it is not grabbing a picture for cropping in the avatar module. Even the current boonex version does that. This indicates something about your site is different from others you have seen this working on.
Even my version most likely will not on your system as the photo is fetched pretty much the same way.
https://www.deanbassett.com |
Thanks for explaining deano....
now i'm really headache... :"(
oke, i will inspect my hosting...
i hope sashae will help me
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
i have been trying reading every lines on all of files that located in modules/boonex/facebook_connect for longgggg day..
but i'm still can not find..
hem......... :O.
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
Ok you really have some troubles with allow_url_fopen. You need contact with AlexT here and ask him about allow_url_fopen and image cropping in avatar module PS: If possible do not write me personally, please try to ask on the forum first |
thanks sashae....
so my problem is allow_url_fopen on avatar module, not on fb...
i will see avatar, and if i can not do anything i will contact alext
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
the problem is here
function serviceSetImageForCropping ($iProfileId, $sOrigPath) { $sImagePath = BX_AVA_DIR_TMP . ((int)$iProfileId ? (int)$iProfileId : $this->_iProfileId) . BX_AVA_EXT; if (@copy($sOrigPath, $sImagePath)) { return IMAGE_ERROR_SUCCESS == imageResize($sImagePath, '', BX_AVA_PRE_RESIZE_W, BX_AVA_PRE_RESIZE_H, true) ? true : false; } return false; }
my facebook pic can not be copied becouse of allow_url_fopen is off, so it return nothing
=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
There are a number of other things in dolphin that require allow_url_fopen to be on.
Registering a ad-free dolphin licence for example.
RSS feeds perhaps
And maybe several others.
allow_url_fopen is a documented dolphin requirement. So if you can't get your host to enable it, then find a new host that will. Without that option there will be more problems down the road with other features of dolphin not working.
https://www.deanbassett.com |
PROBLEM SOLVED
Deano, i can not change to another hosting, so the one solution is just change many code in dolphin.
one problem is solved.
SO THIS IS A SIMPLE SOLUTION IF YOUR allow_url_fopen is disabled in your server
on modules/boonex/avatar/BxAvaModule.php find the below code
function serviceSetImageForCropping ($iProfileId, $sOrigPath) { $sImagePath = BX_AVA_DIR_TMP . ((int)$iProfileId ? (int)$iProfileId : $this->_iProfileId) . BX_AVA_EXT; if (@copy($sOrigPath, $sImagePath)) { return IMAGE_ERROR_SUCCESS == imageResize($sImagePath, '', BX_AVA_PRE_RESIZE_W, BX_AVA_PRE_RESIZE_H, true) ? true : false; } return false; }
then change to the below
function serviceSetImageForCropping ($iProfileId, $sOrigPath) { $sImagePath = BX_AVA_DIR_TMP . ((int)$iProfileId ? (int)$iProfileId : $this->_iProfileId) . BX_AVA_EXT; if (@copy($sOrigPath, $sImagePath)) { return IMAGE_ERROR_SUCCESS == imageResize($sImagePath, '', BX_AVA_PRE_RESIZE_W, BX_AVA_PRE_RESIZE_H, true) ? true : false; } else{// CURL $img = $sOrigPath; $ch = curl_init ($img); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); $rawdata=curl_exec($ch); curl_close ($ch); if(file_exists($sImagePath)){ unlink($sImagePath); } $fp = fopen($sImagePath,'x'); fwrite($fp, $rawdata); fclose($fp); return IMAGE_ERROR_SUCCESS == imageResize($sImagePath, '', BX_AVA_PRE_RESIZE_W, BX_AVA_PRE_RESIZE_H, true) ? true : false; } //return false; }
now it really works , may be i will find another error next time, huh

=> http://friends.smansakra.sch.id => friends community based dolphin 7 |
In Dolphin 7.0.5 it will be option to set avatar from facebook image without asking user to crop it - this code is using curl (if it is available) so it should work for you.
You can wait for 7.0.5 or try to get avatar and facebook modules from svn - it is recommended to test it on beta site first.
Rules → http://www.boonex.com/terms |
thanks so much alex, automatically saved without crop is reallly important becouse new user usually are too lazy to click 'add as avatar' or to upload new one
thanks => http://friends.smansakra.sch.id => friends community based dolphin 7 |