Extension talk:CopyToClipboard

Jump to navigation Jump to search

About this board

Cosfly (talkcontribs)

You know, mediawiki allows the powerful template system. But it seems I can't use templates inside clippy.

For example, if I put

<clippy> {{jack | ID1 = a | ID2 = b }} <clippy>

then I hope the Template:Have to be copied, with ID1 replaced with "a", and ID2 replaced with "b".

Is it technically possible to make such a template-friendly CopyToClipboard extension? Is it easy to make it?

Cosfly (talkcontribs)

In the 4th line, I meant to say "Template:Jack", not "Template:Have". A rather obvious typo :)

And although mediawiki automatically transformed what I wrote into "Template:Jack" in the 3rd line, originally I wrote there the following.

| ID1 = a | ID2 = b

That is why I am writing as such in line 4.

Nischayn22 (talkcontribs)

you got me all confused in here :) I am not much familiar with Template stuff but I think tags can't be put in templates, why don't you ask at #mediawiki on IRC; they know more about templates than I do ;)

Nischayn22 (talkcontribs)

Hi, I was just revisiting this today and realized what you meant in a more generic way; maybe I know more now.

The functionality you are looking for is to have clippy understand wikitext. This can simply be build into the extension as an additional configurable option. I will like to see this myself sometime; maybe I or somebody else gets to do it.

189.15.142.190 (talkcontribs)

Try substituting the line

$link = htmlspecialchars($input);

by

$link = urlencode(htmlspecialchars($parser->recursiveTagParse($input,$frame)));

Cheers, Christoph.

Lilis2nd (talkcontribs)

Tried this solution. The copied texts are fine, but when show="true" is on,
any spaces between characters are shown in +, like e.g.;

This+is+a+test.

Any other way to get this sorted out?

Reply to "Template in clippy"

CopyToClipboard makes a strange blue line in explorer.

9
Cosfly (talkcontribs)

First of all, thank you for making this fantastic extension.

However, CopyToClipboard makes a strange blue line in explorer.

It doesn't cause any problem in chrome, opera, and firefox.

This extension will become even more fantastic after fixing this.

Thank you.

Nischayn22 (talkcontribs)

Thanks for the praise :) I will definitely look into this very soon but I won't promise anything (This stuff needs help from some HTML expert)

Nischayn22 (talkcontribs)
Cosfly (talkcontribs)

It says it uses javascript, then does installing zeroclipboard make it slower to load my website than having your extension?

And although I am reading the code of CopyToClipboard.php, I can't see which line to revise to make ZeroClipboard to work, although I guess I have to edit the 51th line.

Nischayn22 (talkcontribs)
182.72.186.86 (talkcontribs)

the extension works well but the only problem is this strange blue in ie...has anyone found solution to fix this?

182.72.186.86 (talkcontribs)

i found the problem..in copytoclipboard.php replace the following line

<param name="bgcolor" value="#white">

with

<param name="bgcolor" value="#ffffff">

fixed :)

Nischayn22 (talkcontribs)
Reply to "CopyToClipboard makes a strange blue line in explorer."
189.15.79.158 (talkcontribs)

Line 34 in CopyToClipboard.php should look like

34 $wgClippy =  $wgScriptPath.'/extensions/CopyToClipboard/clippy.swf';

-Christoph

Nischayn22 (talkcontribs)

I think both ways are correct. Anyways feel free to contribute. Do you have a gerrit account already?

189.15.142.190 (talkcontribs)

Well, the other one didn't work for me. No, I don't have a gerrit account.

Reply to "Bug .$wgClippy"

CopyToClipboardAndThenPasteFromClipboardToFacebookCommentBox?

2
218.146.16.37 (talkcontribs)

Is it possible to make a CopyToClipboardAndThenPasteFromClipboardToFacebookCommentBox?

If a visitor clicks the button, it will 1) copy the specified text to clipboard, and then 2) the facebook comment box will appear 3) it will detect when the facebook comment box appears. 4) it will paste the specified text to the facebook comment box.

I think 1 and 2 are easy since it is just combining two existing button click extensions. The two buttons are displayed at http://wikiuspolitics.com/index.php?title=Main_Page

I guess 3 and 4 are difficult, but I want to ask you if it


The following link seems to contain many java Onclick copy and paste codes but I found that the code of CopyToClipboard doesn't seem to use java, so I guess there is non-java method of making PasteFromClipboard extension. https://www.google.com/#hl=en&newwindow=1&sclient=psy-ab&q=onclick+paste+clipboard&oq=onclick+paste+clipboard&gs_l=hp.3..0i30.71.10661.0.10784.31.21.5.5.5.1.1343.8024.2-3j16j0j1j0j1.21.0.les%3B..0.0...1c.fvi_en6jbpI&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.&fp=b6fbdf4e16b0ea8&biw=1005&bih=570


In sum, is it possible to make CopyToClipboardAndThenPasteFromClipboardToFacebookCommentBox?

Nischayn22 (talkcontribs)
Reply to "CopyToClipboardAndThenPasteFromClipboardToFacebookCommentBox?"
There are no older topics