× Joomla Facebook Connect support forum

Topic-icon Various questions about

Active Subscriptions:

None
13 years 4 months ago #6219 by PFA34
_ Is it possible that instead of the name fb_XXXXX, the name is full name ?
to prevent it appears "welcome fb_565656433", it's a bit robotic !
_ How to replace the old way of connecting to the facebook homepage Jomsocial by JFBconnect ?
_ Is it possible to replace the button facebook "log out" (default button) by a pretty blue button identical to the connection ?
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6220 by PFA34
Replied by PFA34 on topic Various questions about
Thank you in advance for your help
The topic has been locked.
Support Specialist
13 years 4 months ago #6222 by alzander
Replied by alzander on topic Various questions about
It's funny, we just had this request for the first time through email the other day. Until then, we never disliked the fb_12345, but we're going to give admins the option for something 'prettier' in the future (likely around the 3.1.1 release, ~January). If you'd like to make a change now to your preferred method now, you can do the following (and update it if you know a little code). You shouldn't get rid of the Facebook User Id because you can't have 2 users with the same username in Joomla.. so if 2 users were named Joe Smith, and you created "Joe_Smith" for the first.. the 2nd would have issues. However, if you want to update it to "Joe_123456" instead of fb_123456, do the following:

Edit the file below:
/plugins/authentication/jfbconnectauth.php
At line 108 is the following:
$response->username = "fb_".$fbUserId;

You can update this however you want. Directly above it is the full name creation, so you can see how to get the first/last names very easily. For a random 4 digit number, the code is:
So, if you wanted Alex_1234, the code should be:

$response->username = $fbUser."_".$fbUserId;
Or, for first-last_userid, try:
$response->username = $fbUser."-".$fbUser."_".$fbUserId;

Hope this helps, and if you have any other questions, let us know. Again, in a future release, we'll provide a configuration option to more easily set this to a few more readable choices. Any users that are created with whatever system you choose above will be fully compatible with anything we come up with, just so you know.

Good luck, and keep us posted if this works (or doesn't for some reason)!
The topic has been locked.
Support Specialist
13 years 4 months ago #6223 by alzander
Replied by alzander on topic Various questions about
Forgot about the other 2 questions. For the replacement of JomSocial's login, I posted that in response to your other question.

For updating the Logout button, I'll have to look. I think this should be a matter of adding some CSS to your template to give the button a background image, but don't know what that would be off-hand. I'll try to figure something out and post back here.
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6226 by PFA34
Replied by PFA34 on topic Various questions about
Hello Alzander,

thank you for your answers,

_ Is it possible that instead of the name fb_XXXXX, the name is full name ?
to prevent it appears "welcome fb_565656433", it's a bit robotic !


My idea was to keep the user id : "fb_123456" but when the user is connected, it would be nice if it was his name that appears
Example (online kunena) => Online: fb_123456789
replaced by => Online:"fullname" (this way the user id is always fb_123456 but the full name appears instead)
Is it possible ?

_ How to replace the old way of connecting to the facebook homepage Jomsocial by JFBconnect ?
Solving this problem here : www.sourcecoast.com/index.php?option=com...ic&id=1530&Itemid=40

_ Is it possible to replace the button facebook "log out" (default button) by a pretty blue button identical to the connection ?
it is not urgent, so I expect the next version...

Thank you very much for this very useful component !

Adrien
www.pages-france-annuaire.fr
The topic has been locked.
Support Specialist
13 years 4 months ago #6227 by alzander
Replied by alzander on topic Various questions about
User ID vs full name: This all depends on the system your using to display the name. I don't know Kunena's settings off-hand, but in Agora, there's an option to display a user's Full Name vs Username. Hopefully Kunena has a similar setting you can use. Each component you use may have that as an option, but every component chooses to do things how they wish.

Just so I'm clear, if someone were to register on your site as "me_123456" (they choose that username), you'd still have this question, correct? It's not really a JFBConnect related issue. Just want to make sure, but hopefully the above description of the component settings will help.

Glad we got the rest (mostly) solved for you! Good luck, and let us know if you run into any other questions.
The topic has been locked.
Active Subscriptions:

None
13 years 4 months ago #6239 by PFA34
Replied by PFA34 on topic Various questions about
thank you for these precision (there is actually an option from KUNENA to display the full name)
The topic has been locked.
Support Specialist
13 years 4 months ago #6248 by alzander
Replied by alzander on topic Various questions about
That's great to hear. Glad we could help explain how our extension works and how to fix your issue!

Good luck, and if you run into any other issues or have other questions, you know where to find us!
The topic has been locked.
Active Subscriptions:

None
13 years 3 weeks ago #8700 by fb_100000961354610
It works fine but why so many digits. my user name with first name Call looks like this

Ex:Call_1796123461

alzander wrote: It's funny, we just had this request for the first time through email the other day. Until then, we never disliked the fb_12345, but we're going to give admins the option for something 'prettier' in the future (likely around the 3.1.1 release, ~January). If you'd like to make a change now to your preferred method now, you can do the following (and update it if you know a little code). You shouldn't get rid of the Facebook User Id because you can't have 2 users with the same username in Joomla.. so if 2 users were named Joe Smith, and you created "Joe_Smith" for the first.. the 2nd would have issues. However, if you want to update it to "Joe_123456" instead of fb_123456, do the following:

Edit the file below:
/plugins/authentication/jfbconnectauth.php
At line 108 is the following:
$response->username = "fb_".$fbUserId;

You can update this however you want. Directly above it is the full name creation, so you can see how to get the first/last names very easily. For a random 4 digit number, the code is:
So, if you wanted Alex_1234, the code should be:

$response->username = $fbUser."_".$fbUserId;
Or, for first-last_userid, try:
$response->username = $fbUser."-".$fbUser."_".$fbUserId;

Hope this helps, and if you have any other questions, let us know. Again, in a future release, we'll provide a configuration option to more easily set this to a few more readable choices. Any users that are created with whatever system you choose above will be fully compatible with anything we come up with, just so you know.

Good luck, and keep us posted if this works (or doesn't for some reason)!

The topic has been locked.
Support Specialist
13 years 3 weeks ago #8711 by alzander
Replied by alzander on topic Various questions about
The ID at the end is the Facebook user's ID. That's deteremined by Facebook and not by us. If you have other suggestions for what you'd like to see working, let us know!
The topic has been locked.