Using the FBLike plugin

I been having questions about how to position the FB like button for a while and decided that instead of telling everyone how to position the button I could write a post on the subject instead.

I made this plugin to be as simple and flexible as posible. in order to do that what I do whenever I use it on a website is to use css or some javascript to position the button wherever i want it to be.

CSS based example, suppose the button has the id


#button-container-id { position:absolue; top: 20em; left: 30%; }

or if using javascript and jquery


$(function(){
    var placeholder = $('#button-placeholder-id').offset();
    if( placeholder ) {
        $('#button-container-id').css({
                position: 'absolute',
                top:placeholder.top,
                left:placeholder.left
        });
    }
});

in the js snippet you are supposed to have a placeholder div with an id that is positioned wherever you want the button to appear

About Esteban Soler

mi nombre es Esteban Soler, vivo en Mar del Plata, una ciudad costera en Argentina. Tengo 31 años y hace mas de 7 que me dedico al desarrollo de aplicaciones y sitios web. En general intento aplicar soluciones utilizando software libre solamente.

2 comments on “Using the FBLike plugin

  1. from where did you get the plugins anyway? is that supporting joomla 1.6? :D

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>