• Index
  • » Users
  • » Clark
  • » Posts



Edington, it's since moved out of RC and into a stable release. Download the new version and give it a go. Sourcecoast provided two manual hacks in another thread to fix this, but it's been taken care of for you with the stable release.

What version have you installed? This has been fixed with 2.0 stable. What version of sh404sef are you using at the moment?

It's extremely unlikely that a factory component would generate this warning. I don't want to accuse you of piracy, but sometimes the people who crack applications can insert their own malicious scripts into the code before they seed them to users. The other possibility is that a component or module is behaving in a way similar to a virus/worm by way of execution and that is generating the error. Either way it's not the first thing you want visitors to see when they get to your site  <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" /><!-- s:oops: -->

Otherwise has your site ever been hacked? If so, they could have had access to your template files and added their own script.

If you want to see the warning that I am getting download the Home Edition of Avast antivirus (it's free) and browse to your homepage. From memory the source was contained within an iframe on your site, but I'm not at home to check now.

Hi buffymocha, you actually enter the callback url in your connection tab in the facebook developers area. This is then pulled back into the component and displays as the 'callback URL' just so you can check that it is correct. The component doesn't tell you what to make it, you simply specify it manually.

Just make the callback url your root directory <!-- m --><a class="postlink" href="http://www.yoursite.com">http://www.yoursite.com</a><!-- m --> and it should be fine.

That's the error you're getting on your local machine as a test? C:? Have you tried on your live site?

When I access your site I get a virus/worm warning from avast. Are you using any 'iffy' modules or components on your site that might have been compromised?

My vote goes for 'leave it as is' with customisable text. Perhaps a mouse over/on-click tool tip would allow the process to be explained easier without cluttering the login/out module. Something along the lines of "Why Connect With Facebook?" which is prominent (colour, icon, etc) and an explanation of the benefits (easier Log in, post back to wall, invite friends etc) can be provided in a user firendly way.

Thanks Sourcecoast, I made the SEF changes the default.php manually before it became 2.0 stable release so I will leave it for now as it seems to be working fine! Congratulations on a great product, I'll post a topic on JomSocial about this component today.

Hi Sourcecoast, are you able to say whether the fix for this issue in the component or the login module, or both? Just wondering whether to redo my login moduke with the new version of keep using my old one.


Works perfectly for me as well! Thanks for the timely fix Sourcecoast.

Thanks Sourcecoast. I've just changed it back and I get a 500 error while trying to reach:

<!-- m --><a class="postlink" href="http://www.mightyfightinghawks.com">http://www.mightyfightinghawks.com</a><!-- m --> /index.php?option=com_jfbconnect&task=loginFacebookUser &return= aW5kZXgucGhwP29wdGlvbj1jb21fY29tbXVuaXR5JnZpZXc9ZnJvbnRwYWdl.

**The spaces in the URL are added here to stop it auto shortening in thepost **

I know this is going to be part of the same problem with the SEF, I just wanted to make you aware of it in case I decide to revert back to my old login module. This is with setting the JFB component to Skip in sh404SEF.

Thanks again for your help.

I've just tried it again, the pop-up window now closes after authentication but unfortunately I am now getting a redirect loop error post log-in. Is this something I have perhaps misconfigured in my settings?

Should I change the helper file back to normal?

Hi Sourcecoast, no problems with the questions, ask as many as you like.

I am using sh404SEF 1.0.16_Beta - build_222  but I noticed that it was set to nocache and not skip for JFB connect so I have just changed that and cleared my cache. It will rebuild the URL's over the next 15 minutes or so.

I modified the code in the helper, so lets see if that helps. I'll try again soon and post up my results!

Thanks again for the help.


Thanks for taking the time to help me out sourcecoast. For a $15 component you're offering pretty decent support.

I'm not a coder by any stretch of the imagination, I just thought I would try to mash up a more condensed style. If you're looking at incorporating additional login module styles, I used some elements from the free yootheme login module.

I look forward to hearing back from your team in regards to my oddball issue.

Thanks again.

Well I installed RC3, seems like I still have the pop up issue (tested on default module first), but as promised here is the default code for my modified login style. Please make sure you keep your original in case this doesn't work out as planned for you. An easy way of doing this is by renaming the original on your server and reverting it back if you need to. Please note Sourcecoasts' comments on using custom modules in this thread. I am simply providing my style as found on <!-- m --><a class="postlink" href="http://www.mightyfightinghawks.com">http://www.mightyfightinghawks.com</a><!-- m --> 'as is', nothing more.



defined('_JEXEC') or die('Restricted access');


<script type="text/javascript">
    function fb_login_button_click()
            function() {
                var fbUserLoginLink = "<?php print JFBConnectFacebookHelper::getFacebookUserLoginLink(); ?>&return=<?php echo $fbLoginUrl; ?>";
                window.location = fbUserLoginLink;

    function logout_button_click()
        if ($fbClient->user)
           echo 'FB.Connect.logout(redirect_to_jfbconnect_logout);';
           echo 'redirect_to_jfbconnect_logout();';

    function redirect_to_jfbconnect_logout()
        window.location = 'index.php?option=com_jfbconnect&task=logout&return=<?php echo $logoutUrl; ?>';

    if ($formType == "login")
    { ?>

<form action="<?php echo JRoute::_(JURI::root()); ?>" method="post" name="login" id="form-login">
    <fieldset class="input">
    <br /><div id="form-login-username">
                <input id="modlgn_username" onfocus="if(this.value=='Username') this.value='';" onblur="if(this.value=='') this.value='Username';" value="Username" alt="Username" size="18" name="username"/>
    <div id="form-login-password">
<input id="modlgn_passwd" input type="password" name="passwd" size="17" alt="<?php echo JText::_( 'Password' ); ?>" value="<?php echo JText::_( 'Password' ); ?>" onblur="if(this.value=='') this.value='<?php echo JText::_( 'Password' ); ?>';" onfocus="if(this.value=='<?php echo JText::_( 'Password' ); ?>') this.value='';" />
    <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" />
    <input type="hidden" name="option" value="com_user" />
    <input type="hidden" name="task" value="login" />
    <input type="hidden" name="return" value="<?php echo $jLoginUrl; ?>" />
    <?php echo JHTML::_( 'form.token' ); ?>

<?php echo JText::_('Or You Can:'); ?></a>
<fb:login-button size="medium" length="long" onlogin="javascript:fb_login_button_click();"></fb:login-button>
    $usersConfig = &JComponentHelper::getParams( 'com_users' );
    if ($usersConfig->get('allowUserRegistration')) : ?>
    <br /><br /><a href="<?php echo JRoute::_( 'index.php?option=com_user&task=register' ); ?>">
            <?php echo JText::_('Create a new account'); ?></a>
        <?php endif; ?>
<br />
<a href="/index.php/Lost-password.html">Forgot your password?</a>
<br />
<a href="/index.php/Lost-user-name.html">Forgot your username?</a>
<? } ###################### end login form #####################################
{    # show logout
    # Show their FB avatar (if desired), or give them the option to link accounts
    if ($fbClient->user)
            $picHeightParam = $params->get("profileHeight");
            $picWidthParam = $params->get("profileWidth");
            $picHeight = $picHeightParam != "" ? 'height="'.$picHeightParam.'px"' : "";
            $picWidth = $picWidthParam != "" ? 'width="'.$picWidthParam.'px"' : "";
            $linked = ($params->get("linkProfile") == 1)?"true":"false";
            $fbLogo = ($params->get("facebookLogo") == 1)?"true":"false";
            $fbUid = $fbClient->user;
            <div id="profile-pic">
                <fb:profile-pic uid="<?php echo $fbUid;?>"
                    size="<?php echo $params->get('picQuality'); ?>"
                    <?php echo $picHeight;?>
                    <?php echo $picWidth;?>
                    linked="<?php echo $linked;?>"
                    facebook-logo="<?php echo $fbLogo;?>"
    <?php echo JText::_("Welcome")." ".$user->get('name') ?>
    <input type="submit" name="Submit" class="button" value="<?php echo JText::_('Logout') ?>" onclick="javascript:logout_button_click()" />
    if (!$fbClient->user) # show facebook connect button to join accounts
    { ?>
        <div class="fb_connect_user"><?php echo JText::_('Connect User'); ?></div>   
        <fb:login-button size="medium" length="long" onlogin="javascript:fb_login_button_click();"></fb:login-button>
    <?php }

} # end logout



Yeah, it's not working as I had hoped just yet. I've got another topic in these forums about my pop up issues. Sourcecoast asked for some data earlier today and I guess he will try to locate the issue when he gets a chance.

The site works if you close the popup and navigate deeper into the site, but that's far from ideal for my visitors. The only errors I've been getting are redirect loops though, it's never been down due to the component, but I'm about to head home and try out RC3. I'll post uip my code so you can do what you like with it with your own installs. I'm not sure whether it will work with RC 3 but I will try it our soon.

I'll update once updated.


Hi Gary, I also found the default login module too large for my liking so I modified it myself. I tried initially to take the facebook connect part out and integrate that into an existing module, but it was too difficult for me to get working properly. What I did instead was to take the good parts out of yoologin and integrate those into the standard jfb login module instead.

The file that you want to modify is not actually a css file but rather default.php in the tmpl folder within the module folder.

My modified module can be seen at [url:1apf5r21]http://www.mightyfightinghawks.com[/url:1apf5r21] I can post up the code tonight, if you want it let me know.

Thank you for the follow up sourcecoast. The callback URL which is set in my facebook application is <!-- m --><a class="postlink" href="http://www.mightyfightinghawks.com">http://www.mightyfightinghawks.com</a><!-- m --> 

My details in the Help section show:

Database Version: 4.1.22-standard
Database Collation: utf8_general_ci
PHP Version: 5.2.5
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT

I hope this helps you.

Thanks for the kind words about the site. I can't wait to integrate RC3 into Jomsocial and see how that goes. You're doing a great job so far.


Great! Can''t wait to try it on my site tonight. I'll post up results tomorrow here and on JomSocial, maybe you can get a few new customers!

wtfbrb I added the required fbml script in the html file of my tempalte file in order to get the image to display in IE.

The script is something like: xmlns:fb="http://www.facebook.com/2008/fbml"

hope this helps.

Hi, I've almost got this component and module working perfectly but I have one niggling issue which I hope you can help me resolve. On my site blah the facebook connect link opens fine, you log in, and the popup appears blank (has the connecter source code in it) and doesn't close or redirect the visitor to the specified page. What am I missing?

If you close the pop up and refresh the page and click the connect button again it logs you into your facebook account, but that's going to be a little hard to explain to visitors.

I appreciate any help of how I can fix this issue. Thank you for your help.

I've just started to receive the exact same error:
Fatal error: Call to undefined method JSite::enqueueError() in /*****/public_html/components/com_jfbconnect/controller.php on line 83

This component worked once for me, then I've had consistent 500 errors and now the one mentioned above. Can anyone shed any light on the error?

  • Index
  • » Users
  • » Clark
  • » Posts

Board Info

Board Stats
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info
Total Users:
Newest User:
[email protected]
Members Online:
Guests Online:

There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program