sugardeath

Sweet

Posted on June 27, 2005

Alright!  I've got a basic example of what I want to happen!

My Poem (without the spaces) becomes My Poem!!

However!  It doesn't replace the spaces in the URL with +'s yet, nor does it add the title attribute to the a tag...

But!  I DO have a script that does JUST that with a fixed string (ie. NOT the random content produced whenever I post) over here.  Thing is, it can only be done with one string right now.  Somehow, I need to incorporate the second script into the currently functioning (albeit limited) plugin.  I would need a way to search the $content for any string that starts with , and ends in .  I don't want [$any_text] because that would include additions to quoted text, and even what little BBCode I use.  Plus it just plain wouldn't work, as there would be no $result[2] to call for the link text.

All in all, I've still got a lot work ahead of me.  I've managed to come this far, though, and I'm quite proud of myself.  For several hours I was confused as all hell trying to figure out regular expressions, but I think I've got them pegged now. 

Time to sleep.

(6/28/2005 - 17:5)

Alright, plugin turned off for now, due to some major errors that it's causing with the wp-header.  I'll try to figure that out in due time.

(6/29/2005 - 3:24)

I lied!  Plugin back up and running!  No errors!

Comments (9) Trackbacks (0)
  1. Ok, I was coming to checkout your site today and I typed in http://sugardeath.com and then I thought that you changed your site completely and was starting to think it was really cool.  Then I was looking around for the old content and couldn’t find it.  Just then, I realised that I wasn’t even at your site. HAHA

  2. Ok, I was coming to checkout your site today and I typed in http://sugardeath.com and then I thought that you changed your site completely and was starting to think it was really cool.  Then I was looking around for the old content and couldn’t find it.  Just then, I realised that I wasn’t even at your site. HAHA

  3. yup, errors during commenting are GONE ^_^

  4. .net domains are kool :lol:

  5. eh?  That was random :???:

  6. Ah!  Nevermind!  I understand..  Brain fart… <_<

    Look!  Double postage, again!:tongue:


Trackbacks are disabled.