Some Facebook modules I've made
CptGamma
Joined: 2011-04-17
Posts: 1 |
![]() |
|||
Hi. Installation - Just copy and activate. Note from moderator: See http://gallery.menalto.com/forum_module_facebook_comment#comment-386343 for a updated facebook comment module.
|
||||
Kevin Logan
![]()
Joined: 2006-07-06
Posts: 51 |
![]() |
|||
Well done. Works perfectly. I find for the FB social plugin (not your work) to work in IE, one needs to add xmlns:fb="http://www.facebook.com/2008/fbml" in the header so that the HTML XMLNS tag reads as: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en"> Well done again & thanks, |
||||
westd05
Joined: 2011-05-10
Posts: 1 |
![]() |
|||
Hi, thanks for creating and sharing the module! It works great! |
||||
technotim
![]()
Joined: 2011-06-01
Posts: 2 |
![]() |
|||
this is awesome, thank you so much. Any way to easily add code to align center, rather than left? I would like the comment box to be centered at the bottom of the page. I already figured out how to make it black (which matches my theme better) To make it black (or any other color) change this: change the color in this line: <fb:comments style="background:black" href="<?=url::abs_current()?>" num_posts="<?= as you can see i made mine black to go better with my theme, now if I could only get it centered... |
||||
undagiga
Joined: 2010-11-26
Posts: 693 |
![]() |
|||
technotim wrote:
Any way to easily add code to align center, rather than left? I would like the comment box to be centered at the bottom of the page. This is an issue with all the various facebook models. I haven't tried so much with this one but I have tried with Dave's module. The problem seems to be that it's in its own iframe, so you can't just use CSS to change its appearance. In theory Javascript is an option, but as it's an iframe from another domain I have a suspicion that the security model in most browsers won't let you tamper with an iframe from another domain. If I find a solution I'll let you know. U-G |
||||
splunck
Joined: 2011-06-03
Posts: 8 |
![]() |
|||
How do I remove the post to facebook option? |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
Hi, absolute love this, however, I'm bumping into two things: 1: under each image I get a warning message "<url to image> is unreachable". 2: when the check 'post to facebook' is on, the comments only appear on my wall, not in my newsfeed would you have any idea on how to fix this? kind regards, *edit* - this appears to be something with the Facebook plug-in, nothing wrong with your code |
||||
technotim
![]()
Joined: 2011-06-01
Posts: 2 |
![]() |
|||
Thanks for the reply. One more question. Is there a way to block everything but the name? Right now when people post comments, it says John Doe CEO of Some Company. I just want "John Doe" Thanks! |
||||
undagiga
Joined: 2010-11-26
Posts: 693 |
![]() |
|||
I think the answer is the same - you can format the DIV etc that Gallery3 houses the FB code in, but I don't think that you can format or change the content inside it, for the above reasons. There seem to be a number of these FB like/recommend snippets that you can grab, and I was wondering if they have a variant that is centred differently, or if there's a centring parameter that you can send when you call the snippet. I have it a long way down my to-do list to go looking for such a thing for Dave's FB like module. You could try looking for such a thing for John Doe - but I don't like your chances. |
||||
tlq123
Joined: 2011-05-30
Posts: 1 |
![]() |
|||
thanks for sharing. |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
@ technotim: maybe this can steer you in the right direction: http://www.daddydesign.com/wordpress/how-to-customize-the-facebook-comments-social-plugin-on-a-static-fbml-tab/ |
||||
bryan145
Joined: 2010-10-24
Posts: 83 |
![]() |
|||
I love this plugin however I've run into something also, and this only happens in Win7 and IE9. When I view the resized image (the view where the comment box is supposed to appear) within an IFRAME, the comment box disappears. When I view the same resized image directly (bypassing the IFRAME) it's there. You can view the differences here: IFRAME - http://www.allianceqt.com/htm/gallery.htm I suspect this could be a security issue within Win7 and IE9 which is preventing it from being displayed. |
||||
kevinogrady
![]()
Joined: 2008-12-05
Posts: 2 |
![]() |
|||
The plugin posts a Twitter thumbnail image to Facebook instead of the image that is being commented on. Has anyone had the same experience? Is there a fix out there for this? AHONU |
||||
drAstronomus
Joined: 2011-04-02
Posts: 9 |
![]() |
|||
Well done. Please add the Comments notify and akismet support for this plugin |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
drAstronomus wrote:
Please add the Comments notify add the facebook code |
||||
drAstronomus
Joined: 2011-04-02
Posts: 9 |
![]() |
|||
I add this code to the 'themes/wind/views/page.html' file, but i dont see any changes |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
okay, here's what the first few lines of my page looks like: <?php defined("SYSPATH") or die("No direct script access.") ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?= $theme->html_attributes() ?> xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta property="fb:admins" content="699406016"/> <meta property="fb:app_id" content="229817163696672"/> <? $theme->start_combining("script,css") ?> <title>
line 7 = my user ID. You have to use the numeric id, not a name when you have added those two meta properties you'll have access to the moderation tool (http://developers.facebook.com/tools/comments) I hope I explained it clearly enough, I know I had quite a search figuring it all out myself edit: almost forgot: <?php defined("SYSPATH") or die("No direct script access."); ?> <div id="fb-root"></div> <script src="http://connect.facebook.net/en_US/all.js#appId=229817163696672&xfbml=1"></script> <fb:comments style="background:white" href="<?=url::abs_current()?>" num_posts="<?= module::get_var("facebook_comment", "num_posts",2); ?>" width="<?= module::get_var("facebook_comment", "width",650); ?>"></fb:comments>
where in |
||||
kevinogrady
![]()
Joined: 2008-12-05
Posts: 2 |
![]() |
|||
When a user makes a comment with the "Post to FaceBook" option checked, the plugin posts a Twitter thumbnail image to Facebook instead of the image that is being commented on. Has anyone else had the same experience or is it just me? I could not make the above suggestions work either. Help? AHONU |
||||
drAstronomus
Joined: 2011-04-02
Posts: 9 |
![]() |
|||
Thank you very much |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
you're welcome, I hope it works |
||||
grishkin
Joined: 2006-10-27
Posts: 23 |
![]() |
|||
splunck wrote:
How do I remove the post to facebook option? Any update on how to uninstall this plug in? Unckecking the checkbox does not do it. |
||||
grishkin
Joined: 2006-10-27
Posts: 23 |
![]() |
|||
grishkin wrote:
Setting `active` to 0 in `g3_modules` where `name` = 'facebook_comment' did the trick. I'd also recommend adding a record to `g3_logs` with `message` = 'Deactivated module facebook_comment' similar to the one you have for `message` = 'Activated module facebook_comment'. |
||||
Amalaswinta
Joined: 2011-06-06
Posts: 67 |
![]() |
|||
weird that unchecking didn't work... |
||||
Jopho
Joined: 2010-11-27
Posts: 15 |
![]() |
|||
grishkin wrote:
Setting `active` to 0 in `g3_modules` where `name` = 'facebook_comment' did the trick. I'd also recommend adding a record to `g3_logs` with `message` = 'Deactivated module facebook_comment' similar to the one you have for `message` = 'Activated module facebook_comment'. Hope this isn't a dumb question, but where do I find 'g3_modules' and 'facebook_comment'. Is this under Advanced settings in Admin, or in the database ? I'm having the same problem - module won't deactivate by unchecking box in module section of Admin. |
||||
kristfin
Joined: 2010-12-02
Posts: 11 |
![]() |
|||
i was just installing this on my site. do you know if i can force facebook to use the main picture and ignore the random picture box. i really like the random picture box so I don't want to discard it. |
||||
kristfin
Joined: 2010-12-02
Posts: 11 |
![]() |
|||
after googling around, i found some mentions around setting the since i'm not much of a php person i'm not really sure how to set it. any ideas? |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
The attachment should fix that. Dave |
||||
kristfin
Joined: 2010-12-02
Posts: 11 |
![]() |
|||
just when i return triumphantly to say that i had it solved, you had of course done it. Quote:
echo '<meta property="og:image" content="'.$item->thumb_url(true).'"/>'."\n\r"; your solution is of course much better. setting the og:image, og:title, og:type and og:url anyway. i re-installed the facebook_admin and your facebook_comment and it works like a charm. thanks |
||||
jaesflo
Joined: 2006-05-09
Posts: 45 |
![]() |
|||
Very Good, I want to change it to Spanish, How http://www.todoarequipa.com /fotitos |
||||
abhijitkn
Joined: 2011-11-10
Posts: 13 |
![]() |
|||
Hi, In 3nids theme I can not see the Facebook comments button in the resized window. Any suggestions? |
||||
petri
![]()
Joined: 2005-12-15
Posts: 253 |
![]() |
|||
This is a GREAT module ! Thank you so much ! It works great as well ! I think one thing is missing : it's the title of the module (Facebook Comments) that should be displayed in the g-block h2 title.. Does anyone know how I can set this ? |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Two ways that I can think of to do this: $view = new View("facebook_comment.html"); $block->content = $view; return $block; to $view = new View("facebook_comment.html"); $block->title = t("Facebook comments"); $block->content = $view; return $block; or you can edit the view with standard HTML adding the H tags and the title and if you want it translatable use the t() function as used in other modules. Dave _____________________________________________ |
||||
petri
![]()
Joined: 2005-12-15
Posts: 253 |
![]() |
|||
Thank you Dave the first solution works fine. Will you add it yourself in any update you might have with this module ? oups...sorry, did not see that you did note develop these... |
||||
giovanisp
Joined: 2011-12-28
Posts: 3 |
![]() |
|||
Hi, I was wondering if there's any module for Gallery 3 that allows facebook/googleplus/twitter authentication and then shows albums only to those in the gallery's owner friends list... any guesses? |
||||
Chasden
Joined: 2012-01-02
Posts: 51 |
![]() |
|||
Hi, This has been working perfectly for me until yesterday for some reason. On many of my pages, i get an error message in the comment box "Warning: http://rashadface.com/index.php/MMA-Shoops/Hendo-Bisping-Mortal-Kombat-Finish-Him is unreachable." On other pages, i get no such error, but there is no link to moderate comments anymore. Still on other pages (usually older pages), there are no errors and the moderation tools are there. When i send ANY of my URLs to the debugger, whether they have an error message or not, i get this (different URLs every time, obviously): Response Code 500 Critical Errors That Must Be Fixed Open Graph Warnings That Should Be Fixed Object Properties What do i have to do to get this working again? |
||||
CC Roi
Joined: 2008-08-05
Posts: 24 |
![]() |
|||
I'm using this module and I really like it. But for some reasons there should not be a comment box if the album is not accessible to everybody but also registered users (of certain groups). Also there should not be a comment box if a certain element is hidden by the "hide" plugin. Right now everybody can bring pictures out to Facebook, even if they are protected or hidden. |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Quote:
even if they are protected I don't thing that images can be see if the permissions are properly set. The hide module is just that 'hide' not permissions. IMO the any facebook content should not be shown to anybody unless the content can be seen by a guest. Dave |
||||
CC Roi
Joined: 2008-08-05
Posts: 24 |
![]() |
|||
As I wrote in the Facebook like thread: I did not test with actual protected pictures, but commenting on hidden pictures showed them on Facebook. Even if Facebook is not able to drag protected pictures from the gallery, the Facebook elements should not be there as using them on protected content does not make much sense. |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
CC Roi wrote:
even if they are protected or hidden. CC Roi wrote:
I did not test with actual protected pictures Please in the future be clear so we don't get confused or jump to conclusions. I agree that any facebook content should not be shown to anybody unless the content can be seen by a guest. Dave _____________________________________________ |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Updated the module to give the block a title. Dave |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
The other option is to do some CSS tricks. Dave |
||||
SkipR
![]()
Joined: 2012-01-23
Posts: 3 |
![]() |
|||
CptGamma wrote:
... 2 tiny modules about Facebook integration: Where is the link to Facebook_admins code download is it in Facebook_comments download? Exactly what can you do with the comments? Could you give a simple example of what benefit you get when you use facebook_admins. A screen shot maybe ? |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
CptGamma posted one post 2011-04-17 14:28 and nothing since. Dave |
||||
SkipR
![]()
Joined: 2012-01-23
Posts: 3 |
![]() |
|||
Hi Dave, The info for http://codex.gallery2.org/Gallery3:Modules:facebook_admins lead me here. There is a link to http://gallery.menalto.com/files/facebook_admins.zip on the page but it fails. Just an observation your name is in page history. Maybe CptGamma will attach it I'll send him a PM. |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Your name is in the page history as well. At least you know what it is supposed to be. Dave |
||||
CC Roi
Joined: 2008-08-05
Posts: 24 |
![]() |
|||
floridave wrote:
Updated the module to give the block a title. I just installed and tried the new version. Works for me if the album is not visible by guests. Thank you! Cheers, /EDIT: It still shows if the picture is hidden by the hide module - but I did understand that it is not easy to change and there will be changes to the permissions in Gallery 3.1 anyway. |
||||
Dogen
Joined: 2012-01-09
Posts: 10 |
![]() |
|||
Hello friends, Thank You! |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Dogen, Dave |
||||
fryfrog
Joined: 2002-10-30
Posts: 3236 |
![]() |
|||
I've improved the facebook_comment module in a few ways. I added the ability to pick between the light and dark color schemes and added fields for both your own appId and your Facebook numeric user id so that you can moderate your comments. Edit: Oops, didn't realize floridave was working on this module at the same time. I've re-incorporated his changes into my changes. _________________________________ |
||||
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
|||
Thanks fryfrog, Dave |
||||
fryfrog
Joined: 2002-10-30
Posts: 3236 |
![]() |
|||
And this is probably it from me for this module: I fixed the uninstall / deactivate issue. It didn't seem that there was any need for the uninstall routine, so I just made the file blank. Deleting it works too, but of course anyone with the module existing already would have to remember to do it... so the one in this zip files is just a single line. I also added a check box toggle to show the comments on albums and/or photos, in case you wanted in multiple locations (kind of like floridave's like button module) |
||||