MyBB Community Forums
[For 1.8] MyFacebook Connect 3.6 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [For 1.8] MyFacebook Connect 3.6 (/thread-137797.html)



RE: MyFacebook Connect 2.0.1 - Frugalmeister - 2014-08-29

Hi Shade,

I'm having trouble getting your plugin to work. Here is my forum:

http://gangapremhospice.org/mybb/index.php

As you can see the FB button isn't displayed, but if I go to http://gangapremhospice.org/mybb/myfbconnect.php?action=login I am prompted to log in, so at least that works.

How can I get the FB button to appear on my forum index page?

Thanks Smile

Frugalmeister

UPDATE: I discovered that myBB wasn't up to date so upgraded it to the latest version and re-uploaded the latest version of the plugin files, re-installed it and re-configured it. No difference though. I still don't see the FB button but can log in if I go to myfbconnect.php?action=login.

Alright. I've finally got it to work. The problem was that the version of MyFacebook Connect on the Mods Site is 2.0.1. When I noticed that the version on GitHub was 2.0.2, I downloaded and installed that, and it worked.

I'm now trying to get the FB button to display instead of the text as per your instructions in the Extended documentation, but only an 'x' is being displayed. Still trying.

Frugalmeister


RE: MyFacebook Connect 2.0.1 - Shade - 2014-08-29

It's a plain link, so you can do whatever you want with it: add an image, attach some extra text, call it from every page you want.


RE: MyFacebook Connect 2.0.1 - Frugalmeister - 2014-08-29

I can't seem to call the image for some reason. The code I am using is:

<a href="{$mybb->settings['bburl']}/myfbconnect.php?action=login"><img src="/images/fblogin.png" /></a>

As you can see, the image is stored in the right place:

http://gangapremhospice.org/mybb/images/fblogin.png

What am I doing wrong?


RE: MyFacebook Connect 2.0.1 - Shade - 2014-08-29

Strip out the first "/": <img src="images/fblogin.png" />


RE: MyFacebook Connect 2.0.1 - Frugalmeister - 2014-08-29

It worked! Thanks Shade.

I guess this is obvious to experienced coders, but it might be worth updating the Extended documentation to reflect this, as it says:

Replace {$lang->myfbconnect_login} with the following code:

<img src="/images/imagename.extension" />

Thanks again!

Frugalmeister

The FB login button is working fine, but there seems to be a bug in that if I log out, then sign back in via the FB button, I'm taken to a page that says "You are already logged into the board."

Is there a way to get around this and take the user back to the last page they were on, or at least back to the forum index?

Frugalmeister


RE: MyFacebook Connect 2.0.1 - Shade - 2014-08-31

Check out this post: http://community.mybb.com/thread-137797-post-1078049.html#pid1078049


RE: MyFacebook Connect 2.0.2 - mpoeagjp - 2014-08-31

@Shade, this plugin will works with MyBB 1.8?


RE: MyFacebook Connect 2.0.2 - Shade - 2014-08-31

Yes it will.


RE: MyFacebook Connect 2.0.2 - TBO29 - 2014-08-31

Yes, it works. I tried it yesterday.


RE: MyFacebook Connect 2.0.2 - Frugalmeister - 2014-08-31

(2014-08-31, 08:16 AM)Shade Wrote: Check out this post: http://community.mybb.com/thread-137797-post-1078049.html#pid1078049
To solve the redirect issue, the post you linked tells me to change "myfbconnect.php?action=fblogin" to "myfbconnect.php?action=login". I am assuming that this is in the "header_welcomeblock_guest" template? If yes, I already have it set to "login" and not "fblogin". Still, when I logout and login, I get the "You are already logged into the board." message.

Any other fix for this issue Shade?

Frugalmeister