|
[TUTORIAL]Integrate Twitter Logins with MyBB
|
|
02-27-2010, 03:47 AM
(This post was last modified: 02-27-2010 09:15 PM by afrothunder.)
Post: #1
|
|||
|
|||
|
[TUTORIAL]Integrate Twitter Logins with MyBB
This tutorial will show you how to integrate Twitter logins with MyBB. Users will be able to log in with Twitter. If the visitor has never visited before it will automatically make an account for that user. If the visitor has visited before it will log that user in.
Current users may also connect their accounts with Twitter. Note that this tutorial does not cover how to post actions done on your forum to Twitter, as http://Screeze.com does. See the similar tutorial for Windows Live here: http://community.mybboard.net/thread-65575.html Requirements: A server with PHP5 and SQLite A set of Application and Secret keys from Twitter Note: Callback URL for the Twitter app should be http://domain.com/forumdir/callback.php Steps: First, in the Admin CP, go to Templates & Style > Templates > Add Template Give this new Template the following title: Quote:twtregisteruname Fill it in with the following HTML(edit where necessary) Code: <html>Repeat to create a new template. This template will be titled: Quote:twdisconnect_normal Fill it in with the following HTML(edit where necessary) Code: <html>Now go to Configuration>Custom Profile Fields Note the highest ID number currently listed. Go to Add New Profile Field Set the New Field to the following information: Title: Twitter Token Desc: Token Type: Textbox MaxLength: 65535 FieldLength: 0 Options: [Blank] Display Order: One more than the ID you noted (Note this new number as well) Required: No Editable: No Hide: Yes Save this field and Add another Set the New Field to the following information: Title: Twitter Secret Desc: Secret Type: Textbox MaxLength: 65535 FieldLength: 0 Options: [Blank] Display Order: One more than the second ID you noted (Note this new number as well) Required: No Editable: No Hide: Yes Save this field and Add another Set the New Field to the following information: Title: Registered with Twitter Desc: Registered Type: Textbox MaxLength: 65535 FieldLength: 0 Options: [Blank] Display Order: One more than the third ID you noted (Note this new number as well) Required: No Editable: No Hide: Yes Save this field Keep those three new IDs in a safe place for later. Upload the callback.php file from the attached archive to your forum root. Edit the file where necessary. NOTE: fid13, fid14 and fid15 should be changed with their respective fid numbers that you noted down, in order(Only replace the number part, leave fid there). Upload the twitterOAuth directory from the attached archive to your forum root. Upload the twlogin.php file from the attached archive to your forum root and edit where necessary. Upload the twdisconnect.php file from the attached archive to your forum root and edit where necessary. You may now direct your guests or logged in users to http://domain.com/forumdir/twlogin.php to connect their accounts with twitter(if the user has a normally registered account) or register and connect(to users without an account) or login(for users who have a connected account but are not logged in) You may also direct your users to http://domain.com/forumdir/twdisconnect.php to dissassociate their Twitter account with your site. Note that you may use the set profile fields to determine in code who is registered from Twitter. Also note that users registered from Twitter will not have a proper email address set in their profile. You may ask these users after registration to provide one. The TwitterOAuth library is the work of Abraham Williams (abraham@abrah.am) - http://abrah.am The rest is my own(although registration and login is based off of the functions from MyBB's own scripting) and all I ask is that I am credited if anyone asks how the integration was accomplished and that the code is not sold to others(I think you may be breaking other licenses if you do as well but I am not sure). A mention on your site either on the Twitter connection pages, footer, or in any kind of announcement about the Twitter connectivity on your site with a link to http://screeze.com would be appreciated as well, but that's in no way required. If anything isn't working right it may have been something I missed in this tutorial, so please let me know. |
|||
|
02-27-2010, 04:21 AM
(This post was last modified: 02-27-2010 04:22 AM by Bob Jansen.)
Post: #2
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
Alright this is awesome, thank you so much
. Now I did waste my time on making my own
|
|||
|
02-27-2010, 03:52 PM
Post: #3
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
:/ how configure the twitter key?
Themes for MyBB 1.6 from 9 USD!! Beautiful Art |
|||
|
02-27-2010, 04:30 PM
Post: #4
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
Just Google that there are tons of tutorials on that
.
|
|||
|
02-27-2010, 04:42 PM
Post: #5
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
hi,
hey, where can I get the twlogin.php not in the attachment: S Gx-Evolution | Retun Of The Chaos To Begun!!
Version Elite Juegos, Musica, Programas, y mas Gratis. Games, Music, Programs, and more free. |
|||
|
02-27-2010, 05:55 PM
Post: #6
|
|||
|
|||
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
(02-27-2010 04:42 PM)DARKNESSDH Wrote: hi, Oops ![]() It should be fixed now. http://Screeze.com - A fun general discussions forum. Login using Facebook, Twitter, Windows Live or normally. Utilize Twitter logins on your own board. |
|||
|
02-27-2010, 06:21 PM
Post: #7
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
Very Good,
already installed and tested, this, 10. check http://www.gx-evolution.com/twlogin.php okay? Gx-Evolution | Retun Of The Chaos To Begun!!
Version Elite Juegos, Musica, Programas, y mas Gratis. Games, Music, Programs, and more free. |
|||
|
02-27-2010, 06:33 PM
Post: #8
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
nice Tut, I´ll try it later on my xampp installation... Thanks afrothunder
[]s, Claudio Tutorial: Jquery (by google API) with mybb (Prototype) Distinction between Paid/Free Plugins Threads |
|||
|
02-27-2010, 07:53 PM
Post: #9
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
Thank you so much!
100 Posts - $3.00
PM me for more information. |
|||
|
02-27-2010, 08:19 PM
Post: #10
|
|||
|
|||
|
RE: [TUTORIAL]Integrate Twitter Logins with MyBB
how add custom profile fields to the Twitter login ??
Themes for MyBB 1.6 from 9 USD!! Beautiful Art |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help





. Now I did waste my time on making my own
![[Image: rwamybbplugins.png]](http://mybbrunway.com/assets/promo/rwamybbplugins.png)


![[Image: postbit_pm.gif]](http://community.mybb.com/images/english/postbit_pm.gif)
Juegos, Musica, Programas, y mas Gratis.