[wp-hackers] Plugin to post source code needs testing
Matt
speedboxer at gmail.com
Mon Sep 10 04:28:12 GMT 2007
On 9/9/07, Viper007Bond <viper at viper007bond.com> wrote:
>
> As for the copy thing, that's not my code. That's the Javascript package
> and
> I'm not sure if it's avoidable or not. It sends a copy-to-clipboard
> command
> (which IE prompts) and then does an alert() assuming it worked. Perhaps it
> needs to check the clipboard to see if it matches. Then again, that'll
> probably trigger an IE prompt too, heh.
>
IE will only display the prompt once per page view. So, if you say allow,
then it will be copied to your clipboard and then you could check if it
matches without another prompt. If you say don't allow, then it won't be
copied to your clipboard and nothing will be returned with the check and
another prompt will not be displayed.
stristr() does exist in PHP 4, so you can get rid of the check and the
duplicate ones using strstr().
> I prefer the styling of Alex G.'s, plus that one is server side too.
Same.
--
Matt (speedboxer at gmail.com)
http://mattsblog.ca/ | http://livemp.net/
More information about the wp-hackers
mailing list