× Joomla Facebook Connect support forum

Topic-icon pseudo-Joomla username

Active Subscriptions:

None
15 years 2 days ago #920 by snitgard
Can you get the component to create another pseudo username than fb_uid... I would be very happy if i could get a username like firstname_uid... I dont mind people not having an account a my site but its a bit annoying that everybody at the forum have a fb_uid as usernam.


Brian
The topic has been locked.
Support Specialist
15 years 1 day ago #927 by alzander
Replied by alzander on topic pseudo-Joomla username
Yeah, never thought of that. While there's not a configuration option for that right now, here's how you could do it yourself if so inclined.

In the following file: /plugins/authentication/jfbconnectauth.php, update line 68 to whatever name you'd want to use:
$response->username = "fb_".$fbUserId;

In your case, changing it to the following should do what you're looking for.
$response->username = $fbUser."_".$fbUserId;

PLEASE, make a backup of this file after you change it. Installing a new version of JFBConnect will overwrite the file and undo your change (shouldn't affect any users already created), so with each installation you'd need to re-do this change. Sorry for that inconvenience. We'll try to add a configuration option in an upcoming release.

Also, please test and report any issues you find!

On a side note, I'm glad to see you're using the pseudo-user feature. We're always curious to see who is, as it seems like most people aren't.
The topic has been locked.
Active Subscriptions:

None
15 years 22 hours ago #948 by snitgard
Replied by snitgard on topic pseudo-Joomla username
Super... Just the advice i needed. I actully started using the pseudo user because i can't seem to solve the 500 error. But when i got used to the idea, it is actually allright. I don't need the info except for an email, which fb is not providing anyway. So...

thanks for good support
The topic has been locked.