× Joomla Facebook Connect support forum

Topic-icon RokBox Login button fixed but Connect button doesnt work now..

Active Subscriptions:

None
I found the solution for the login button in Rokbox login modules, and have implemented it, however the connect button still does nothing, I am not sure how to get this part to work too? Thanks in advance for the help.. using current versions of fbconnect..

login fix topic:
www.sourcecoast.com/forums/jfbconnect/jf...n-in-pop-up/lightbox
The topic has been locked.
Active Subscriptions:

None
I should be clearer I think, Once logged in the connect button below logout does nothing, like the login button used to do before that was fixed..
The topic has been locked.
Support Specialist
Harry,
I'm sorry, but you'll have to clarify even more.

* You've added the Login with Facebook button to the RokBox module
* It sounds like it works for logging the user in
* However, if a user logs in through Joomla only, then clicks the "Login With Facebook" button you added, it's not 'connecting' their Facebook account to their Joomla user?

Hope that summary is accurate. If so, we'll have to look into it. That's not an issue we've heard of, and connecting accounts should work with that custom button. If I'm incorrect, please point out where :)

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

None
I have changed the fb login module code for the fb login button, and that works now.. as it didn't before in the popup module. However now when you are logged in using Joomla login(admin account), the connect button (says connect, not login) does nothing when clicked.. It acts like the fb login button did before the fix. I dont have this site online but if you need to see it I can arrange it to diagnose this, or see it yourself..
The topic has been locked.
Active Subscriptions:

None
I should also add that once I logged out and press login with facebook, and allow fb access, then it identifies me and I login using the admin account, it does connect the accounts. So the connection works, it's just that button didn't work on the popup. I setup another regular account to make sure it wasnt admin related and it does the same thing. So I think the problem is relevant to the original login button. This is Joomla 1.5.25 and JFB Conn 4.03, RT Zephyr 1.5.5 Template..
The topic has been locked.
Support Specialist
Harry,
Gotcha! Oddly, we've never had that question before, but it's a similar issue to the original where the FB Login button simply doesn't work in the RokBox. You'll need to basically replace 2 other Login With Facebook buttons in JFBCLogin module with your custom button, just like you did for the 'main' login button.

The 2 login buttons are in the same /modules/mod_jfbclogin/tmpl/default.php file. Around line 200, you'll see:
<fb:login-button v="2"
                     onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MOD_JFBCLOGIN_MAP_BUTTON'); ?></fb:login-button>
Simply replace that with your custom button. There's another reference to the same <fb:login-button ... about 5 lines below this that you'll want to replace too.

Hope that fixes you right up, but if not, let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
Ok so then the map and re map buttons need to be changed to hard links to the img src like the original button. So what should I change on this?
<div class="fb_connect_user"><?php echo JText::_('MOD_JFBCLOGIN_CONNECT_USER'); ?></div>
    <fb:login-button v="2"
                     onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MOD_JFBCLOGIN_MAP_BUTTON'); ?></fb:login-button>
    <?php

    }
    else if ($params->get('allowReconnections') && $mappedUserId != $fbId)
    {
        ?>
    <div class="fb_connect_user"><?php echo JText::_('MOD_JFBCLOGIN_RECONNECT_USER'); ?></div>
    <fb:login-button v="2"
                     onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MOD_JFBCLOGIN_REMAP_BUTTON'); ?></fb:login-button>
    <?php

Using these two images...
images/fb-connect.jpg
images/fb-reconnect.jpg

Thanks for your help..
The topic has been locked.
Support Specialist
Updated code below. Mainly just removing the fb:login-button lines from both 'sections' and replacing with the a href tag. I use the full site.com URL for the images, but you can do relative paths if you'd like:
<div class="fb_connect_user"><?php echo JText::_('MOD_JFBCLOGIN_CONNECT_USER'); ?></div> 
       <a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="http://site.com/images/fb-connect.jpg" /></a>
    <?php 

    } 
    else if ($params->get('allowReconnections') && $mappedUserId != $fbId) 
    { 
        ?> 
    <div class="fb_connect_user"><?php echo JText::_('MOD_JFBCLOGIN_RECONNECT_USER'); ?></div> 
      <a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="http://site.com/images/fb-reconnect.jpg" /></a>
    <?php
Hope that takes care of you!
Alex
The topic has been locked.