1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Plugin Modifcation - Easy For Someone That Knows What They Are Doing

Discussion in 'Hire a Freelancer' started by MatthewWoodward, Feb 5, 2013.

  1. MatthewWoodward

    MatthewWoodward Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 31, 2012
    Messages:
    992
    Likes Received:
    1,681
    Occupation:
    SEO
    Location:
    UK
    Home Page:
    Hi Guys,

    I use this plugin http://codecanyon.net/item/viral-lock-like-google1-or-tweet-to-unlock/1486602 and want 2 modifications making to it.


    Job #1 - Add Linked In Support

    This should be fairly easy to do, here is the current code that is used to register if the page was Tweeted for example-

    Code:
    twttr.ready(function (twttr) {
                        twttr.events.bind("tweet", function(event) {
                            var data = {post: "'.get_the_ID().'", action: "sociallocker", network: "twitter"};
                            jQuery.post("'.admin_url('admin-ajax.php').'", data, function(response) {
                                if (sociallocker_use) location.reload();
    
    So the same functions it currently supports for Twitter, Google+ & Facebook but add LinkedIn as an option as well.

    Job #2 - Caching Support

    As it stands the plugin does not working with caching plugins like W3 Total Cache or the properitory caching system of WPEngine.

    The plugin must work with these systems.

    I have spoke to the WPEngine technical team who have given me 2 explanations as to how to solve this-

    ### TECHNICAL EXPLANATION 1 ###


    The public functionality of the plugin would need to be implemented purely in Javascript, so if this plugin relies on cookies, they would be both set and read in Javascript (http://www.w3schools.com/js/js_cookies.asp) and that the code is executed client-side so the server cannot cache it.

    Currently, the entire page is cached by our system, and that includes the current state of the sharing buttons. If implemented in Javascript, you would be able to show specific content based on the value of the cookie, all relying on the client-side information.

    ### TECHNICAL EXPLANATION 2 ###

    We cache pages aggressively, so the pages with that "like to download" feature would be cached in the state where the page has not been shared and would still need to be, for the item to be downloadable.

    Even after the page has been shared, with the page being cached, the visitor is still seeing the same page as if they had not shared it yet.

    So to get around this issue, the page would either need to be excluded from our cache, or the "like to download" feature would need to be created in pure javascript, which is completely client-side, and it would be evaluated without caching whenever the client visits the page.

    I'm not 100% sure if that is correct or not - either way the plugin must function with caching systems like wpengine.com and w3 total cache.


    Summary

    1) Add linked in support
    2) Make it work with caching systems

    If you want the job then send me a PM and please include your technical solution for integrating this. The plugin is available on request for you to review.

    Development work can be carried out on my staging area without affecting the live site.
     
  2. webmonk90

    webmonk90 Newbie

    Joined:
    Jan 22, 2012
    Messages:
    14
    Likes Received:
    0
    Part 1 is piece of cake but I'm not really sure about the part2.I can give it a shot still but i am only giving you 100% guarantee that the 1st one can be done.
    If you are going to pay $50 for 1st part,then i can dazzle into it.BTW,i'm a plugin and theme developer/seller on envato marketplace
    Skype ID is scopes90
     
  3. MatthewWoodward

    MatthewWoodward Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 31, 2012
    Messages:
    992
    Likes Received:
    1,681
    Occupation:
    SEO
    Location:
    UK
    Home Page:
    Hi,

    Drop me a pm with your email address and I'll send it over to you for your review.

    Someone else has tried and failed with the linked in support from here, come on guys I know you can do it =D