Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CBActivity doesn't recognise a login if from another system

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago - 11 years 3 months ago #231132 by krileon
I don't suggest that, because the one you are using is not designed for CB. It's not registering users with CB API or logging in users with CB API. So any users registering through it will go out of sync and will not fire any of CBs login/registration triggers.

CB Connect also doesn't rely on Facebooks JS API making it significantly faster and prevents it from conflicting. Your current solution loads in Facebooks JS API, which can be slow and buggy as well as conflicts with it self. You can see Facebooks JS API loaded in your header as follows.

Code:
<script id="facebook-jssdk" async="" src="//connect.facebook.net/en_GB/all.js"></script>

It is also why the button "pops in" and is not ready to go immediately as it has to wait on Facebook, which if their JS API server goes down so does your button.

There's nothing quirky about CB Connect. The message is a simple language string, which have provided you the define. The borders is simple CSS addition, which I have already written and tested for you and will be fixed in next release.

At any rate you're welcome to use whatever you like. Just an FYI encase you run into future problems.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 3 months ago by krileon.

Please Log in or Create an account to join the conversation.

11 years 3 months ago - 11 years 3 months ago #231159 by andrewheritage
I misunderstood you info re the button (I thought it replaced some code but saw later it was added) and so with that a other tweaks to get the size and colours I have the buttons looking nice now, thanks (perhaps it could be added as standard in next release?)

I found the language and replaced the log in message with just '' but on login with Facebook it did not go to the specified start page after login, however it looks like setting it to ' ' (i.e a blank space) stops any message appearing and also allows it to go to the specified start page although it does seem to take a noticeably long time to actually show the page compared after the (empty) pop up windows shows - I have not noticed the same delays using JFBConnect (I'm not using their SC Login)

Next issue though is that on the front page I would like to have a 'Login with Facebook' button on a button bar I have created. I also have a link to take them to a User login page that has the CB Login module (with CB Connect)

Is there a way to do this? I don't really want the CB Login module on the front page as it takes up so much space and also by only having the Facebook login button it encourages them to link their account. I found some info on doing this but it seems you have to have CB Login on the page and enabled and showing?
Last edit: 11 years 3 months ago by andrewheritage.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 3 months ago - 11 years 3 months ago #231187 by krileon

(perhaps it could be added as standard in next release?)

Next release the buttons will be CSS driven instead of a repeating background.

I found the language and replaced the log in message with just '' but on login with Facebook it did not go to the specified start page after login, however it looks like setting it to ' ' (i.e a blank space) stops any message appearing and also allows it to go to the specified start page although it does seem to take a noticeably long time to actually show the page compared after the (empty) pop up windows shows - I have not noticed the same delays using JFBConnect (I'm not using their SC Login)

Next release will have a parameter to suppress login messages so you won't need to edit any language strings.

I'm not sure what delay you're talking about, but it can only work as fast as your server and your connection can handle. JFBConnect does not register the user through CB API. CB registration is heavier than Joomla registration due to fields checking, etc.. so it's going to be slightly slower, but nothing really noticeable.

Next issue though is that on the front page I would like to have a 'Login with Facebook' button on a button bar I have created. I also have a link to take them to a User login page that has the CB Login module (with CB Connect)

As long as the CB Login module is present and has integrations enabled in it then the API will load and you can render the button anywhere you want. Please see the below regarding rendering it outside of login module, but again the login module must be present or its API won't be loaded in.

www.joomlapolis.com/forum/153-professional-member-support/197156-solved-facebook-invite-urlmenu-item#229733

For the other button classes please see the below.

www.joomlapolis.com/forum/153-professional-member-support/197156-solved-facebook-invite-urlmenu-item#229742

Is there a way to do this? I don't really want the CB Login module on the front page as it takes up so much space and also by only having the Facebook login button it encourages them to link their account. I found some info on doing this but it seems you have to have CB Login on the page and enabled and showing?

The CB Login module has to be present as it loads in the CB Connect API. You can hide the module using CSS though so the API can be loaded, but the module can't be seen.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 3 months ago by krileon.
The following user(s) said Thank You: andrewheritage

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum