zenFB Suite - Social Plugins for your zenPhoto

zenFB Suite

The zenFB suite is a host of social plug-ins based on the Facebook SDK and used for integrating your zenPhoto-based site socially with Facebook. Simple things such as adding a like button, to comment box, recent activity, site recommendations, and more.

Please keep in mind that while the Facebook SDK is stable, it is still in development, so some plug-ins may not be available for use with your zenPhoto gallery.

As there are multiple plug-ins, with many options, having the suite as a one-4-all plug-in would create quite a bit of overhead and many users may not use all plug-ins. So I will be releasing each plug-in separately.

Info, Demo, & Download
zenFB Suite - Landing Page Here

I will be using this thread as support thread for all current and future plug-ins related to the zenFB Suite of plug-ins.
«134

Comments

  • acrylian Administrator, Developer
    I guess I need to make some new entries on our extensions section..;-)

    (Just a note: The correct spelling is offcially "Zenphoto" if used in text..;-))
  • Roger, will update all of the instances I have. Not sure why I thought it was opposite.
  • acrylian Administrator, Developer
    No issue, the logo is of course "zenPHOTO" but that looks not that nice and to save unnecessary formatting work, we decided a while back its just "Zenphoto" (as we ourselves did originally not use it consequently in the past)...;-)
  • Think that's where I got it from. I remember the old logo and I was just being lazy on my formatting, lol.

    Updated all instances of it on my site. Should be good now there. Past edit time on the original post though. :(
  • acrylian Administrator, Developer
    The logo is actually still the same as ever (although I finally made some minor typographical improvements for 1.3 (spacing))

    Thanks for editing, was really not meant as urgent, just as edit on occasion...

    And I just added a news post and plugin entries about the new additions.
  • Facebook has borked something up on their end and are displaying the same info for both the "activity box" and "recommendations" plugins. The bugreport has been submitted, just a matter of time till we get an answer on it.

    I've been shuffling my domains(again, lol) but the old gallery should be pointing over to the new gallery domain.

    The new landing page located at http://inthemdl.net/pages/zenfb-suite
  • acrylian Administrator, Developer
    Thanks for the notes about the domain. Maybe you could decide which one you finally use before I change all entries again..;-) (the individual plugins link directly).

    EDIT: Alright, I see you have setup redirections to them all.
  • Yah, this should be the last change. And planned the redirect just for you :P
  • Jaanus Member
    I said it elsewhere and now also here: links to the zip files are not correct in the landing page! Correct link is without /zen folder in address, for exemple zenFBComments:
    http://inthemdl.net/uploaded/zenFBComments-v0.1.zip

    Please make needed corrections on your site for not to confuse users!
  • Jaanus Member
    But here is another idea - could this zenFBComments be changed so that the comments would also be inserted into zenphoto database?
  • Thanks Janus, I'll fix those, thought I had already. As far as the comments plugin goes. I can take a look at that, may be a while though. Been busy with some work stuff.

    Edit: Links are updated.

    Landing Page
  • erb Member
    Thanks for a great suite of plugins.

    I cannot get the 'like' button to show though.

    This is what I did:
    1. I uploaded zenFBLike.php into the plugin folder (not in its own folder).
    2. I activated the plugin
    3. I tried adding <?php if (function_exists('zenFBLike')) { zenFBLike(); } ?> in various places on the album.php page - without success
    3. I then tried adding <?php if (function_exists('zenFBLike')) { zenFBLike(); } ?> in a page where I have place a similar script from another plugin that worked (on the image.php page) - without success

    Please advise - thanks
  • Can you link me to the page you currently have it in so I can take a look at source code and make sure things are loading properly?
  • erb Member
    Thank you for your prompt reply.

    http://www.erbphotos.co.za/north-coast-boardriders-compo-19-june-2010/ncb190610_12.jpg.php

    I would prefer to have it on the album page though, as you have it on your website :)
  • Ok, I can see that the plugin is active as it's added the og:meta tags. Where in the page do you have your zenFBLike call being made? Could you pastebin your image.php for me to take a gander at? Or you can post it here, but if you do it here wrap it with ` ` tags.
  • erb Member
    As stated I would prefer to have it on the album page. Could you paste your code here so I could try that? In the mean time here is my code :)

    `

    <?php if (getOption('show_meta')) { ?>

    <?php echo gettext('Image Meta Data'); ?>



    <?php printImageMetadata( "",false,"exif","",true,"",true ); ?>



    <?php } ?>

    <?php if (function_exists('printRating')) { ?>



    <?php printRating(); ?>





    <?php } ?>

    :

    <?php if (function_exists('zenFBLike')) zenFBLike(); ?>

    <?php if ((function_exists('printCommentForm')) && (openedForComments()) ) { ?>

    <?php echo gettext('Comments'); ?> (<?php echo getCommentCount(); ?>)

    <?php } ?>

    <?php if ((function_exists('printCommentForm')) && (openedForComments()) ) { ?>



    <?php printCommentForm(); ?>



    <?php } ?>

    <?php include("footer.php"); ?>

    ```

  • @erb:

    It appears that it should be called properly. Could you do me a favor? Just a shot in the dark, try changing that first letter from € to E or something... I'm wondering if the special characters are what's causing the problem. If so I'll go from there.

    Also, could you provide your server info? php version etc.
  • erb Member
    @Micheall I tried to change the € to E without success :(

    Server info as follows:

    Platform Type:
    Debian
    MySQL Version:
    boscustsqlm08
    Perl Version:
    5.8.8
    PHP Version:
    5.2.12
  • erb, will you email me your image.php as an attachment? I want to test it on my site. I'm wondering if your site doesn't have curl enabled or something similar that may be necessary...

    send to micheall (at) michealmalone.com
  • @erb
    Alright, just as I suspected it worked correctly here, so there's got to be something that your hosting provider is blocking with the server config. You can see your image page in action here on my devsite.

    I'll take a look and see if I can find a work around for it, but my guess is that your host blocks outbound request via curl etc and that is stuffing the plugins up.

    The way the plugins work is that the javascript is loaded, then when a call is made, it pings facebook for their content, which then generates a dynamic iframe. So something in that process is being blocked.

    Edit:
    You should also contact your host and see if this is something that can be enabled.
  • My site will have a nominal downtime as I transition from a shared hosting package to a new VPS host. Will update this thread once things are back in running order.
  • Hey guys and/or gals,

    I've transferred VPS and everything appears to be operational as planned with no interruption in service. However, as we all know, sometimes sneaky bugs happen when you attempt full site migrations. I changed from a shared hosting to a dedicated VPS, domain and everything stayed the same.

    If you run into any errors on the site, please let me know!
  • hi,

    i just downloaded your zenFBLike plugin. it worked right away. I have just a remark, looks like you add a "fb-root" div but you close it immediately. Would it not be more accurate to close it after all the FB scripts (i guess it was intended this way but i am certainly wrong)? Anyway, thanks for the plugin.

    frank.

    ps: sorry for the double post. i didn't pay attention to your last comment in the other thread.
  • having another look at the zenFBLike plugin, i noticed that the 'show_faces' option is not taken into account. so it is always set to true.

    and looks like the 'layout' option has been left on the side too.

    also no matter if someone liked the page or not, i still get the 'Be the first of your friends to like this' message. how do you get the 'N people like this' message like on your zenFBLike page ? thanks for your help.

    frank
  • acrylian Administrator, Developer
    I think this plugin suite was made before that was introduced (well, I am not using Facebook so...)
  • well the options are there in the plugin interface, it's just that nothing is really done with them. i think this piece of code
    `
    if ($layout == 1) {
    $zenFBLike_html .= ' layout="button_count"';
    }
    if ($faces == 1) {
    $zenFBLike_html .= ' show_faces="false"';
    }
    `
    should be added in zenFBLike function right after the `$zenFBLike_html .= '<fb:like href="' . $url .'"';` line. but the plugin's author should definitively cross-check this because i am not a facebook expert.
  • Hey frankm,

    Sorry for the late reply, real life has been hectic. Changing from a night job to a day-time government job... whew what a change. I'll take a look and get back to you right away.
  • zenFBLike update -

    v0.1.2

    * bugfix to zenFBLike html output to incorporate all options. It appears the initial save I had made with this was not uploaded properly. (Thanks to FrankM in the support thread for pointing out the oversight!)
    * addition of the "Box Count" option for layout giving another layout style for the likebutton.

    Info, download, demo HERE
  • Hello again!

    After dusting off the old keyboard and taking a look at the changes to Zenphoto, I realized it was time to do some updates to the zenFBSuite of plugins.

    Notable changes:
    * Update to plug-in version numbering. Plug-in versions will now reflect the version of Zenphoto the plug-in was tested with.
    * Change to meta key loading to migrate from old addpluginscript method to Zenphoto's new zp_register_filter 'theme_head' section.
    * Better commenting of code.
    *Requirement to register for a facebook app_id.

    While I tried to avoid this last bullet, Facebook has made changes to their plug-in api that will require it in the future. I figured now is as good a time as any to require it instead of you losing functionality later down the road.

    I have posted step-by-step instructions on how to create your app_id for use with the plug-ins.

    For information, demos, and download of the suite of plugins, please visit this link.
  • "Show Faces" doesn't show in Like;

    Hi, I'm on Zenphoto 1.3.1 [5736] and the v1.3.1.2-6100 plugin suite; could this have any bearing on why the faces don't show? (plugin option is turned on). I will upgrade only if you say it matters.

    Also I don't know how to get the Activity plugin to display custom inline thumbnails (it displays stock thumbnails for .mp4.php terminated links); how did you do it on your own site?

    You can see the above behaviors here:
    http://www.radikal.ro/gallery/video-production/cupa-liceelor-la-street-dance-2010/101012-CLSD2010-promo-30s.mp4.php

    thanks.
Sign In or Register to comment.