View Full Version : Miscellaneous Hacks - Digital Point Better Facebook Registration
digitalpoint
04-27-2011, 10:00 PM
About
I was getting terribly annoyed with the number of users registering with Facebook Connect, only to say they accidentally registered with their real name and wanted to change it.
So with this, the default username will be their Facebook username, NOT their real name.
This will work with 4.0.3 or higher (4.0.3 was the first version with Facebook Connect).
Installation
Install the product-dp_better_facebook_reg.xml product under AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product
You can see a live version in action here (assuming you are logged into Facebook of course):
http://forums.digitalpoint.com/register.php
Details
Let's say my name is "Shawn Hogan" and my Facebook username is "dpoint" (which it is) and I sign up for a forum that utilizes the Facebook Connect integration that came with vBulletin 4.0.3 or higher...
By default, vBulletin will make my username "Shawn Hogan".
With this addon, my default username will be "dpoint"... if "dpoint" is taken, it will default to "dpoint75" (1975 is the year I was born)... if "dpoint75" is taken, it will default to "dpointXX" (XX being a random number).
By default vBulletin also resets the username back to "Shawn Hogan" if I overrode it, but there was an error with my registration. So as an added bonus, the system will always remember the username if it was set by the user registering.
rob01
04-27-2011, 11:01 PM
but, if they don't have a username?
BigDog007
04-27-2011, 11:11 PM
Thanks Shawn nice mod.. Like your Forum too have learned alot.. Visit daily
digitalpoint
04-27-2011, 11:17 PM
but, if they don't have a username?Then it will simply let them pick one. Although, doesn't everyone have to have a Facebook username these days?
BigDog007
04-28-2011, 01:08 AM
Everyone has a Facebook Username.. Your right shawn 100%
venom2124
04-28-2011, 01:14 AM
Nice thanks.
Brandon Sheley
04-28-2011, 02:31 AM
Nice mod
/me tags
Boofo
04-28-2011, 04:01 AM
Then it will simply let them pick one. Although, doesn't everyone have to have a Facebook username these days?
Everyone has a Facebook Username.. Your right shawn 100%
Nope, not everyone. I don't have a facebook account and no desire to. Would this mod not work for my site then for the users?
0verl0rd
04-28-2011, 05:01 AM
downloaded and installed thanks a lot!
Would you happen to share the twitter updates below the menu of your forum? I love the shadow effect and animation between replying to threads..
if not.. that's fine too.. I truly understand the feeling of being copied and it is very annoying.. :P
digitalpoint
04-28-2011, 05:33 AM
Nope, not everyone. I don't have a facebook account and no desire to. Would this mod not work for my site then for the users?It will work fine... but it's only useful if you use Facebook Connect so users can register with their Facebook account. But since you would need a Facebook App ID in order to offer Facebook Connect, I assume you don't have one since it requires a Facebook account (which you don't have). :)
Would you happen to share the twitter updates below the menu of your forum? I love the shadow effect and animation between replying to threads..
if not.. that's fine too.. I truly understand the feeling of being copied and it is very annoying.. :PMaybe someday... it's not really a standalone system currently. It's pretty tightly wound into our other systems (for example when someone adds/removed premium membership, it has to trigger related actions for adding/deleting those people's Twitter accounts and so forth)... Not a big priority to spend a ton of time so others can have it for free to be honest when all the extra work isn't something I would be using myself. :)
Boofo
04-28-2011, 06:19 AM
It will work fine... but it's only useful if you use Facebook Connect so users can register with their Facebook account. But since you would need a Facebook App ID in order to offer Facebook Connect, I assume you don't have one since it requires a Facebook account (which you don't have). :)
Nope, not yet. I'm trying to hold off until I'm the very last person on earth to sign up for facebook. There has got to be some sort of prize for that, wouldn't you think? ;)
To be honest, their privacy policies make me uncomfortable. And after Sony's Playstation Network hacking fiasco recently, that doesn't help matters in the internet privacy trust department.
digitalpoint
04-28-2011, 06:26 AM
Yeah... I have a Facebook account, but I don't really use it. My girlfriend tells me if there's anything I need to know. But that being said, Facebook brings us a TON of traffic and our new user registration went up by probably about an extra 70 per day once we made it so easy to register via Facebook Connect.
Boofo
04-28-2011, 06:39 AM
Is there any way to do a facebook account with very little personal info and open to on one? That might be enough to get the id you said I need. I enjoy my anonymity too much, I guess.
digitalpoint
04-28-2011, 06:41 AM
Ya of course... just do minimal info and make everything hidden and private to everyone.
Boofo
04-28-2011, 06:51 AM
Okay, I'll give it a shot. But if anyone finds anything out about me, you better be ready to make up the spare room 'cause I'm hiding out there at your place. ;)
Hornstar
04-28-2011, 10:20 AM
If you're really worried, make up a fake name lol
Gemma
04-28-2011, 10:23 AM
Okay, I'll give it a shot. But if anyone finds anything out about me, you better be ready to make up the spare room 'cause I'm hiding out there at your place. ;)
*Away to search for Boofo on Facebook*
Thanks for the mod digitalpoint :)
RobbieZ
04-28-2011, 10:39 AM
Excellent, double accounts.
One with facebook and of course my normal account :)
Boofo
04-28-2011, 10:46 AM
*Away to search for Boofo on Facebook*
Thanks for the mod digitalpoint :)
Try Boofo131. Boofo was already taken, it seems. ;)
Boofo
04-28-2011, 08:15 PM
I'm gonna have th slide on this one, although I was looking forward to getting it working. I can't get past the captcha when I go to create the app. It won't accept my input for the correct words. It keeps giving me an error.
HellRZR
04-28-2011, 08:24 PM
Sounds great, marked as installed, thanks.
HellRZR
04-28-2011, 08:32 PM
Just tested this, doesnt work for me. used my wife account which she uses her real name and no username on facebook and it created a VB user with her real name. I installed the XML file as indicated, did I miss something? BTW running VB 4.1.3.
Wordplay
04-28-2011, 09:51 PM
Everyone has a Facebook Username.. Your right shawn 100%
wrong you only have a facebook username if your facebook account is confirmed via telephone. i just opened 50 of my facebook friends to test it, and only 13 of them had a facebook username.
HellRZR
04-28-2011, 10:33 PM
wrong you only have a facebook username if your facebook account is confirmed via telephone. i just opened 50 of my facebook friends to test it, and only 13 of them had a facebook username.
I think wordplay is right,
I tested as follows. Using again my wifes account I created her a username in FB (account not confirmed via telephone). I then deleted her from my VB users and then tired to register her again using FB connect and once again it created a VB user using her real name.
So it didnt pickup the FB username, nor did it give me an option to change username on VB.
digitalpoint
04-29-2011, 12:51 AM
If you want the user to be able to optionally pick/override their username, you would set the AdminCP -> Settings -> Options -> Facebook Options -> Enable Auto-Register option to "No".
digitalpoint
04-29-2011, 02:10 AM
Also, I should have been more specific... it will only use the Facebook username if they HAVE a Facebook username. If they don't, it will stick to what vBulletin uses by default (their real name).
HellRZR
04-29-2011, 12:39 PM
What do you use on your site may I ask? do you have auto-resister set to Yes or No?
digitalpoint
04-29-2011, 05:28 PM
We don't auto register.
strudinox
05-04-2011, 06:44 PM
I installed this plugin but it doesn't seem to be working for me. Since installing it yesterday, I've had about 20 registrations from facebook, and each of them still have their first and last name as their username. I think it would be kind of unlikely that out of 20ish people, none of them would be using a username. Any ideas?
HMBeaty
05-04-2011, 06:46 PM
Sweet. Thanks!
Boofo
05-04-2011, 07:03 PM
Works as advertised for me. ;)
digitalpoint
05-04-2011, 11:26 PM
Have you tried with your own Facebook account by chance?
HMBeaty
05-05-2011, 03:08 AM
Hey dp, do you have a branding free option for this? Or how can I remove the the copyright in the footer?
digitalpoint
05-05-2011, 05:43 PM
It should only be a copyright on the actual registration page, no?
HMBeaty
05-06-2011, 02:43 AM
It should only be a copyright on the actual registration page, no?
Correct
MarceloS
05-10-2011, 05:33 PM
Hi DP. Nice mod! Does it make the system remember the user when he comes back to the forum?
8thos
06-16-2011, 03:29 AM
*installs*
moonclamp
07-14-2011, 10:03 PM
Then it will simply let them pick one. Although, doesn't everyone have to have a Facebook username these days?
I don't - I decided it would make me too easy to track down.:cool:
Anyway, what happens with me is my username gets entered as "profile.php" :D
Personally I'd like to see the username field blank by default - thus forcing the user to think.
digitalpoint
07-15-2011, 08:17 PM
I don't - I decided it would make me too easy to track down.:cool:
Anyway, what happens with me is my username gets entered as "profile.php" :D
Personally I'd like to see the username field blank by default - thus forcing the user to think.Strange... makes me think Facebook is giving an odd profile URL in your case for some reason. I just double checked it with my Facebook account, and it works as expected.
Could you create a plug-in at the register_form_complete hook location with the following code:
print_r ($fb_userinfo);
Then if you go to your registration page and use the Facebook connect, it will barf out the data we are getting from Facebook.
If you want to PM me that data, I could try to figure out what's going on with your FB account (and presumably some others)...
If you do, don't forget to disable the plug-in after you get the dump.
moonclamp
07-16-2011, 12:36 AM
That plugin completely messes up the display of the registration page. I mean text and stuff goes everywhere.
Not sure if this helps, but I have an age-restricted forum that requests DOB info first before going to the main registration page. (vb 4.1.4 btw)
I couldn't possibly give you facebook info ... far too personal, sorry.
No worries though, it's still far better than the original vb version so I'm not gonna sweat about it :)
Bastiaan86
08-17-2011, 02:50 PM
I have tested it on my website with different facebook accounts, and also getting "profile.php" as an entered username.
The funny thing is that on your website (Digital Point) my username is set: "profile.php86".
So there is a little difference there. :)
digitalpoint
08-17-2011, 06:51 PM
I could probably fix it if you wanted to give me an output of what Facebook is sending for that particular Facebook account. It's hard to test when it works fine with my Facebook account, so not sure what they are sending that's different. If you want to do it, see the instructions here.
Bastiaan86
08-19-2011, 05:40 AM
i have sent you a message with the output of the plugin :up:
digitalpoint
08-20-2011, 07:41 PM
Got it... thanks.
Mod has been updated to take into account users who have a valid profile URL, but no selected Facebook username.
OldSchoolDSL
12-04-2011, 03:35 AM
Installed
4.1.8
(I assume working)
fishmaster
12-21-2011, 02:46 AM
Working on 4.1.9?
HMBeaty
12-21-2011, 02:52 AM
Working on 4.1.9?
Yes
Mark Hewitt
01-13-2012, 06:18 PM
When I try registering in dpoint it still requires me to input an email address, is this right?!
PS until 5 minutes ago I'd never heard of Facebook usernames. *Nobody* I know has one. Is it a US thing?
Mark Hewitt
01-13-2012, 07:14 PM
PS what I'm looking for is a way for facebook users to register and for the forum to ask them what forum name they would like. And nothing else; once they've chosen it they are registered. Doable?
digitalpoint
01-13-2012, 10:24 PM
Not sure... this plug-in doesn't alter how vBulletin does facebook registrations, only what it uses for the default username. So your question would be better for the support forum on vb.com
Mark Hewitt
01-14-2012, 05:59 PM
If a user doesn't have a Facebook username and they end up registering using their real name, will it still put a number on the end if there is a clash?
Mark Hewitt
04-11-2012, 11:50 AM
Any idea?
digitalpoint
04-11-2012, 09:00 PM
No, if they have no Facebook username, it will just revert to vBulletin's normal behavior.
AddwireCom
05-04-2012, 03:42 PM
Instead of importing their username from facebook can we setup a varible to have them input a name, lets say for my site is a gaming clan, and i would like it to import the name they type in for thier playstation Gamertag. is this possible?
bizpro99
09-06-2012, 10:15 PM
can it import their fb profile photo with facebook connect?
dog199200
10-01-2012, 02:58 PM
I have an issue. I can't get this to work. I imported it correctly, but no matter what when the person hits connect it instantly registers them instead of redirecting them to the registration page..
http://www.shiningashes.net/forum/forum.php
digitalpoint
10-01-2012, 03:54 PM
Disable the "Enable Auto-Register" setting in your AdminCP settings.
poomins
01-28-2013, 01:21 PM
Do we need Facebook connect license for this mod
digitalpoint
01-30-2013, 04:46 AM
What is a Facebook Connect license? Do you have a URL?
4thstar
01-31-2013, 11:05 AM
Hello.
I have all facebook settings to on, but because i have an auction site and use that register form i have removed the code in the header to display the facebook connect button, i want to limit the way in which people can register for the first time on the site, make them go through the alternative form..
After the registration process the user can then enter their profile and choose to connect to facebook that way..
but when using the standard vbulletin code if i press the facebook connect button nothing happens?
using your plugin is it possible to make the button only appear in the users.
settings / edit connections page?
kind regards
Carl
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.