PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Oct 01, 2020 11:14 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Aug 24, 2009 12:57 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
Hey world.

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

Syntax: [ Download ] [ Hide ]
$post_body = str_replace("google", "", $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.


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 1:00 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
I have no idea what you are talking about


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 1:04 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
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?"


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 1:05 pm 
Offline
DevNet Resident
User avatar

Joined: Sun Feb 15, 2009 8:22 pm
Posts: 2119
Location: Ipswich, UK
That would get hacked to smurf.

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

Sounds cool.


Top
 Profile  
 
PostPosted: Mon Aug 24, 2009 1:07 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
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:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group