Topic-icon SCLogin integrated with JFBConnect & Community Builder

Active Subscriptions:

None
10 years 2 months ago #42106 by lyljov
Hi,

Thanks for the response.

I already have SCLogin's Registration Component set to "Community Builder". I have Allow User Registration on Joomla set to "No", I have also set Allow User Registration on CB to "Yes, independently of global user setting". My problem is, when I click at Register, I am redirected to <sitename>/component/comprofiler/registers.html (which is from CB, right?) and that page has no "Register using Facebook"
The topic has been locked.
Support Specialist
That seems like progress at least. Before, you mentioned that you were going to the users/?view=registration, which is Joomla's registration page.

On the CB page, you'd need to add our login buttons. That's not something we can automatically do to CB's layout files. You'd need to edit the registration layout in CB and add the following tag:
{JFBCLogin text=Register with}
That will add all of the social login buttons along with a "Register with" message before them. I'm not sure what the registration template file is for CB offhand. It'd be best to consult with the CB people, but if you need help finding it, I'm sure I can take a look and help get you going.

I hope that helps explain, but as always, just let us know if there's anything else I can help with!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 2 months ago #42157 by lyljov
Hi,

Thanks for the response. I looked at the files and the declaration of the JFBCLogin text goes like this:
var $examples = array (
        '{JFBCLogin}',
        '{JFBCLogin text=Login With Facebook logout=true logout_url=http://www.sourcecoast.com}'
    );

I'm not sure how can I display that same text on ./administrator/components/com_comprofiler/comprofiler.class.php, which may be the source file for registration.
The topic has been locked.
Support Specialist
You'd need to find an HTML block in that file (or whatever file is generating the registration output) and simply add the text:
{JFBCLogin text=Login With Your Social Network}
That should just be in a raw HTML section. It's not PHP code at all, so you don't need any special tags or anything.

Community Builder's code, unfortunately, is usually not very straightforward for where to find the appropriate HTML output for a specific chunk of code. Hopefully, you know where to look, but if not, you'd need to contact the CB developers.

I hope that helps explain, but if not, let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 2 months ago #42165 by lyljov
It worked! I had to sift through a lot of codes. CB is a wild animal, it's not really as straightforward as other extensions. I would probably have a lot of other questions, but I am willing to open another thread for it. Thank you very much for your help!
The topic has been locked.
Support Specialist
Awesome! Very glad to hear you got things going. We agree that CB can be a bit tedious to work with.. it's not always easy for us either. Once you wrangle it though, it's pretty darn powerful in general though.

Should you need anything else, just let me know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Hello Lyljov, can you please share your knowledge??? I have exactly the same problem,but... Where in CB did you insert that code?

/administrator/components/com_comprofiler/comprofiler.class.php

But where exactly?

And this code? {JFBCLogin text=Login With Your Social Network}, right?

Thanks a lot!!
The topic has been locked.
Active Subscriptions:

None
10 years 1 month ago #42909 by lyljov
Hi jpsanudo,

The file is ./components/com_comprofiler/comprofiler.html.php, and the line is around 1416:
// renders using template viewer:
                echo "{JFBCLogin text=Register using:}"; // This was inserted by me
                echo HTML_comprofiler::_cbTemplateRender( $cbTemplate, $user, 'RegisterForm', 'drawProfile', array( &$user, $tabcontent, $regFormTag, $introMessage, _LOGIN_REGISTER_TITLE, _REGISTER_TITLE, _UE_REGISTER, $moduleContent, $topIcons, $bottomIcons, $conclusionMessage, $formatting ), $output );
The topic has been locked.
Support Specialist
Lyle,
Thanks for the input. I just updated our Community Builder social network integration guide with your code above. I hope it helps others and we really appreciate the feedback!

Alex
The topic has been locked.
Active Subscriptions:

None
Thanks to both of you!, lyljov and Alex. Finally I have it ok.
The topic has been locked.