Cronus Posted March 15, 2012 Share Posted March 15, 2012 (edited) This lets your users register and login with the simple click of a facebook button, using Facebook Connect. Users no longer need to login with a username/password combination, they can simply hit the facebook Login button on your login page and enter! Registration is also just as easy, and you are guaranteed to have a validated email through this route since facebook validates all email addresses. If you already have users, there is a page included that your users can use to connect their fb accounts. When they do, their verified facebook email will replace their current email stored in the DB. Please note that this is not compatible with Internet Explorer. Users will not even be able to see the login button if they are using IE. This mod adds 1 field to the users table. Screenshots: http://www.mccodemods.com/screenshots/fb1.jpg http://www.mccodemods.com/screenshots/fb2.jpg The cost for this mod is: $10 Click here to purchase this mod and download instantly. Edited March 15, 2012 by Cronus Quote Link to comment Share on other sites More sharing options...
Uridium Posted March 15, 2012 Share Posted March 15, 2012 Have seen this in action and have to say its very very clever well done Cronus :) Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 15, 2012 Author Share Posted March 15, 2012 Within the next week or so I will be updating this allowing current users to connect their mccode accounts to their facebook so they can login that way also. Needed to start studying for an exam so I released it without for now, but rest assured it will be coming. Quote Link to comment Share on other sites More sharing options...
Danny696 Posted March 15, 2012 Share Posted March 15, 2012 Nice, actually been wanting to make this for a while, but could never be bothered. May buy soon. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 15, 2012 Share Posted March 15, 2012 Been using my own version of this for nearly a year :P Quote Link to comment Share on other sites More sharing options...
Danny696 Posted March 15, 2012 Share Posted March 15, 2012 May I ask why no IE? Quote Link to comment Share on other sites More sharing options...
Curt Posted March 15, 2012 Share Posted March 15, 2012 Hmm... well even though IE sucks, it is still one of the top used browsers. That is a lot of potential players being directed away from your site for people with this mod. Maybe look into making it compatible ?...at least with the newer versions of IE. If they have IE 5.0 then that is a personal problem...lol Anyway great mod :) Quote Link to comment Share on other sites More sharing options...
Spudinski Posted March 15, 2012 Share Posted March 15, 2012 May I ask why no IE? Facebook's API supports IE, must be something on his side. I'd like to know as well though. Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 15, 2012 Author Share Posted March 15, 2012 For some reason ie draws a blank page(fbregister.php) with no errors, and on login.php it wont show the login button either, so until i find a fix it will have to remain without ie. Works with chrome/mozilla/safari, just not ie. It works on the inside on fbconnect.php, but not on fbregister.php or login.php at al with ie. However, I have updated this now and your old users can now connect their fb accounts, and when they do, their verified facebook email address will replace their current email. Quote Link to comment Share on other sites More sharing options...
HauntedDawg Posted March 15, 2012 Share Posted March 15, 2012 Can the user choose not to use their Facebook email for the game? Who's not to say for example, i sign up on your game with a specific email address just for games and facebook for my actual email. And then my email account get's on the game. From a players point of view. They will not like it. Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 15, 2012 Author Share Posted March 15, 2012 @HauntedDawg That's true, but is really not my call. If a game owner feels this way, all it takes is the removal of 1 query. However, users can see the email listed on the form when they connect so they can choose not to connect because of that if they wish. Quote Link to comment Share on other sites More sharing options...
Spudinski Posted March 16, 2012 Share Posted March 16, 2012 @Cronus: Formulate a URL/I with the PHP API for IE users then, like desktop apps. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted March 16, 2012 Share Posted March 16, 2012 Hmm I dont have any issue in IE with what I use. But I may have approached it in a different way. I should imagine it still using the same connect to facebook though. Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 19, 2012 Author Share Posted March 19, 2012 Quick Bug Fix! Find on authenticate.php: $uq=$db->query("SELECT userid FROM users WHERE facebookid=$uid"); Replace with: $uq=$db->query("SELECT userid FROM users WHERE facebookid=$uid && $uid>0"); Sorry about that everyone, the files have been updated accordingly. Quote Link to comment Share on other sites More sharing options...
adivirus Posted March 21, 2012 Share Posted March 21, 2012 hello, i installed the mod and i`m getting this error when i`m trying to login with facebook Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/authenticate.php:52) in /home/user/public_html/authenticate.php on line 74 my line 52 is </script>"; and line 74 is header('Location: loggedin.php'); any idea how can i fix it? :) thanks Quote Link to comment Share on other sites More sharing options...
adivirus Posted March 21, 2012 Share Posted March 21, 2012 yea but it`s inside print syntax print"<div id='fb-root'></div> <script src='http://connect.facebook.net/en_US/all.js'></script> <script> FB.init({ appId : 'appID', status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true // parse XFBML }); </script>"; Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 21, 2012 Author Share Posted March 21, 2012 (edited) File a support ticket, I do not offer support via the sales thread, or MWG. :) The script you have posted here has nothing to do with the error you are getting. However we are on msn now so... yeah Edited March 21, 2012 by Cronus Quote Link to comment Share on other sites More sharing options...
adivirus Posted March 21, 2012 Share Posted March 21, 2012 thanks for your help Cronus, it worked with the print"<meta http-equiv='refresh' content='0; url=loggedin.php'>"; Quote Link to comment Share on other sites More sharing options...
Cronus Posted March 27, 2012 Author Share Posted March 27, 2012 This mod is now only $5 for the next week or so. My site is having a half-price sale on all mods. Quote Link to comment Share on other sites More sharing options...
Joshuawebb Posted December 17, 2015 Share Posted December 17, 2015 Is there anyway too purchase this? Or be pointed in the right direction? Quote Link to comment Share on other sites More sharing options...
~Rob0t Posted December 17, 2015 Share Posted December 17, 2015 Is there anyway too purchase this? Or be pointed in the right direction? If you want, I can do this tonight for 100$usd. Hit me up if you're interested. Quote Link to comment Share on other sites More sharing options...
Dave Posted December 17, 2015 Share Posted December 17, 2015 Is there anyway too purchase this? Or be pointed in the right direction? You can still purchase this from the McCodes marketplace. However I'm pretty certain Cronus won't be providing any support, as he's been offline for a long while. http://mccodes.com/viewmod.php?id=27 I'd advise commissioning some bespoke work from a trusted developer if you want something robust and secure. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.