Share url show only the absolute path
  • Hello there,

    I converted the prettySociable script into a joomla plug-in and it works all most fluently. But I still have one problem. If I share a link, E.g. http://www.ccvitaal.nl/clients/kaperjager/index.php/archief/164-test, The plugin generates the following code on Facebook. "http://www.facebook.com/clients/karperjager/index.php/archief/164-test"

    And on twitter only "/clients/karperjager/index.php/archief/164-test".

    The site runs on a test server. But the url is: http://www.ccvitaal.nl/clients/karperjager

    I really hope dat some one has an idea.

    My used code is:

    PS I used the "$image_link" because of the fact that the picture weren't shown.

    Thx in Advanced.

    [Code]var \$j = jQuery.noConflict();


    var whatever = "$image_link";

    ......
    .............

    \$j(".moduletable_menu a").removeAttr("rel");

    var l = window.location;
    var base_url = l.protocol + "//" + l.host + "/" + l.pathname.split('/')[0];
    var img_url = base_url + "clients/karperjager/plugins/content/BestSociaal/images/prettySociable/large_icons";




    \$j.prettySociable({



    websites: {

    facebook : {
    'active': true,
    'encode':true, // If sharing is not working, try to turn to false
    'title': 'Facebook',
    'url': 'http://www.facebook.com/share.php?u=',
    'icon': whatever+'facebook.png',
    'sizes':{'width':70,'height':70}
    },

    twitter : {
    'active': true,
    'encode':true, // If sharing is not working, try to turn to false
    'title': 'Twitter',
    'url': 'http://twitter.com/home?status=',
    'icon': whatever+'twitter.png',
    'sizes':{'width':70,'height':70}
    },


    linkedin : {
    'active': true,
    'encode':true, // If sharing is not working, try to turn to false
    'title': 'LinkedIn',
    'url': 'http://www.linkedin.com/shareArticle?mini=true&ro=true&url=',
    'icon': whatever+'linkedin.png',
    'sizes':{'width':70,'height':70}
    },
    reddit : {
    'active': true,
    'encode':true, // If sharing is not working, try to turn to false
    'title': 'Reddit',
    'url': 'http://reddit.com/submit?url=',
    'icon': whatever+'reddit.png',
    'sizes':{'width':70,'height':70}
    },

    }
    });




    });

    console.log(whatever);
    EOD;
    [End code]

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter