Page 1 of 1

Small Private Scripts for Posting

Posted: Mon Aug 24, 2009 12:57 pm
by Jonah Bron
Hey world.

How about the ability to write a small script in PHP for basic string modification. Something like:

Code: Select all

$post_body = str_replace("google", "[url=http://google.com]google[/url]", $post_body)
It would be like a super-mega-dynamic-signature-type-thing.

Maybe this should be a feature in the maybe-to-be-new-custom-PHPDN-forum.

Re: Small Private Scripts for Posting

Posted: Mon Aug 24, 2009 1:00 pm
by John Cartwright
I have no idea what you are talking about

Re: Small Private Scripts for Posting

Posted: Mon Aug 24, 2009 1:04 pm
by Jonah Bron
Well, I have a very good idea of what you're talking about :)

I mean, like, you can go to your account settings, and click "add filter script", type up a quick PHP script, and every time you post a topic or reply, it runs your post through your custom filter script. In the example above, all you have to do is type "google" in your post, and it comes out as "[url=http://google.com]Google[/url]".

In the words of Verizon, "Can you hear me now?"

Re: Small Private Scripts for Posting

Posted: Mon Aug 24, 2009 1:05 pm
by jackpf
That would get hacked to <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span>.

I wouldn't think PHP would be allowed. Maybe a made-up find & replace syntax though...

Sounds cool.

Re: Small Private Scripts for Posting

Posted: Mon Aug 24, 2009 1:07 pm
by Jonah Bron
Yeah, a fake language would work too. I meant to mention that, but forgot about it. Maybe make it so the code is PHP? :mrgreen: