Log in

View Full Version : Trouble with parsed sigs.


DragonBlade
03-16-2009, 11:56 AM
Hullo, people.

At the forum I help administrate, the users just love their rainbow text. Recently, there seems to have been a problem with the rainbow text BBCode mod we had been using, so I thought I'd try to take a whack at writing my own.

Anyways, the old BBCode was just added via the "Custom BBCode" manager, and used a bunch of JavaScript to change the {param} stuff.

I was thinking, "Well, why not just do it in PHP and make it a Plugin instead?"

So I wrote a PHP version that works nicely, but only in posts. It works in a signature until that signature is viewed a few times, then it craps out.

Like, the PHP Regular Expression I use is:$pattern = '#(.*)\(.+)?\(.*)#si';So if I put,
Stupid fairy stuff
Well, first it would come out all rainbow-y and stuff, but then (I'm assuming after it gets cached) it just appears as above. Which sucks. Which I'd like to fix. But how?