zenFBLike - Facebook Like Buttons for zP

zenFBLike Plug-in

zenFBLike is the first step to full XFBML integration of zenPhoto. This plug-in is designed to allow easy installation (via template calls) of the Facebook Like button for your social minded gallery viewers. It is accomplished by loading Facebook's Javascript SDK allowing parsing of XFBML for social site integration.

Changelog

v0.1
Plug-in creation.

* Adds functionality of Like buttons via template calls.
* All currently configurable variables for the Like Button are configured in the plug-in settings under admin interface.

Installation

1. Installation is similar to other plugins. Uncompress zenFBLike.zip and upload to your root "/plugins" directory, `not` the "zp-core/zp-extensions" directory.
2. Login to your administration settings.
3. Activate plugin from the "plugins" tab.
4. Set your options from the Options -> Plugins -> zenFBLike
5. Place the function call on whichever theme page you want to access it by:

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

Support

Support can be reached via the zenPhoto Support forums in the thread listed below, or via the zenFBLike application page listed below.

zenFBLike Application: Linked Here.

Support Thread: Linked Here.

Donate

If you enjoy this plugin and find it useful, donate to myself, the zenphoto developers, or the zenphoto project! Open source only survives if you help it!

Download

v0.1

http://www.michealluttrull.com/zen/uploaded/zenFBLike-v0.1.zip

Info & Download Page
http://www.michealluttrull.com/zen/pages/zenfblike
«1

Comments

  • acrylian Administrator, Developer
    Could you maybe make a page for this like for zentwitter? If not you should at least include a read me file I think.
    Anyway, a page be better to link to (and improves your site's seo, too..;-)) instead of this thread.

    Update: Just saw that you have already one but hidden in the plugin itself..;-) Therefore, consider the plugin entry added.

    Update2: You have a small error in your doc: Installation is similar to other plugins. Uncompress zenFBLike.zip and upload to your root "/plugins" directory, not the "zp-core/plugins" directory.
    There is no "zp-core/plugins" but a "zp-core/zp-extensions" folder. Just to note.
  • I knew I forgot to link to something... will edit the initial announcement.

    Edit: good catch, was going from memory which appears to be a bit shaky after taking the time off, lol.
  • acrylian Administrator, Developer
    Happens..;-)
  • For those interested you can see the Like button in action on my Pages, news articles, as well as image.php pages.
  • gcohn2 Member
    i am extra noobie. I downloaded the fblike zip file.. unzipped it and put the folder in my plugins folder, but it doesn't show up in the admin-->plugins section. There's lots of other plugins, but not this one.. I tried it with your twitter plugin and didn't see that either. Is there some other step I'm missing to have ZP find this new plugin?

    p.s. sorry if its dumb question
  • Sorry, it's my instructions that might be the problem. The only thing you'll be putting in the plugins folder is the zenFBLike.php there shouldn't be a folder or anything to upload there. I'll recheck my archive to make sure I didn't include a random folder.
  • acrylian Administrator, Developer
    Well, since your plugins are just single files, just writing to upload the file itself to the plugins folder should probably be clear.

    @gcohn2: Zenphoto plugins are never in a folder. But the plugin file can have a accompaning extra folder that contains additional files like graphics, extra functions or such (like the Flowplayer3 plugin).
  • gcohn2 Member
    thanks micheall and acrylian.. Yeah.. i put the whole folder in there.. i'll take the php out of it and see what happens.
  • gcohn2 Member
    ok.. getting closer.. now i got the plugin to show up on the plugin page.. activated it.. i just am not totally clear on where i paste:

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

    if i want the like thing to show up in all of my albums.

    one other thing.. the link on your page for the download:

    http://www.michealluttrull.com/zen/uploaded/zenFBLike-v0.1.zip

    actually points to your twitter app.. i did figure out that i could just paste the above into the address bar and download the right thing though..i'm not totally helpless.

    thanks again.
  • acrylian Administrator, Developer
    You have that to paste it to your theme's album.php then. Where exactly there depends on where you want it to appear and on the theme of course.
  • Updated the download page, must have gotten the links mashed up as I was releasing the zenTwitter update too. And yes as acrylian said you put the template call where you want it to show up. So if you wanted it on all your album pages you'd put it on the album.php page wherever you'd like it to show up.
  • gcohn2 Member
    Ok.. now i'm really close. maybe its just my dumb site... i see the button.. i try to like it.. then i get 'error' and if i click error.. i get a popup window from facebook saying

    The page at http://gabecohn.com/photos/zenphoto-1.2.9/zenphoto/2010-05_f+s/ could not be reached.

    the weird thing is that it worked on the first album.. but then didn't work after that.. you are welcome to go to my site (above) and try to like something.. i really like the idea. does it then show up on my fb page? as something i liked? micheall...would u rather i email you so as to not clog up this forum? this is the first time i've ever written in a forum so i'm sure i'm screwing up all the ettiquette
  • acrylian Administrator, Developer
    Discussing this here is absolutly okay.
  • No writing here will be best as other users might run into the same issues you did and will allow them to find the answers. I see that your second album is having issues, but the first album and then the 2010-05_366_GB_Flowers album didn't have any issues.

    I'll take a look to see if perhaps it's a character issue.

    Edit:
    @gcohn2
    Could you try removing the + sign from your album name? I'm interested to see if that's the character causing the problem.
  • gcohn2 Member
    right you were i renamed it and got rid of the "+" and now it works... so is this supposed to post to my fb wall? cause i don't see it there. or is that a later version?
  • It should post to your facebook wall if you add a comment to the Like as well. Facebook appears to be having some issues with their CDN as well. It has been up & down the last few days with the huge influx of data it's been receiving based on the popularity of all the new like buttons hammering across the web. Try hitting the like button and adding a comment you should see a post to your wall as when you do a url share from the status update.
  • gcohn2 Member
    i don't see how to add a comment to the like. i only see how to like... adding a comment and/or sharing would be great. am i just missing something?
  • It should pop up a small "Add comment" when you click like. It did when I was checking your gallery. Click the like button and tell me your result.

    As a side note: my server node seems to have gone down so we may experience issues for a few moments while they bring it back up as facebook seems to complain when it doesn't have an application home.
  • gcohn2 Member
    very strange.. i don't get that 'add comment' popup.. i've tried in chrome and mozilla.. any other ideas why i'm not seeing it?
  • It might be related to my site being down as the application's home page.
  • gcohn2 Member
    o ok.. well i'll stop harassing you as it seems you have bigger fish to fry. i'll see if it works tomorrow. thanks for the cool. plugin.... i bet it will be popular.
  • Not harassment, don't worry :P

    http://www.facebook.com/apps/application.php?id=126578374030382

    That's the application profile. Keep an eye on that, I'll update it when the server issues are resolved. Sadly this means nobody can download the plug-in currently.
  • Servers are back up, however the comment form that pops up normally still isn't. I'll look into it but I think it's related to the Facebook CDN having issues. Let me know if you come across any other issues.

    Edit:
    Ah they modified it a bit. It's not an automatic popup anymore. If you hover your mouse over the like button you should get the comment form.

    Edit2:
    And it appears the comment box only pops up for a short while after liking the page. If you hover over the like button and nothing happens click it to "unlike", then click again hovering your mouse over the button for the comment post.
  • gcohn2 Member
    yeah.. still not seeing it.. when i hover over it just says that i like it.. even if i like and then unlike etc... i tried it on your site and it works fine.. but not my site.. let me know if you have any ideas
  • @gcohn2
    Could you get me a list of all plugins you currently have active? I'll work on figuring out why the comment box doesn't pop up for you.

    As it stands now, Facebook has worked out a lot of their CDN issues. When you "like" something now, it shows up on your facebook profile page under recent activity. It won't post to the wall unless you add a comment. As seen in this snap:
    http://michealluttrull.com/wp-content/uploads/2010/06/likesrecentact.jpg

    As an additional note, I've worked out how to get the majority of the rest of Facebook's social plug-ins working. So expect an update on the plug-in soon.
  • Just a quick update, my server was having a DNS failover and has since had it's dns servers replaced so access should be back to normal. Sorry for the inconvenience all.
  • g0d Member
    Micheall good day I download the plugin zenFBLike placing it in the plugins folder, then select from the administrator panel and the plugin is active .. now the problem is as follows .. I put this php code: <? php if (function_exists ('zenFBLike')) (zenFBLike ();)> in the file zenFBLike album.php but not listed? would you be so kind as to explain because I can not see the plugin in the albums?

    PD: Sorry for my bad English.

    Thanks, and sorry for the inconvenience.
  • Make sure thta the zenFBLike.php is not in a folder, should be just the file under plugins folder. Also a link to your site maybe so I can take a look?
  • g0d Member
    Hi sorry but I need a button that says SHARED to facebook .. and have the user: gcohn2 url: http://gabecohn.com/photos/zenphoto-1.2.9/zenphoto/2010-05_sasih/Fasarah Wedding Weekend/ need that for my photo gallery. someone could help me?

    Thank you.
  • gcohn2 Member
    @micheall-- the plugins i've got are:class-video
    comment_form
    filter-zenphoto_seo
    flowplayer3
    flowplayer3_playlist
    jcarousel_thumb_nav
    print_album_menu
    rating
    slideshow
    viewer_size_image
    zenFBLike

    i could start disabling 1 at a time to figure out which one if it is helpful.

    @g0d- I found this link:http://www.facebook.com/facebook-widgets/share.php

    .. just copied that code (without changing any of the options) into my album.php and image.php page. i am just a beginner, so this probably isn't the best way to do it, but it seems to be working
Sign In or Register to comment.