thanks for the replybravesaintsaturn wrote: No, FBConnect does not allow a limit on networks and such at this time (and probably never will, as it's not really its purpose).
Clark wrote: 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="www.mightyfightinghawks.com">www.mightyfightinghawks.com 'as is', nothing more.
<?php defined('_JEXEC') or die('Restricted access'); JFBConnectFacebookHelper::init(); ?> <script type="text/javascript"> function fb_login_button_click() { FB.Facebook.get_sessionState().waitUntilReady( function() { var fbUserLoginLink = "<?php print JFBConnectFacebookHelper::getFacebookUserLoginLink(); ?>&return=<?php echo $fbLoginUrl; ?>"; window.location = fbUserLoginLink; }); } function logout_button_click() { <?php if ($fbClient->user) echo 'FB.Connect.logout(redirect_to_jfbconnect_logout);'; else echo 'redirect_to_jfbconnect_logout();'; ?> } function redirect_to_jfbconnect_logout() { window.location = 'index.php?option=com_jfbconnect&task=logout&return=<?php echo $logoutUrl; ?>'; } </script> <?php 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> <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='';" /> </div> <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" /> </fieldset> <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' ); ?> </form> <?php echo JText::_('Or You Can:'); ?></a> <fb:login-button size="medium" length="long" onlogin="javascript:fb_login_button_click();"></fb:login-button> <?php $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 ##################################### else { # show logout ?> <?php # Show their FB avatar (if desired), or give them the option to link accounts if ($fbClient->user) { if($params->get("enableProfilePic")) { $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;?>" /> </div> <?php } } ?> <div> <?php echo JText::_("Welcome")." ".$user->get('name') ?> </div> <input type="submit" name="Submit" class="button" value="<?php echo JText::_('Logout') ?>" onclick="javascript:logout_button_click()" /> <?php 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 ?>
Thanks.
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.