Are there any plans to make intergration files for auto signup in PHPBB? I am new to all this so I am not able to code it myself. Any help would be great.
Thanks in advance
Woody
Offline
Hi, have a look at this: http://mathedit.free.fr/phpBB3/viewtopi … &t=130
Still in progress, but it works.
Offline
Hum, in english... Yes, it is planned, but for the moment, even the french tutorial is incomplete.
In fact, if you just want to play with the code, just download the code, copy all files to your forum (no file will replace any of your existing files, it just adds files)
Next, add the field `facebook_id` to your users table:
ALTER TABLE `phpbb_users` ADD `facebook_id` BIGINT( 20 ) ;
ALTER TABLE `phpbb_users` ADD UNIQUE (
`facebook_id`
);
Next, follow the steps with the pictures on the french tutorial to make your application, and then, you just have to know these things:
* facebook_linking.php
To link the phpbb and the facebook accounts.
* facebook_unlinking.php
To break the link the phpbb and the facebook accounts.
* facebook_login.php
To login via facebook.
* facebook_logout.php
To clean-logout from facebook.
* /includes/auth/auth_facebook.php
To implement facebook authentication in phpBB
* /includes/facebook/config.php
Here are API key and applicationn secret
NOTE: All the comments in my code are in english, and an english translation is provided ![]()
NOTE2: The discussion on the french forum, it could help http://forums.phpbb-fr.com/discus-reche … l#p1237056 ![]()
Last edited by mathedit (2009-04-22 14:57:08)
Offline
I though with this mod you wouldent have to register anymore, but just login with facebook, and automaticly an account would be created. but this mod just links you FB account to an phpBB account. whats the point of that?
Is it possible to create an auto create account mod? or what is the purpose of this mod?
Offline
kozmk wrote:
whats the point of that?
There is no point, just dots
[a french programmer trying to do humor ... hum ... sometimes I am worrying about myself ...]
kozmk wrote:
Is it possible to create an auto create account mod?
Yes, you could have a look at this: http://phpbbmodders.net/articles/3.0/create_user/
kozmk wrote:
what is the purpose of this mod?
I am trying to implement a coffee feature ![]()
This MOD is just a base, it is trying to do as perfect as possible what it should do, and it was designed to be just an "auto-login" tool wich was part of a tutorial, but you can improve it ![]()
Offline
Please explain further how to edit my users table. I have edited everything else in the instructions but can't get anything to work.
I am really trying hard to get this working on my forum by June 28, but if I can't, I will have to deploy the new version of my website with the old forum system.
-Any help I can get would be greatly appreciated!
Offline
Did you manage to put your application ID an Secret in /includes/facebook/config.php ?
To edit your table, you can go on phpmyadmin, or you can make a file to do it :
<?php
$connect = mysql_connect('domain','user','password');
mysql_select_db('my_database');
mysq_query("ALTER TABLE `phpbb_users` ADD `facebook_id` BIGINT( 20 ) ") or die(mysql_error());
mysq_query("ALTER TABLE `phpbb_users` ADD UNIQUE (`facebook_id`)") or die(mysql_error());
mysql_close($connect);
?>Warning, execute this file only once ![]()
EDIT : I have just made a mock english translation. Hope it helps.
Last edited by mathedit (2009-06-23 03:32:32)
Offline
mathedit, thanks for that! I have a couple questions-
-I tried the facebook_unlinking.php and didn't have success. My accounts were still associated.
-Have you seen the policies page, and do you have plans to implement the required features?
Offline
I don't know why your accountq were still associated, maybe you were still connected to phpBB.
No, I haven't seen the policies page :S .
I've just read it and it seems everything is ready to implement these features (connect button, unlinking, etc). My MOD was designed to be just a "how-to", and I don't know if I have done it in the most right way.
For the moment I am busy with some work (playing with facebook API
) but I have planned to release a less "do-it-yourself" version ![]()
Offline
You may want to open a DEV topic in MODs in Development. I'd expect more users would see it and suggest bug fixes or improvements. That is, open it if you can handle the excessive amounts of "OMG!! When will this be done??" posts. ![]()
Offline
You mean, in phpBB forums ? I have taken a discussion I didn't started here : http://www.phpbb.com/community/viewtopi … ;t=1350035
I don't really like the way this topic is following, I think people are expecting too much from me, and they don't want to try doing something themselves. ![]()
And some people are complaining here (I just discovered it) : http://www.phpbb.com/community/viewtopi … ;t=1610005 . In this topic, the word "Urgent" in title is worrying me, if they find this is so urgent, they could do it themselves, it's not very hard, and they could implement everything they need. Furthermore, they are probably native english speakers, so reading the english documentation on Facebook should be easier. Facebook provide an example for "perfect integration" : http://www.somethingtoputhere.com/theru … /index.php (and http://svn.facebook.com/svnroot/platfor … und.tar.gz ), it is probably a better example than mine for those who wants dealing with Facebook connect. I have just discovered how to open a phpBB session using the phpBB authentification layer, and I used it with Facebook API.
I first made this MOD answering to the "bump" in the original topic, showing a method but just basis. There are still some things I don't catch when reading the documentation.
So, in conclusion (hum, I wrote a lot for nothing today) I don't think I could handle all the noobs complaning it doesn"t work when they haven't tried getting it work, so no topic in the phpBB dev forum for the moment ![]()
In fact, each feature can be made by adding these blocks :
http://wiki.developers.facebook.com/ind … ok_Connect
http://wiki.phpbb.com/Authentication_plugins
http://phpbbmodders.net/articles/3.0/create_user/
Offline
Here's what I've done:
1. Create an app on Facebook.
2. Downloaded the files from your forum and uploaded it to mine, added my API and secret to the config.php (I uploaded facebook_linking.php and the likes to my root directory, am I doing it right?)
3. Ran the SQL command.
So, now what? I don't know if it works because I don't even know how to use it. Do I add the "FB Connect" button using the first tutorial at (http://wiki.developers.facebook.com/ind … ok_Connect)?
Sorry but I'm quite confused here.
Offline
* facebook_linking.php
To link the phpbb and the facebook accounts.
* facebook_unlinking.php
To break the link the phpbb and the facebook accounts.
* facebook_login.php
To login via facebook.
* facebook_logout.php
To clean-logout from facebook.
* /includes/auth/auth_facebook.php
To implement facebook authentication in phpBB
* /includes/facebook/config.php
Here are API key and applicationn secret
Just add your application key and secret in /includes/facebook/config.php
Next, just hit the facebook_login.php, it connects automatically to the forum if the account is linked, if not, it redirects on facebook_linking.php to link the accounts.
Offline
The tutorial doesn't provide any template changes to integrate. You can add a link or button on your board that goes to /facebook/facebook_login.php to connect. As mathedit said, he provided the session integration, but not a complete MOD at this time.
Oh, and facebook_linking.php, facebook_unlinking.php, facebook_login.php, and facebook_logout.php should remain in the /facebook directory, not your board root. The code in these files will expect them to be in the directory they were in. When you upload MOD files, you should always maintain directory structure.
edit: sorry... didn't check to see that you had replied already!
Last edited by darcie (2009-06-29 08:29:14)
Offline
Thanks for the replies people. I tried going to facebook_login.php (after correcting the directory structure), and it redirects automatically back to my forum's homepage. I'm not sure if it's already linked or something.
So I logged out from the forum, then go to facebook_login.php again. This time it asked me to login, then after logging in, it asked me if I want to link the accounts. I linked them together already, but I'm not sure if it's working because it still shows 0 users on my FB's application page.
Am I doing it right? If yes, I'd have to learn to make things like ability to register a new account based on the user's FB account? I'm not sure if I could do it because I'm just an average webmaster with no experience coding whatsoever.
Someone did it nicely here: http://www.cluboholic.com/phpBB3/
But he's not replying me asking how he did it. Clicking on his FB Connect button will bring you to the registration page, with just 2 field, choosing a new username or use FB's name, and pick a password. Real neat.
Offline
Vincent-C wrote:
Thanks for the replies people. I tried going to facebook_login.php (after correcting the directory structure), and it redirects automatically back to my forum's homepage. I'm not sure if it's already linked or something.
So I logged out from the forum, then go to facebook_login.php again. This time it asked me to login, then after logging in, it asked me if I want to link the accounts. I linked them together already, but I'm not sure if it's working because it still shows 0 users on my FB's application page.
Am I doing it right? If yes, I'd have to learn to make things like ability to register a new account based on the user's FB account? I'm not sure if I could do it because I'm just an average webmaster with no experience coding whatsoever.
Someone did it nicely here: http://www.cluboholic.com/phpBB3/
But he's not replying me asking how he did it. Clicking on his FB Connect button will bring you to the registration page, with just 2 field, choosing a new username or use FB's name, and pick a password. Real neat.
http://www.phpbb.com/community/viewtopi … p;t=643935
there is a mod called facebook connect that is workin here.
you can see how it looks like and works on my board, www.nasciturus.com/forum2/
Offline
Yes, this modification is officially out, and can be found here:
http://www.phpbb.com/community/viewtopi … ;t=1692295
It works great, no flaws at all.
Offline