[ADB] Facebook For PhpBB Light

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 12:49 pm

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.
Image

cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Facebook 2011

Post by cossielee » Wed Mar 30, 2011 12:58 pm

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:

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 1:03 pm

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.
Image

cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Facebook 2011

Post by cossielee » Wed Mar 30, 2011 3:46 pm

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.

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 3:55 pm

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.
Image

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 4:17 pm

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.
Image

cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Facebook 2011

Post by cossielee » Wed Mar 30, 2011 4:41 pm

Brilliant mate, thats done the trick for now :D

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 4:53 pm

No probs man. Glad I could get it working.
Image

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 5:07 pm

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.
Image

cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Facebook 2011

Post by cossielee » Wed Mar 30, 2011 6:22 pm

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???

stuk88
Registered User
Posts: 12
Joined: Mon Nov 01, 2004 5:29 pm
Contact:

Re: [ALPHA] Facebook 2011

Post by stuk88 » Wed Mar 30, 2011 10:00 pm

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?

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Wed Mar 30, 2011 11:45 pm

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.
Image

stuk88
Registered User
Posts: 12
Joined: Mon Nov 01, 2004 5:29 pm
Contact:

Re: [ALPHA] Facebook 2011

Post by stuk88 » Wed Mar 30, 2011 11:57 pm

dont worry no rush... just wanted to point some found bugs...

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [ALPHA] Facebook 2011

Post by keitzy » Thu Mar 31, 2011 12:04 am

All fixed and updated the download.
Image

User avatar
Jamy
Registered User
Posts: 429
Joined: Mon Mar 24, 2003 12:02 pm
Location: Mississippi

Re: [ALPHA] Facebook 2011

Post by Jamy » Thu Mar 31, 2011 1:24 am

the facebook connect button isn't showing, all Im getting is plain text with no link that says facebook connect

Locked

Return to “[3.0.x] Abandoned MODs”