As you might have seen, we are now providing a CLICK TO COPY AND WHATSAPP button for whatsapp puzzles with emoticons to you. we tried to use existing plugin on wordpress to achieve this, but unfortunately we did not find any good plugin which looks good, works well and handles all browsers(mobile + desktop), so we decided to do it ourselves, and while we did it, we decided to help others by hosting this plugin.
Copy To Clipboard – mobile + web plugin for whatsapp
This is the plugin to copy text to clipboard on click of a button on desktop browsers and mobile web browsers. It usage flash to auto copy on click of the button, for the browsers where flash is not available, it shows the popup with pre-selected text and user can copy it easily.
– Flexibility to change caption, width, height of the button.
– Option to add a suffix to copied text, by default suffixes your blog url.
– Option to call a javascript method on click of the button, by default sends Click event to your Google Analytics account.
It usage LMCButton, http://www.lettersmarket.com/view_blog/a-3-copy_to_clipboard_lmcbutton.html to copy text using flash and http://www.featureblend.com/javascript-flash-detection-library.html to detect flash.
Checkout the plugin on wordpress @ http://wordpress.org/plugins/copy-to-clipboard-mobile-web/
Installation Instructions
- Upload the `pw-clipboard` folder to the `/wp-content/plugins/` directory or use plugin search – Admin > Plugins > Add new > Search for ‘Copy To Clipboard – mobile + web’
- Activate the Plug-in
- Add a the shortcode to your post like so: [ pw-clippy caption=”Copy”]Text to Copy goes here[/pw-clippy ], remove space between bracket and pw-clippy text
- Test that the this plug-in meets your demanding needs.
- Rate the plug-in and verify if it works at wordpress.org.
- Leave a comment regarding bugs, feature request, cocktail recipes on this page.
More configurations
- caption, default value=>Copy
- width, default value 100
- height, default value 25
- js, by default sends event to your google analytics account, you can pass empty string to avoid this.
- suffix, by default appends “via <your blog url> at the end, you can pass empty string to avoid this.
Screenshots
Willem says
Hi, your Copy To Clipboard plugin works great.
I’m trying to move the pop-up closer to the top but can’t figure out how. Is it possible to reposition it?
Thanks
Jonas says
Hi there!
I have some trouble by using the plugin. I want to copypaste a function for excel.
=WENN(((B2>=$I$2)*(C2>=$I$3)*(D2>=$I$4)*(E2>=$I$5)=1;”JA”;”NEIN”)
Problems are concerning this symbol: ”
I have to rewrite it in excel if it should work correctly. Because there are different translations of ” in excel, depending on what kind of symbol I use, I don’t know how to do it in the right way. Can someone help me?
Sam says
How can we use this code in the JS file? Please reply….
ed says
I was wondering if you can also make the button link to another web page or site?
puzzlersworld says
Yes you can do that using js option, pass the javascription function name in this. this method will be called when user clicks on the button, you can open the new link in the method
D3 says
Hello,
I don’t understand it. Could you answer me this question?
http://wordpress.org/support/topic/button-link-5
And help me make it done? Thank you very much.
puzzlersworld says
Sorry for the late reply
You can call any javascript mehtod like this, however there is no way to change the text and color etc.
[pw-clippy caption1="Text1" js="onCopy('http://xyz.com')"]Text to copy[/pw-clippy]
Now you can define this method in any javascript file or in your header.php
onCopy(url){
//You might need to change this implementation
window.open(url,’_blank’);
}
D3 says
Please
mounika mano says
How can i do this please help
mounika mano says
Hello please help on this, ho to do it