Support » Plugin: Juiz Social Post Sharer » Share on a pop-up window instead of another page

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Geoffrey Crofte


    Yes, it’s right, other plugins did this, but other plugins are not lightweight 🙂

    It’s a choice for me to propose this lightweight plugin.
    Other developements are coming, and some options will be added (like popup, like counter, etc.)

    Be patient, I work for free, don’t forget it 🙂

    Ps : and thank you for your mail.

    Yes, of course.

    So, you are saying that adding pop-up window means that the plugin will not be so lightweight anymore? I hope not.

    But thanks again!

    Plugin Author Geoffrey Crofte


    Yes it’s my words.

    Adding a pop-up windows significate that I need to add a JS file (not existing actually), to load an iframe of the third party service (ie. Facebook) and some complementary CSS rules.

    But it could be an option 😉

    hi, that’s an easy trick, as you just need a quick JS fonction and update your href to send width height and location, as it’s a window containing a window, a specific css is not that needed..


    Plugin Author Geoffrey Crofte


    Hi Sunger,

    I know how to do this feature, I just don’t have time to do it right now.
    And you need specific rules of CSS to position and to style elements.

    If you need it quickly, the plugin can be hooked and improved;)

    Thank you.

    anything goes
    Here is a sample
    Add to Juiz-social-post-sharer.php. Add before <? Php

    <script type="text/javascript">
    function fbs_click(width, height) {
    var leftPosition, topPosition;
    leftPosition = (window.screen.width / 2) - ((width / 2) + 10);
    topPosition = (window.screen.height / 2) - ((height / 2) + 50);
    var windowFeatures = "status=no,height=" + height + ",width=" + width + ",resizable=no,left=" + leftPosition + ",top=" + topPosition + ",screenX=" + leftPosition + ",screenY=" + topPosition + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";
    t=document.title;''+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer', windowFeatures);
    return false;

    and add the line: 91 (// classes and attributes options)
    for code target = “_blank” insert onClick=”return fbs_click(626, 305)”

    Plugin Author Geoffrey Crofte


    Hi HOTdesign,

    Your code is not a good code.
    By using OnClick attribute, you don’t respect the principle of non-obtrusive javascript.

    Moreover, this kind of popup doesn’t work on every browsers, I advise you waiting for the next update 🙂

    Thank you for sharing your tip 😉

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Share on a pop-up window instead of another page’ is closed to new replies.