MatthewWoodward
Senior Member
- Aug 31, 2012
- 997
- 1,728
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-
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.
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.