[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
DocSommer
Registered User
Posts: 223
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [ALPHA] Facebook For PhpBB

Post by DocSommer » Thu Jul 07, 2011 5:36 pm

strange - does the "facebook profile pic >>> phpbb avatar" feature work for you?

Maybe you should post the other issue at the official support forum.

Pressplus2011
Registered User
Posts: 5
Joined: Tue Jul 05, 2011 12:30 pm

Re: [ALPHA] Facebook For PhpBB

Post by Pressplus2011 » Fri Jul 08, 2011 7:38 am

Hallo !!!
Can´t realy anyone help me? Did´t used anyone that code? :cry: :cry: :cry:
Plse help!!! :roll:

Pressplus2011 (2011-07-05) wrote:Hallo!
Plse tell me, where ich hve to inset following code?
http://forums.damienkeitel.com/viewtopic.php?f=6&t=5

Code: Select all

define('YOUR_APP_ID', 'place_copied_app_id_here');

$my_uri = 'PATH/TO/YOUR/LOGIN/SCRIPT';

$fbcookie  = 'fbs_' . YOUR_APP_ID;
    
function fb_init($appid) {
    $fbinit = '<div id="fb-root"></div>' . "\n" . '<script type="text/javascript" language="JavaScript" src="http://connect.facebook.net/en_US/all.js#appId=' . $appid . '&xfbml=1"></script>' . "\n" . '<script type="text/javascript" language="JavaScript">  FB.init({' . "\n" . '    appId  : ' . $appid . ',' . "\n" . '    status : true, // check login status' . "\n" . '    cookie : true, // enable cookies to allow the server to access the session' . "\n" . '    xfbml  : true  // parse XFBML' . "\n" . '  });' . "\n" . '</script>' . "\n";
    return $fbinit;
    }

    if(isset($_COOKIE[$fbcookie])) {

      function fb_login($http_path) {
        $fblogin = '<fb:login-button size="medium" onlogin="top.location.href=\'' . $http_path . '\'">Login With Facebook</fb:login>' . "\n";
      return $fblogin;
      } 
    } else {
      function fb_login($http_path) {
        $fblogin = '<fb:login-button size="medium">Connect With Facebook</fb:login>' . "\n" . '
                    <script>FB.Event.subscribe(\'auth.login\', function(response) {' . "\n" . '
        top.location.href(' . $http_path . '));}</script>';
      return $fblogin;
      }    
    }

//in phpbb we  have template variables. so in phpbb we assign 

$template->assign_vars(array(
'FBINIT' => fb_init(YOUR_APP_ID),
'FBLOGIN => fb_login($my_uri),
));
Or did I anythig overseen?

Thanks for hlp!
Pressplus

xkfrat
Registered User
Posts: 5
Joined: Wed Jul 06, 2011 6:24 pm

Re: [ALPHA] Facebook For PhpBB

Post by xkfrat » Fri Jul 08, 2011 1:13 pm

Avatars work nicelly.

I also can't deselect "Use Location In Registration" in Facebook2011 options. I choose "No", save and it returns to "Yes".

I'm sorry Pressplus2011 can't help you. I didn't use that code, I just followed .xml instructions.

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

Re: [ALPHA] Facebook For PhpBB

Post by keitzy » Sat Jul 09, 2011 3:51 am

Well due to so many other commitments, like children, competitive gaming and part time work, I have to stop development on all of my phpbb projects. Mainly because its not providing an income so I actually will now have to start work in other fields that are providing an income. If any one would like to take over the development I am quite happy to hand it over.
Image

Pressplus2011
Registered User
Posts: 5
Joined: Tue Jul 05, 2011 12:30 pm

Re: [ALPHA] Facebook For PhpBB

Post by Pressplus2011 » Sat Jul 09, 2011 9:34 am

xkfrat wrote:I'm sorry Pressplus2011 can't help you. I didn't use that code, I just followed .xml instructions.
Thanks!

Pressplus2011
Registered User
Posts: 5
Joined: Tue Jul 05, 2011 12:30 pm

Re: [ALPHA] Facebook For PhpBB

Post by Pressplus2011 » Sat Jul 09, 2011 10:05 am

keitzy wrote:Well due to so many other commitments, like children, competitive gaming and part time work, I have to stop development on all of my phpbb projects. Mainly because its not providing an income so I actually will now have to start work in other fields that are providing an income. If any one would like to take over the development I am quite happy to hand it over.
*sad-faced* so much is running good. Think again about it!

Question on all:
Hve got someone the register-tool for running? Means hve got someone the data of facebook include to his mySQL? I did`nt saw any forum in which the register and log in was runnig correctly. Phps you will give a report of standing?

xkfrat
Registered User
Posts: 5
Joined: Wed Jul 06, 2011 6:24 pm

Re: [ALPHA] Facebook For PhpBB

Post by xkfrat » Sat Jul 09, 2011 4:45 pm

xkfrat wrote:I can't deselect "Use Location In Registration" in Facebook2011 options.
Changed it manually in phpMyAdmin. It works now.
Still can't stop the redirects when I press the Login/Register Facebook button.
keitzy wrote:
Thank you for starting this project, I hope someone will pick this up.
I wish you the best for the rest of your projects.
You're awesome ;)

xkfrat
Registered User
Posts: 5
Joined: Wed Jul 06, 2011 6:24 pm

Re: [ALPHA] Facebook For PhpBB

Post by xkfrat » Sat Jul 09, 2011 6:46 pm

xkfrat wrote:Still can't stop the redirects when I press the Login/Register Facebook button.
I know now why it redirects onclick. The login/register box action is "top.location.href='/.../'. When going to your page from Facebook's iframe, the top location is changed.

I changed it and now the registration process stays in the frame.
When the registration ends, the page redirects again to my domain. Still don't know why, maybe it's the trigger_error() function.

User avatar
bobz1993
Registered User
Posts: 7
Joined: Sun Jul 10, 2011 3:17 am
Location: Glendale, NY
Contact:

Re: [ALPHA] Facebook For PhpBB

Post by bobz1993 » Sun Jul 10, 2011 3:42 am

Hi. I installed the mod on a fresh installation of 3.0.8.

I'm getting a 500 ERROR when i try to login with Facebook.

I do get the popup to accept the app and then it goes to http://bobzent.info/canton/forums/fb201 ... onnect.php
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Any ideas?

kulinar
Registered User
Posts: 651
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Re: [ALPHA] Facebook For PhpBB

Post by kulinar » Sun Jul 10, 2011 3:20 pm

I think the mod is abandoned. I tried to install but I couldn't make it work.

DocSommer
Registered User
Posts: 223
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [ALPHA] Facebook For PhpBB

Post by DocSommer » Tue Jul 12, 2011 5:06 pm

The support forum is closed - seems this mod is indeed abandoned :cry:

So we just can wait and hope for someone else who might continue the development.

User avatar
Ghalebi
Registered User
Posts: 160
Joined: Tue May 02, 2006 9:47 pm
Location: Yemen
Name: Ali
Contact:

Re: [ALPHA] Facebook For PhpBB

Post by Ghalebi » Tue Jul 12, 2011 5:12 pm

Bad news :cry:

However, thanks keitzy for the great development, and for everybody that can take responsibility of this awesome MOD, plz don't kill our hopes :?

Pressplus2011
Registered User
Posts: 5
Joined: Tue Jul 05, 2011 12:30 pm

Re: [ALPHA] Facebook For PhpBB

Post by Pressplus2011 » Sun Jul 17, 2011 3:30 pm

Hi!

Has somebody experience with Vers 3.0.9 ??

DocSommer
Registered User
Posts: 223
Joined: Mon Aug 24, 2009 10:30 pm
Location: Hamburg

Re: [ALPHA] Facebook For PhpBB

Post by DocSommer » Sun Jul 17, 2011 5:35 pm

Pressplus - this Mod is abandoned, you shouldn't install it until someone takes over the development.

Meanwhile I'd like to knw how to uninstall the SQL changes - maybe anyone can help if I post the initial installation command (this mod didn't came with an installer)

Code: Select all

INSERT INTO `phpbb_config` (`config_name`, `config_value`, `is_dynamic`) VALUES
('allow_avatar_remote_fb', '1', 1),
('allow_fb_avatar_remote', '1', 1),
('fb2011_admins', '0', 1),
('fb2011_appid', '0', 1),
('fb2011_comment_enable', 'yes', 1),
('fb2011_comment_posts', '2', 1),
('fb2011_comment_width', '450', 1),
('fb2011_fb_show_bday', 'yes', 1),
('fb2011_fb_show_gender', 'yes', 1),
('fb2011_fb_show_location', 'yes', 1),
('fb2011_lang', 'en_US', 1),
('fb2011_like_action', 'like', 1),
('fb2011_like_color', 'light', 1),
('fb2011_like_enable', 'yes', 1),
('fb2011_like_faces', 'false', 1),
('fb2011_like_font', 'tahoma', 1),
('fb2011_like_layout', 'standard', 1),
('fb2011_like_width', '450', 1),
('fb2011_page', '0', 1),
('fb2011_path', 'fb2011/', 0),
('fb2011_secret', '0', 1),
('fb2011_settings', '3', 1);
CREATE TABLE IF NOT EXISTS `phpbb_fb2011_userdata` (
  `user_id` int(11) NOT NULL,
  `fb2011_user_settings` int(11) NOT NULL,
  `fb2011_fb_id` varchar(255) default NULL,
  PRIMARY KEY  (`user_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
REPLACE INTO `phpbb_modules` (`module_id`, `module_enabled`, `module_display`, `module_basename`, `module_class`, `parent_id`, `left_id`, `right_id`, `module_langname`, `module_mode`, `module_auth`) VALUES
(195, 1, 1, 'profile', 'ucp', 173, 18, 19, 'UCP_PROFILE_AVATAR', 'avatar', 'cfg_allow_avatar && (cfg_allow_avatar_local || cfg_allow_avatar_remote || cfg_allow_avatar_remote_fb || cfg_allow_avatar_upload || cfg_allow_avatar_remote_upload)');

deMechanico
Registered User
Posts: 3
Joined: Tue Jul 19, 2011 7:13 am

Re: [ALPHA] Facebook For PhpBB

Post by deMechanico » Tue Jul 19, 2011 10:22 am

Hmm, I will be testing with the system and perhaps (!) will take over the project, as I am developing something similar right now. However, I may need some help from experienced users.

Anyway, I will be in touch.

Locked

Return to “[3.0.x] Abandoned MODs”