Topic-icon JomSocial registration page - adding facebook connect

Active Subscriptions:

None
So, I've read the instruction here: www.sourcecoast.com/jfbconnect/docs/thir...ration-for-jomsocial

I am trying to do the 2nd part, where I add the facebook connect button to the JomSocial registration page. Only problem is that when I navigate to /components/com_community/templates//register.index.php , I DON'T have that file.

Any idea what to do? Any help? Thanks!
The topic has been locked.
Support Specialist
14 years 6 months ago #15326 by alzander
Sure there's help! That's what we're here for :)

What version of JomSocial are you using? Those instructions were written with JomSocial 2.0 (and checked that they work with 2.2 as well). 2.4 did come out last week, and it's possible they changed their template file structure or names.

Also, you're missing the template name above. Usually, the path looks like this (using the 'default' template):
/components/com_community/templates/default/register.index.php

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15329 by ryaarm
Hey Alex,

I'm using JomSocial 2.4.0 I think it just came out this week.

I guess I missed the template text in that directory I provided. And, that may have just helped...I am using ja_social. register.index.php is not in that folder, but I did find it in the default template. Should I just copy it over from the default to my ja_social template folder?

Thanks :)
The topic has been locked.
Support Specialist
14 years 6 months ago #15331 by alzander
Yes.. you either want to modify it directly in the components/com_community/templates/default/register.index.php file (not recommended) or copy that file to:
/templates/ja_social/html/com_community/register.index.php

By copying it there, you're creating a "Template Override". This is good so that when you upgrade JomSocial in the future, your modifications to their template files aren't overridden.

Hope that helps, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15337 by ryaarm
Ok, I'm still missing something. I copied that file over to the ja_social template folder as discussed. Then I edited that file to include {JFBCLogin}... I tried several locations, but the facebook connect doesn't appear in my template when I use the "create an account" link on the homepage. Am I missing something?

If I place that link elsewhere (ie. like in an article), it appears... but, I really want it to be included on the registration form.

Thanks for your patience
The topic has been locked.
Support Specialist
14 years 6 months ago #15347 by alzander
Make sure caching is disabled on your site (both Global Configuration and the System - Cache plugin, if enabled) while making these changes. Then, try making text changes in the file your editing (not just adding the {JFBCLogin} tag) and see if that appears. If not, you're likely modifying the wrong file or modifying the wrong section of the file.

Finally, disabling SEF URLs may help. Sometimes, the template being loaded can be seen in the URL and may help you track down the right file to edit in the com_community folder (or to create a template override from).

Hope that helps, but if not, let us know, and we'll keep looking. You may want to try asking JomSocial where that specific file is as well as they may be able to point it out better.

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

None
14 years 6 months ago #15357 by ryaarm
Hey alex. Cache is turned off in both spots. I'll check with JomSocial, and the template creator Joomlart, and see if they can point me in the right direction. Thanks.
The topic has been locked.
Support Specialist
14 years 6 months ago #15363 by alzander
Sorry for not knowing the specifics. The above should work, so I'm just a little confused. I'm pretty sure we're just about there, but must be missing something.

Should you need anything else from us, just let me know, and we'll be glad to help however we can.

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

None
14 years 6 months ago #15369 by ryaarm
Hey Shane... I just want to be sure I am inserting {JFBCLogin} correctly. If I navigate to the new register.index.php file in my cPanel, and click edit, I am given a screen full of code. I simply insert {JFBCLogin} before the first <table>?

See screenshot..
File Attachment:
The topic has been locked.
Support Specialist
14 years 6 months ago #15370 by alzander
Yes, that should work.. depending on where you're doing it. The file name looks correct, but please make sure you understand the ordering of how Joomla and JomSocial will look for that file. In order of priority, it will be:
1) /template/<your_template>/html/com_community/register.index.php (assuming <your_template> is "ja_social")
2) /components/com_community/templates/<JS_Template>/register.index.php (<JS_Template> is defined in your JomSocial configuration, usually "default")
3) /components/com_community/templates/default/register.index.php (this is used if #2 isn't using "default"

So, if you modify in positions 2 or 3, but the file in #1 exists, that will be used no matter what.. so check those spots, and hopefully you're just modifying the wrong file. If not though (and I don't know the ja_social template or your site configuration in general), you may need to contact JA or JS.

Hope we get you going soon!
Alex
The topic has been locked.