Page 18 of 41

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 5:38 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 register using the 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">

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 5:53 pm
by keitzy
I haven't hard coded this because I allow for multiple languages to be used. Anything done in an html file should use a template variable to allow for a user to add their own language file. Yeah it didn't work on my forums due an update I made and I forgot to change the to the right folder.

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 6:02 pm
by cfotoceo
So the above is correct right? Do I need to close/tag the sentence up there?

Also, a suggestion, your instructions are very detailed but when their are files with multiple </Div> or Endif statements you may want to add Find the first </Div> after the previous line...

I am still not sure I placed your code after the right <Div> and Endif.... That is the one I sent you in the PM.

To make this mod complete, I would add the registration code and provide a Register with Facebook Icon vice just the Login one.

Good stuff and super job. When will your next update come out?

Re: [ALPHA] Facebook For PhpBB

Posted: Mon Jun 13, 2011 8:52 pm
by cfotoceo
I think I found another bug, since installing this Mod, Redirects are no longer functioning.


The index redirect does not work if you login with facebook

Re: [ALPHA] Facebook For PhpBB

Posted: Tue Jun 14, 2011 7:41 pm
by JiMlondos
When i push the like button then the post shared at facebook but the picture(thumbail) is different with the post!Why is that?Any solution?

Re: [ALPHA] Facebook For PhpBB

Posted: Tue Jun 14, 2011 7:48 pm
by keitzy
JiMlondos wrote:When i push the like button then the post shared at facebook but the picture(thumbail) is different with the post!Why is that?Any solution?
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;
  }

Re: [ALPHA] Facebook For PhpBB

Posted: Tue Jun 14, 2011 7:50 pm
by cfotoceo
I know the like button is not the same as if you dropped the URL of the page you are liking into facebook (FB). When you do it direct on FB, you can choose the pic. With the like button and not just with this mod but many other like buttons, you do not get to choose the pic that shows. Also, FB is working there site yet again, now some pics do not show at all.

I am using this mod, so my thoughts are from my use of this mod but I did not create it. Hope the info was of some use.


Side bar, my bug on the redirect somehow resolved itself. I am interested in knowing if anyone else has noticed any redirect issues though.

Re: [ALPHA] Facebook For PhpBB

Posted: Tue Jun 14, 2011 7:54 pm
by JiMlondos
I did this but nothing happened :cry:
the thumbail is wrong!

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 12:33 am
by cfotoceo
I notice the Like in a topic posts not to one's news feed but their profile which means now one will see it unless they visit your profile page.

Is the Developer going to visit here a tad more often? I know RL can keep developers bust a few more tweeks of this mod and it's ready.

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 4:28 pm
by cfotoceo
ok here is anther issue, the FB code in the includes/functions.php prevents thumbnails from showing up on FB. Example: I go to a site and copy its url and share it on FB a few thumbs from that page will appear and I can choose one or none at all.

Now once you install this mod, if you have site and you share your links on FB, no thumbs will appear. It's the code in the above, I used the old file prior to this mod and thumbs showed up fine.

***Sadly, looks like this mod is near dead given the author has not been here in some time. His footer code with his name and link to his board, he has not been there in ages.

Anyone what to take a crack at looking at his functions.php code and see what is preventing the thumbs form showing on FB? If the code is not there, thumbs show just fine.

Update: It's his meta codes, not sure what the fix is but I think that is where the issue is.

Great mod just needs a few tweaks and it's done.

1. He needs to incorporate the PM he sent me along with the above posts with the ability to see the register icon on the registration page that icon should be register with and not login with. Show he needs to add that to the images folder....

2. Fix the meta code so thumbs will show.

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 5:20 pm
by keitzy
Please can you read this forum to find previous fixes to errors or problems.
I am still here and have a pulse. :D
It's only been a day or so, like I said in previous posts I am still waiting to hear back from facebook before I proceed any further.
I have 2 kids, 3 websites and a gaming clan to look after so my time spent on the Facebook For PhpBB Project is limited.
To be honest, I wish a lot of developers were as helpful or fast at replying as myself. I am very sad that you feel that I am letting the project down. I do wish I had more time to spend on it but at the moment I am playing the waiting game with Facebook developers. Feel free to donate something for my time if you feel you need some customizing to your site.

Here is the post for the og:image fix

http://www.phpbb.com/community/viewtopi ... p=13009629

Thank you for your time. Have a nice day. :D

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 5:23 pm
by keitzy
JiMlondos wrote:I did this but nothing happened :cry:
the thumbail is wrong!
Yeah give it a couple of days as the facebook crawler can take a bit to get the new info.
If still not working. Then I'll make a cache clear script to use for this exact problem.
But this is indeed a facebook error that still has not been resolved from 6 months ago.

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 5:37 pm
by cfotoceo
No I do apprecaite your help a good deal.

Code: Select all

If you have a facebook account and you would like to use the account with this site, please register using the 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>
Without the second part you get no img for the registration fix you provided above, simply need to add that to the instruciton i.e. find then add...

Not upset, I spoke to soon on the support thing, you are indeed pretty fast. My error on that. The thumbs now show up as well, whew!


Thanks for the help :) Enjoy the family, that is most important.

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 5:48 pm
by keitzy
The code is not missing your code. If you understand ho i have set the code in functions.php then you will understand that all that is needed in overall header and index_body is {FBOGMETA} & {FBLOGIN}
If your missing the button then you havent added the correct code to functions .phhp or the index_body.html.
I will not include your code at all. You have hard coded it into a template. This is a big no no because the purpose of that code is to detect if a user is registered already. And if so then show the login with facebook and if not the button will show register with facebook or connect with facebook.

I have given you the fix for the og:image meta tag. As it lives in functions.php so the link i posted is relevent.

Re: [ALPHA] Facebook For PhpBB

Posted: Thu Jun 16, 2011 5:55 pm
by cfotoceo
Your fix did not work and I rechecked my edits 5 times but then again, I may be blind. Following posts have the files you mentioned. Please tell me where I went wrong.

Also, on your board, your hard coded it as well. I garbed those two lines right off your source code.

The sentence about click here you hard added. The link in the ucp.register.htlm you hard coded as well otherwise it would not have shown on the source code page as it did.

Appreciate the look very interested to know what in those files are wrong.