Page 17 of 41

Re: [ALPHA] Facebook For PhpBB

Posted: Wed Jun 01, 2011 8:14 pm
by _Al
QUESTION Re: register with facebook for phpbb
What happens when two people join with the same username?

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 02, 2011 7:42 pm
by artikkk
Please update demo link :oops:

Re: [ALPHA] Facebook For PhpBB

Posted: Tue Jun 07, 2011 3:33 pm
by anniemikels
I have installed this mod and it works like a dream. I only have one problem so far, and that is that the Facebook Comments allow any guest to participate in the board if they are logged into Facebook, regardless of whether or not they register on my board.

This is a problem, because I have the Guest group set up to be read-only for all forums, and this is overriding the board permissions. Not good.

Also, the ban and hide features of the Moderator function on the individual comments is nothing more than a censor flag, dark for ban, and light for hide, that reads, "This comment is only visible to Merry's friends. Undo" for both the ban and the hide functions. Merry is my test user.
Obviously this is coming from Facebook, and has nothing to do with the MOD itself, so I won't bore you with reasons why this is idiotic.

My questions is this: Can any, or all of the Social features of the Facebook API be disabled without losing the FB connect registration function? This most definitely what I will need to do, and if it can't be so, then I will have to uninstall the Mod, unfortunately.

Thank you for the MOD. Hoping I don't have to remove it. Any advice will be appreciated.

Annie

Re: [ALPHA] Facebook For PhpBB

Posted: Wed Jun 08, 2011 8:41 am
by anniemikels
Well, I found a workaround. Give the Guest group and Anonymous User no access to any forum. I'd still like to know if any of the features can be selectively turned off. Thanks. :?:

Re: [ALPHA] Facebook For PhpBB

Posted: Sat Jun 11, 2011 3:25 pm
by cfotoceo
Installed, I can register but not login with Facebook. Not sure where my edit would be wrong. Will you so kind as to direct me where the login edit would be located. Registration works, Like works, comment box on/off works.

Login not working. Thanks and good job! You going to do one for google :)


Update: It seems I had to go to my UCP to link my FB account to log in. Am I correct in that members of my site will first have to got their UCP and click the FB tab then link the account before it will work? I did a test registration and because it was a register a new account no linking was required. If members of my site need to link first, I simply need to know that so I may let them know how to do it. I would have thought simply going to the login page would do it but so far for me that is not the case. Once linked login in with FB works fine.

http://www.itsallaboutmusic.net is my board

Re: [ALPHA] Facebook For PhpBB

Posted: Sat Jun 11, 2011 4:46 pm
by keitzy
anniemikels wrote:Well, I found a workaround. Give the Guest group and Anonymous User no access to any forum. I'd still like to know if any of the features can be selectively turned off. Thanks. :?:
In the admin section there should be a tab added next to automod called a Facebook. Options can be turned on and off there

Re: [ALPHA] Facebook For PhpBB

Posted: Sat Jun 11, 2011 6:29 pm
by cfotoceo
Hmmm something strange, the register with FB is no longer there, it just vanished. If a new member clicked register they were given the option to register with FB but now that option is not there. So they have to register with my site process.

The other functions are working fine.

Re: [ALPHA] Facebook For PhpBB

Posted: Sat Jun 11, 2011 7:32 pm
by cfotoceo
Update:

Om here is the registration issue. On my boards I have a registration tab so if people click that they will never see the FB option. If they click Login then they see the FB icon and if they are not a member and click that, then they can register with FB.

So how do we, on my board get the correct code into the registration side of my board.

So again, I have a login tab and a registration tab. If we can sort this, then the mod is 100% perfect for me.

So if you go to http://www.itsallaboutmusic.net and click register you will see what I mean. Click Login and you will notice that as well.

Basically need the FB Register Icon here: http://www.itsallaboutmusic.net/ucp.php?mode=register
Thanks

Johnathan

Re: [ALPHA] Facebook For PhpBB

Posted: Sun Jun 12, 2011 12:02 am
by keitzy
keitzy wrote:
JiMlondos wrote:
@keitzy

When I type in the facebook box, it will pop up on my wall on my facebook account but not the image(thumbnail) or the video of the post.It show up (facebook wall) the logo of my app.
Yes because i have added the og:image tag to meta tags in header. The only way to remove it is to edit functions.php in includes folder.

I will put more details up of how to do this once I have some spare time.
Find in forum folder includes/functions.php
Find below in that file

Code: Select all

//BEGIN FB2011
  function open_graph($image, $site, $admins, $app_id) 
  {
    $fbogmeta = '<meta property="og:type" name="og:type" content="website" />' . "\n" . '
                 <meta property="og:image" name="og:image" content="' . $image . '" />' . "\n" . '
                 <meta property="og:site_name" name="og:site_name" content="' . $site  . '" />' . "\n" . '
                 <meta property="fb:admins" name="fb:admins" content="' . $admins . '" />' . "\n" . '
                 <meta property="fb:app_id" name="fb:app_id" content="' . $app_id . '" />' . "\n";
    return $fbogmeta;
  }
And replace with this below

Code: Select all

//BEGIN FB2011
  function open_graph($image, $site, $admins, $app_id) 
  {
    $fbogmeta = '<meta property="og:type" name="og:type" content="website" />' . "\n" . '
                 <meta property="og:site_name" name="og:site_name" content="' . $site  . '" />' . "\n" . '
                 <meta property="fb:admins" name="fb:admins" content="' . $admins . '" />' . "\n" . '
                 <meta property="fb:app_id" name="fb:app_id" content="' . $app_id . '" />' . "\n";
    return $fbogmeta;
  }
cfotoceo wrote: Basically need the FB Register Icon here: http://www.itsallaboutmusic.net/ucp.php?mode=register
Thanks

Johnathan
open styles/your_template_name/template/ucp_register.html
find below code in that file

Code: Select all

</script>
add after the above code this code below

Code: Select all

{FACEBOOK}
	<!-- IF S_FB2011 -->
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>	
	<h2>{SITENAME} - {L_REGISTRATION}</h2>	
	<!-- IF ERROR --><dl><dd class="error">{ERROR}</dd></dl><br /><!-- ENDIF -->	
	<dl><dd>{FB2011_FB_REGO}</dd></dl>
	<span class="corners-bottom"><span></span></span></div>
</div>	

	<!-- ELSE -->
then next find below in the same file

Code: Select all

<h2>{SITENAME} - {L_REGISTRATION}</h2>
add after the code above the code below

Code: Select all

<!-- IF S_FB2011_LOGIN_ENABLED and not S_FB2011_LOGIN -->
    			<!-- IF S_Fb2011_FB_ENABLED -->
	<span class="corners-bottom"><span></span></span></div>
</div>	   			
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>    				
				<dl>
          <dt>{L_FB2011_FB_REGISTRATION}</dt>   					
          <dd>{FBREGISTER}</dd>
        </dl> 
	<span class="corners-bottom"><span></span></span></div>
</div>				
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
			<!-- ENDIF -->

	<!-- ENDIF -->
next find code below in the same file

Code: Select all

</div>
after the above code add the code below

Code: Select all

<!-- IF not S_FB2011_LOGIN -->
next find code below in the same file but after <!-- IF not S_FB2011_LOGIN -->

Code: Select all

<!-- ENDIF -->
after the above code add the code below

Code: Select all

<!-- ENDIF -->
next find code below in the same file

Code: Select all

</form>]
after the above code add the code below

Code: Select all

<!-- ENDIF -->

Re: [ALPHA] Facebook For PhpBB

Posted: Sun Jun 12, 2011 2:32 pm
by cfotoceo
Keitzy,

I sent you a PM, I am a tad lost on the code a above, many thanks for the assist.

Re: [ALPHA] Facebook For PhpBB

Posted: Sun Jun 12, 2011 2:37 pm
by keitzy
Only the the ucp_register.html. The functions.php is for the other person

Re: [ALPHA] Facebook For PhpBB

Posted: Sun Jun 12, 2011 2:41 pm
by cfotoceo
I understand but I am not sure I coded it right, there is an error so I PMd you the file.

Appreciate the support.

Re: [ALPHA] Facebook For PhpBB

Posted: Sun Jun 12, 2011 3:02 pm
by cfotoceo
Any thoughts in regards to the PM?

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 11:48 am
by cfotoceo
Unfortunately I am not able to get the Registration code above to work. I also used the one you sent me in the PM and that code did not show an FB Registration/Logon Icon. It did remove the error I had bit there is no option to register with FB.

Great mod thus far in that it works on the login section of my site but not if one clicks registration.


Appreciate any assistance.

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 5:35 pm
by cfotoceo
To get the FB option in the registration section of your site, you need to do the following. I am not a coder so if my code is missing something around the text let me know. It does work though.

K: On your development board, your option to use FB in the registration section is not working. You need to use the same code you use for the Login section. Your two code lines are different. If there is a reason for that let me know but your's does not work on your board.

In styles open ucp_register.html


Find:

Code: Select all

<dl><dd><strong>{L_REG_COND}</strong></dd></dl>
           <!-- ENDIF -->

Code: Select all

Add After:

If you have a facebook account and you would like to use the account with this site please use the register using facebook button below. 	

<br>
<br>	  
          <dd><fb:login-button size="medium" onlogin="top.location.href='http://www.itsallaboutmusic.net/fb2011/fb2011_connect.php'">Login With Facebook</fb:login-button></dd>
		
		</dl> 
	<span class="corners-bottom"><span></span></span></div>
</div>				
<div class="panel">
	<div class="inner"><span class="corners-top"><span></span></span>
	
	

			
<fieldset class="fields2">