Topic-icon JomSocial logout button

Active Subscriptions:

None
12 years 8 months ago #13625 by alexcfer
Dear Alex,

First of all thank you very much for your always kind and quick support. Your plugin is great and having support makes it even better.

I have a J1.6 with JomSocial working great to login but the Logout button on the community page won't logout when I use JFBConnect as it won't logout from Facebook. Could you please advise?

Thank you in advance.

Best regards,
Alex Couto
The topic has been locked.
Support Specialist
12 years 8 months ago #13638 by alzander
Replied by alzander on topic JomSocial logout button
Alex,
To get 'other' logout buttons to work if you have the Automatically Log Facebook Users In setting enabled, you need to add a little Javascript to the button itself. You can do this in the JomSocial template files, but I don't know the exact file off hand. If you need help finding it, just let us know exactly what page you're trying to use the logout button, and we'll try to track down exactly what template file it's in.

Once the link for logging out is found, all you need to do is add the following code inside the HTML anchor:
onclick="javascript:jfbc.login.logout_button_click()"
So, it will look something like:
<a href="/jomsocial/logout.html" onclick="javascript:jfbc.login.logout_button_click()">Logout</a>

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 7 months ago #14420 by joeadl
Replied by joeadl on topic JomSocial logout button
Fyi: the file is toolbar.index.php line 76 (in JomSocial 2.2) - you should copy it to your local template directory and then replace the line.
The topic has been locked.
Support Specialist
12 years 7 months ago #14425 by alzander
Replied by alzander on topic JomSocial logout button
Thanks for the tip, Joe! We're actually looking into switching how logging out occurs so that you won't have to add the Javascript in future versions (4.1+), but still not sure if we're going to be able to do what we're shooting for. If so, you won't need this mod, but until then, it will do the trick!

Alex
The topic has been locked.