vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point Better Facebook Registration (https://vborg.vbsupport.ru/showthread.php?t=262758)

digitalpoint 04-27-2011 10:00 PM

Digital Point Better Facebook Registration
 
1 Attachment(s)
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

Quote:

Originally Posted by rob01 (Post 2189464)
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

Quote:

Originally Posted by digitalpoint (Post 2189466)
Then it will simply let them pick one. Although, doesn't everyone have to have a Facebook username these days?

Quote:

Originally Posted by BigDog007 (Post 2189503)
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

Quote:

Originally Posted by Boofo (Post 2189547)
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). :)

Quote:

Originally Posted by 0verl0rd (Post 2189556)
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

Maybe 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

Quote:

Originally Posted by digitalpoint (Post 2189560)
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

Quote:

Originally Posted by Boofo (Post 2189573)
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

Quote:

Originally Posted by Gemma (Post 2189613)
*Away to search for Boofo on Facebook*

Thanks for the mod digitalpoint :)

Try Boofo131. Boofo was already taken, it seems. ;)

sola 04-28-2011 08:01 PM

Thanks for the work.

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

Quote:

Originally Posted by BigDog007 (Post 2189503)
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

Quote:

Originally Posted by Wordplay (Post 2189822)
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

Quote:

Originally Posted by digitalpoint (Post 2192361)
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

Quote:

Originally Posted by digitalpoint (Post 2189466)
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

Quote:

Originally Posted by moonclamp (Post 2220636)
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:
PHP 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.


All times are GMT. The time now is 06:11 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01331 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete