[wp-hackers] Plugin to post source code needs testing

Viper007Bond viper at viper007bond.com
Mon Sep 10 04:49:57 GMT 2007


Oh, so it does. I got it confused with str_ireplace(). Thanks. :)

On 9/9/07, Matt <speedboxer at gmail.com> wrote:
>
> 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/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/


More information about the wp-hackers mailing list