× Joomla Facebook Connect support forum

Topic-icon RC3, JomSocial Integration, The Next Steps

Active Subscriptions:

None
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).
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #386 by Muhanad

bravesaintsaturn 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).

thanks for the reply
but are u referring to fbconnect in general or jfbconnect ?
are u saying that what im looking for is not an option at all because the guys behind facebook connect dont allow such thing ? or ur talking about jfbconnect ?
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #392 by cdm021
Hi,

I have this problem when trying to add user using Facebook Connect button to JomSocial. When clicked page loads about 45 seconds and stops and show this error:

[img]http://i39.tinypic.com/rr7fnn.jpg[/img]

so index page can not be opened no matter how much I refresh, than I go to any sub url : <!-- m --><a class="postlink" href="www.mypage.com/somesuburl">www.mypage.com/somesuburl and than it shows this error

[img]http&#58;//i39.tinypic.com/9fnmn5.jpg[/img]

after that I login using my admin userdata via normal login form and after that I can return to index and all errors are gone.

any idea?

P.S. I think all options are set correctly because once I managed to add user, but still not sure how, these errors were shown first time also. After adding I had no errors, but when tried to add again, problems started again.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #393 by cdm021
Ahh, I've fixed it, just deleted this user under UserMap in JFB configuration. Sorry for disturb ;)
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #711 by mario
i got that same error listed above in firefox everytime a user created with jfbconnect logout and to fix it i have to everytime delete the user from the user map in the backend of jfbconnect

is there anyway to fix this
The topic has been locked.
Active Subscriptions:

None
15 years 1 week ago #867 by glennluther
I am not a great php coder. Is there any way someone can help me take out the extra login out of this Module? All I want it to do is provide an option for logging into JomSocial via Facebook connect. I do not need the extra username, password forms as well as the forgot your password etc. links. I am doing my best to trim this module down, but I keep getting errors when I install it, and I am sure what I am doing may not be the best solution. I'm really hoping there is someone out there who can help. If not I will keep deleting lines of code and hope I stumble on the right combination.

I tried Clark's code in the default.php file. It still included all the extras. I sorta wish there was a simple hide/show feature for the extra stuff in the module parameters, so I can turn them off without playing with code.

Thanks so much in advance.

Glenn.


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&#58;&#58;init();
?>

<script type="text/javascript">
	function fb_login_button_click()
	{
		FB.Facebook.get_sessionState().waitUntilReady(
			function() {
				var fbUserLoginLink = "<?php print JFBConnectFacebookHelper&#58;&#58;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&#58;&#58;_(JURI&#58;&#58;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&#58;&#58;_( 'Password' ); ?>" value="<?php echo JText&#58;&#58;_( 'Password' ); ?>" onblur="if(this.value=='') this.value='<?php echo JText&#58;&#58;_( 'Password' ); ?>';" onfocus="if(this.value=='<?php echo JText&#58;&#58;_( 'Password' ); ?>') this.value='';" />
	</div>
	<input type="submit" name="Submit" class="button" value="<?php echo JText&#58;&#58;_('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&#58;&#58;_( 'form.token' ); ?>
</form>


<?php echo JText&#58;&#58;_('Or You Can&#58;'); ?></a>
<fb&#58;login-button size="medium" length="long" onlogin="javascript&#058;fb_login_button_click();"></fb&#58;login-button>
<?php
	$usersConfig = &JComponentHelper&#58;&#58;getParams( 'com_users' );
	if ($usersConfig->get('allowUserRegistration')) &#58; ?>
	<br /><br /><a href="<?php echo JRoute&#58;&#58;_( 'index.php?option=com_user&task=register' ); ?>">
			<?php echo JText&#58;&#58;_('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"' &#58; "";
			$picWidth = $picWidthParam != "" ? 'width="'.$picWidthParam.'px"' &#58; "";
			$linked = ($params->get("linkProfile") == 1)?"true"&#58;"false";
			$fbLogo = ($params->get("facebookLogo") == 1)?"true"&#58;"false"; 
			$fbUid = $fbClient->user;
			?>
			<div id="profile-pic">
				<fb&#58;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&#58;&#58;_("Welcome")." ".$user->get('name') ?>
	</div>
	<input type="submit" name="Submit" class="button" value="<?php echo JText&#58;&#58;_('Logout') ?>" onclick="javascript&#058;logout_button_click()" />
	<?php
	if (!$fbClient->user) # show facebook connect button to join accounts
	{ ?>
		<div class="fb_connect_user"><?php echo JText&#58;&#58;_('Connect User'); ?></div>	
		<fb&#58;login-button size="medium" length="long" onlogin="javascript&#058;fb_login_button_click();"></fb&#58;login-button>
	<?php }
	?>

<?
} # end logout

?>

Thanks.

The topic has been locked.
Active Subscriptions:

None
15 years 1 week ago #868 by glennluther
Nevermind. Figured it out. Thanks anyway.

Glenn.
The topic has been locked.