Page 7 of 41

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 12:49 pm
by keitzy
Do your users speak english natively?
The xml file being called is a facebook language xml. That is why the language file is called. May I ask who your host is as this is the first time I've heard of this occurring.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 12:58 pm
by cossielee
keitzy wrote:Do your users speak english natively?
The xml file being called is a facebook language xml. That is why the language file is called. May I ask who your host is as this is the first time I've heard of this occurring.
Yes mate, we are a british site, most users are from here. My host is Apex Hosting.

I can no longer like the posts getting this error:

Code: Select all

You failed to provide a valid list of administrators. You need to supply the administrators using either a "fb:app_id" meta tag or a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
Looks like i will have to uninstall manually, getting lots of Errors about missing code when trying to do it with AutoMod :cry:

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 1:03 pm
by keitzy
Oh. You haven't used the updated version of Facebook 2011 as the one you have downloaded has some modx errors in the install file prior to me fixing it. Download facebook 2011 again and extract it. Then copy the Facebook 2011 folder over the previous Facebook 2011 folder if your forum directory/store/mods folder. You should be able to unistall it then.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 3:46 pm
by cossielee
Iv done some research on allow_url_fopen and it seems their are a few security issues, im on a shared server so my host wont compromise it just for me, so im going to hold off just now, iv asked one of my tech team if theirs a way to change your code to use cURL instead of allow_url_fopen, im not going to let something like this stop me from using your mod.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 3:55 pm
by keitzy
I have an idea. What I will do is make a switch for lang's(Languages).
If the host won't budge then you can tick yes on the switch and use a local copy of the xml file which I will have to keep on top of but that's the joy's of dealing with web hosts and facebook or use the xd_receiver to retrieve the xml file from facebook which is just as much of a pain. Haha.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 4:17 pm
by keitzy
I will put this on the home page as a temp fix until the next version.

find in includes/functions_fb2011.php

Code: Select all

	global $config;
  $get_locale =	simplexml_load_file('http://www.facebook.com/translations/FacebookLocales.xml');
replace with

Code: Select all

	global $config, $phpbb_root_path;
  $get_locale =	simplexml_load_file($phpbb_root_path . 'fb2011/FacebookLocales.xml');
Unzip and copy this file here - http://forums.damienkeitel.com/FacebookLocales.zip
to fb2011 folder.

Problem solved -- I hope.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 4:41 pm
by cossielee
Brilliant mate, thats done the trick for now :D

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 4:53 pm
by keitzy
No probs man. Glad I could get it working.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 5:07 pm
by keitzy
Well I just jumped on http://www.ps3coffindodgers.com and the file_get_contents of the graph api upon registration is blocked also. So that means alot of converting from php to javascript/ajax. Let javascript do all the facebook queries and api work, then post via ajax to phpbb. Lets see the server host block that :lol:.
I also forgot to add custom profile fields to the facebook registration so upon registration an error appeared stating I didn't accept the forum rules. So that's another bug to fix.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 6:22 pm
by cossielee
iv no idea what any of that means :D as i said before im a pure novice :)

i have noticed another small problem, i ''Liked'' a post on my forum and it posted on my wall, the image its used on my facebook page next to the post is the phpbb site logo image, however i dont use it on my site :roll: :)

Also one of my members has told me that it wont let you login with your facebook account, only lets you register, tried it myself and hes correct, but i noticed the Facebook Manager was missing in UCP, so had to go into ACP and add the module, then i had the option to link to existing account, once done users can login via Facebook Login button, my question is though, do they always have to go into the UCP first and click the button or now that the module is enabled will it work from the login screen???

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 10:00 pm
by stuk88
there is some small bug in viewtopic.php edit :

Code: Select all

'FBLIKE' => ($forum_id == $auth_role['forum_id'] $config['fb2011_like_enable'] == 'no' ? '' : '<div .....
supposed to be

Code: Select all

'FBLIKE' => ($forum_id == $auth_role['forum_id'] || $config['fb2011_like_enable'] == 'no' ? '' : '<div ......
with the OR sign inside the IF?

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 11:45 pm
by keitzy
As we say here in West Aus. For Blahs Sake. I will fix it. Just not dotting my I's or crossing my T's.

Re: [ALPHA] Facebook 2011

Posted: Wed Mar 30, 2011 11:57 pm
by stuk88
dont worry no rush... just wanted to point some found bugs...

Re: [ALPHA] Facebook 2011

Posted: Thu Mar 31, 2011 12:04 am
by keitzy
All fixed and updated the download.

Re: [ALPHA] Facebook 2011

Posted: Thu Mar 31, 2011 1:24 am
by Jamy
the facebook connect button isn't showing, all Im getting is plain text with no link that says facebook connect