Topic-icon I can't get it to work

Active Subscriptions:

None
14 years 6 months ago #15483 by trufor
I am testing out JFBConnect on my testsite. I am using a Rocket Theme template and have not installed any other Social Media plugins, etc...

testsite.unitedwaypeel.org/jupgrade/rocket/

When you lick the login button on the upper right it gives the option to login with facebook but nothing happens! I followed the directions. Facebook API has the proper APP ID and Secret Key. According to the Overview everything is installed an published.

I suspect I missed a step but I can't figure it out. Can anyone push me in the right direction?
File Attachment:


Thanks!
The topic has been locked.
Support Specialist
14 years 6 months ago #15484 by alzander
Replied by alzander on topic I can't get it to work
Trufor,
It's not you. It's us! Or.. us and RocketTheme.. or really.. just us and RokBox :) Facebook uses a lot of Javascript to login, and RokBox uses a lot of Javascript in general. Those 2 things cause problems when used together.

To fix, you'll need to use the alternate way of showing the "Login With Facebook" button with a custom image (you can just take a screenshot of the normal Login With Facebook button and use it, if you'd like). You can see instructions for the change in the post below, see questions 2 and 3, mainly "How can I get the Login With Facebook button to work in a Javascript pop-up?":
www.sourcecoast.com/jfbconnect/docs/common-support-questions

Of course, just for testing, for now, you can display the JFBCLogin module outside of the RokBox module, and it should work just fine there.

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

None
14 years 6 months ago #15492 by trufor
Replied by trufor on topic I can't get it to work
Thank you for your quick response!

I think I must be missing something vital. I created a button as suggested - same as you said just in black and white so that I can see if it appears.

I have my code -
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="www.unitedwaypeel.org/pics/fkbook.gif" />

And I can't get it to work. I'm not sure where I am supposed to enter the code in the JFBCLogin module. Also, where do I go to delete this code echo $fbClient->getLoginButton($buttonSize); ?> Is it buried in a stylesheet or somewhere else? I'm totally confused right now. Thanks!

File Attachment:
The topic has been locked.
Support Specialist
14 years 6 months ago #15499 by alzander
Replied by alzander on topic I can't get it to work
Sorry for the confusion. You can find the $fbClient->getLoginButton... code in the /modules/mod_jfbclogin/tmpl/default.php file. Once in there, simply look for that code, and put 2 forward slashes // in front of it. Then, outside of a PHP block (<?php [code inside these symbols is a PHP block ?>), put your Javascript.

Hope that makes sense. We're working to make this process simpler in an upcoming release, but hopefully, this will get you going now.

Sorry for the confusion, and good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15513 by trufor
Replied by trufor on topic I can't get it to work
It seems that I have no idea what I am doing. Can you help break it into simple, noobie steps?

I have opened /modules/mod_jfbclogin/tmpl/default.php file.

Line 171 was
echo $fbClient->getLoginButton($buttonSize); ?>
File Attachment:


I changed it to
// echo $fbClient->getLoginButton($buttonSize); ?>
File Attachment:


One line 172 I put the following
<?php <a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="www.unitedwaypeel.org/pics/fkbook.gif" /> ?>

It seems that there is a syntax error in that line. I also received notification that "Dynamically-related files cannot be discovered because there is no site definition for this document."
File Attachment:


I'm not surprised that when I saved thew new default.php file to my site, my site ceased to exist. D'oh! I put the original file back but I have no idea what I did wrong or how to fix it. Please help!

Is there anything that I have to do to my login module? I don't see anywhere to enter code!
File Attachment:

Thanks for your patience!
The topic has been locked.
Support Specialist
14 years 6 months ago #15518 by alzander
Replied by alzander on topic I can't get it to work
Trudi,
No worries about the patience. We're here to help. There are a few problems with the modification you made above.. and I apologize for not being clearer. Try using the following code snippet, which is hopefully pretty clear:
// echo $fbClient->getLoginButton($buttonSize); 
?>
<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="http://www.unitedwaypeel.org/pics/fkbook.gif" /></a>
<ul>
    <?php
        $usersConfig = &JComponentHelper::getParams('com_users');
The main things to note are:
1) I moved the ?> from the first line to the next line.
2) I did not wrap the new login button image in PHP tags

That's all there should be too it. Again, sorry for all the confusion and making you have to deal with this stuff. We'll get you going though!

Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #15520 by trufor
Replied by trufor on topic I can't get it to work
Yeah! That worked! Thank you so much for your help. I'm glad that I chose to go with JFBConnect!
The topic has been locked.
Support Specialist
14 years 6 months ago #15522 by alzander
Replied by alzander on topic I can't get it to work
Trudi,
We're glad you chose JFBConnect too! Sorry about all the hoops you had to go through, but hopefully, it's smooth sailing from here. Of course, if you do run into problems or need other help, you know where to find us!

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect, or our support. It's certainly not required, but very appreciated!
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.