PHP Classes

Copy message to clipboard

Recommend this page to a friend!

      Top level forums  >  Site  >  Features  >  Copy message to clipboard  >  (Un) Subscribe thread alerts  
Subject:Copy message to clipboard
Summary:Button to copy the a posted message to clipboard
Messages:4
Author:Daniel
Date:2009-04-10 22:57:36
Update:2009-04-11 19:07:10
 

  1. Copy message to clipboard   Reply   Report abuse  
Picture of Daniel Daniel - 2009-04-10 23:41:18
It would be nice to have a button to copy the original message (like it was typed) to our clipboard. This would be extremely handy when people ask for help and post some of their php code, being able to get it the exact way that they typed it means we can paste it into our editors and see the indents and color coding we are familiar with.

Another way would be to have some ubb functionality to post peices of code but then again if the user doesn't use the code tags (they typically forget them) we are back where we started while a copy functionality of the original message wouldn't have that drawback (only drawback is that u get the whole message with the comments).

A link that opens a new window having as content only the message that we clicked in pure text format could also be helpfull.

  2. Re: Copy message to clipboard   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-11 00:57:09 - In reply to message 1 from Daniel
The forum and blog posting system will be enhanced to provide better message formatting support and message reply quoting. This will take some time due to many developments competing on the to do list, but it will be done.

But doesn't your browser allow selecting and copying the messages you want to quote?

  3. Re: Copy message to clipboard   Reply   Report abuse  
Picture of Daniel Daniel - 2009-04-11 18:38:54 - In reply to message 2 from Manuel Lemos
It's not about copy/paste for quote. It's when ppl post parts of their PHP code the indents are not showing and if you use copy/paste you still don't get the extra spaces (which is a normal behaviour for webbrowsers).
So I thought if we were able to have a copy function of the original message, we could paste the message in our editor and see the code with the posted indents and even color coding.

The reason I thought of this is that such a function is very easy to implement compared to ubb fucntioalities for [code] with color coding.

  4. Re: Copy message to clipboard   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-11 19:07:10 - In reply to message 3 from Daniel
The site does not change the text that the users enter in the messages.

The problem with that is browsers do not indent tabs as you would like when showing code mixed with other text.

When the forum and blog post editing is enhanced, it will show the code properly indented.