WordPress.org

Ready to get started?Download WordPress

Forums

Juiz Social Post Sharer
[resolved] Share on a pop-up window instead of another page (8 posts)

  1. AlexiousRahl
    Member
    Posted 1 year ago #

    As the title says. I quite like the lightweight nature of your plugin, but I think it would be very important to add a small pop-up window for sharing instead of opening another page, which brings users away from the website.

    Other plugins already did this. Thanks in advance!

    http://wordpress.org/extend/plugins/juiz-social-post-sharer/

  2. Geoffrey
    Member
    Plugin Author

    Posted 1 year ago #

    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 :)
    Thanks.

    Ps : and thank you for your mail.

  3. AlexiousRahl
    Member
    Posted 1 year ago #

    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!

  4. Geoffrey
    Member
    Plugin Author

    Posted 1 year ago #

    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 ;)

  5. Sunger
    Member
    Posted 1 year ago #

    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..

    regards

  6. Geoffrey
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. HOTdesign
    Member
    Posted 12 months ago #

    anything goes
    Here is a sample http://www.funnyandhappy.com/beautiful-bacon-turtles/
    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";
    u=location.href;
    t=document.title;
    window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer', windowFeatures);
    return false;
    }
    </script>

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

  8. Geoffrey
    Member
    Plugin Author

    Posted 11 months ago #

    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 ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic