Topic-icon Replace JomSocial Hellome (login and logout) by JFBC (login and logout

Active Subscriptions:

None
Hi,
I would like to entirely replace JomSocial Hellome login/logout by JFBC login and logout !
I'm facing issue to logout an user using JomSocial (with JFBC) after a login.
I've followed your order requirement : JFBC User plugin first, Joomla User in second,...

Please help !

Thanks,
Roger
The topic has been locked.
Support Specialist
Roger,
To do that is pretty simple. I don't know the specifics to change in the HelloMe module offhand, but if you're already familiar with their layout, the only things you should need to change are below:
* Remove any of the buttons in their module that you don't want to use / replace with JFBC's buttons
* Add the "Login With Facebook" button by simply adding the tag {JFBCLogin} wherever you want that button to appear
* Add the "Logout" button by simply adding {JFBCLogin logout=true}. This will display both the Login With Facebook button, if the user isn't logged in, or the logout button if they are.

There are a few other options for the tags, if you want to customize things even more, but hopefully that will get you started. For the other tags, see the following page:
www.sourcecoast.com/jfbconnect/docs/conf...ation-guide?start=13

Let us know if you need anything else, and good luck!
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

Thank you for your reply!
I'm not really familiar with Hello me module but It's an occasion to jump in...
I will keep you update!
Thanks,
Roger
The topic has been locked.
Support Specialist
Roger,
Definitely keep us posted, and if you get in too deep, let us know. We'll try to help out how we can!

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

None
Alex,

I have two issues now:
1) I'm quite lost between the Com_Community/libraries/toolbar.php login/logout code location and Hellome/tmpl/... login/logout code location...I have tried to hack both unsuccessfully!! And almost spent my night hacking...Can you help about the exact location to do the hack? Thank you !

2) I can't logout from JFBC button when I'm on JomSocial page (the screen becomes modal), from another page, the JFBC logout button is accessible and works perfectly !--- I guess it's an ordering issue between JFBC module and JomSocial component ???

Thank you,
Roger
The topic has been locked.
Active Subscriptions:

None
Alex,
Can you help me to replace the Hello me module Login and Logout redirection and buttons in JomSocial by JFBConnect? I'm losted !
Where to go : Com_Community/libraries/toolbar.php or Hellome/tmpl/...

Thank you for your help,
Roger
The topic has been locked.
Support Specialist
Roger,
Wow! Very sorry to have missed your earlier post. Let me try to get you straightened out quickly!

Here's 2 quick stabs at how to do both (quickly tested, but do your own testing as well):
Toolbar - Tested and works for us
/components/com_community/templates/default/toolbar.index.php
Around line 77 (in JS 2.2) or 70 (in JS 2.4), you'll see something similar to the below:
<form action="<?php echo JRoute::_('index.php');?>" method="post" name="communitylogout" id="communitylogout">
				<a href="javascript:void(0);" title="<?php echo JText::_('COM_COMMUNITY_LOGOUT'); ?>" onclick="document.communitylogout.submit();" class="jsIr"><?php echo JText::_('COM_COMMUNITY_LOGOUT');?></a>
				<input type="hidden" name="option" value="<?php echo COM_USER_NAME ; ?>" />
				<input type="hidden" name="task" value="<?php echo COM_USER_TAKS_LOGOUT ; ?>" />
				<input type="hidden" name="return" value="<?php echo $logoutLink; ?>" />
				<?php echo JHtml::_('form.token'); ?>
			</form>
You'll want to remove everything there (the whole form) except for the a href tag, which you'll need to make a minor modification to the javascript call. When done, all the lines above should be reduced to (mainly updating the onclick call in the remaining line):
<a href="javascript:void(0);" title="<?php echo JText::_('COM_COMMUNITY_LOGOUT'); ?>" onclick="jfbc.login.logout_button_click()" class="jsIr"><?php echo JText::_('COM_COMMUNITY_LOGOUT');?></a>

Hellome - Untested, but hopefully works :D
/modules/mod_hellome/tmpl/default.php
Around line 177 (JS 2.4), you'll see:
<a style="line-height: 18px;" href="javascript:void(0);" onclick="helloMe.logout();"><?php echo JText::_('MOD_HELLOME_MY_LOGOUT'); ?></a>
Update that to:
<a style="line-height: 18px;" href="javascript:void(0);" onclick="jfbc.login.logout_button_click();"><?php echo JText::_('MOD_HELLOME_MY_LOGOUT'); ?></a>
There's also a form directly below the line above that should be able to be safely removed. Shouldn't hurt to leave it there either though.

Really hope that helps, but if not, to expedite things a bit, can you post (or Private Message) me the URL of a page you're trying to modify with specific information of what logout button your looking for? The HelloMe and Toolbar both have a logout button, and I should be able to help you modify both, but seeing a specific page will definitely help narrow things down and go quicker in general.

Thank you for patience, and again, sorry for the delay,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,

Just 2 words: Thank you !!!
Have 2 additional requests:
- Do you know the hack to redirect user login request from Jomsocial to JFBC - I want to avoid access to the Jomsocial public front page and any other Jomsocial returning login pages ?
- I'm going also to subscribe to your LinkedIn extension and I'm wondering how this will work regarding my hack on Jomsocial login/logout (any impact?)

Thank you again !
Roger
The topic has been locked.
Support Specialist
Roger,
No problem for the help, and really sorry again for the delay. I rarely 'miss' support requests, but it does happen.. and unfortunately, it happened to you.

I'm not exactly sure what you mean by hacking the user redirect.. however, Joomla 1.7 has a Redirect component built-in which will likely let you do what you're looking for. I haven't used it much, but it's pretty straightforward (this url goes to this new url).

Regarding JLinked, the hack shouldn't change anything about integrating with it. When using both JFBConnect and JLinked, you actually want the JFBConnect logout called (for some technical reasons), so everything should be good there. Of course, if you run into issues, you know we'll be here to help.

Finally, just so you know, JLinked is 20% off right now (through the end of the year) for all active subscribers to JFBConnect. We haven't promoted that much yet, but will be sending out a newsletter announcing JLinked pretty soon :)

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
Hi Alex,

Thank you for your reply and honestly...You are doing GREAT in this support process !

My need is the following:
- I want to redirect a non logged in user (trying to access to a non public page) systematically to JFBC login module...And avoid access to Jomsocial front page connection (index.php?option=com_community&view=frontpage) and returning login page.
- I'm not sure if the new Joomla Redirect (1.7) function will do the job...As my need is in module level...But I'm willing to try.
Can you help me to identify the JFBC login module url, how this url looks like in a normal Joomla website?

I have a second request, I would like to display connected user picture (with JFBC) beside the Logout button...I guest I'm missing the solution somewhere. Thank you.

Best,
Roger
The topic has been locked.