I'll bring this back since I have a similar question. In phpBB, when you insert information in the signature, it's hashed within the BBcode. For example, if I were to insert an image in my signature, it would say something like
Code: Select all
[img:a86d1f200f]some_image.jpg[/img:a86d1f200f]
What I'm wanting to do is search through the whole signature that is pulled from the database. In other words, this may by my signature code stored in MySQL for phpBB:
Code: Select all
PlastikRacing Owner
[img:a86d1f200f]some_image.jpg[/img:a86d1f200f]
[b:44f2b8ecdc]Image and Video Hosting[/b:44f2b8ecdc]
http://www.plastikhosting.net
What I would like to do is search through the signature and if there is a image inserted using the [IMG] tags, pull it out into it's own variable, kind of like explode(). With this function, the output would be something like:
Code: Select all
$sig[0] = "[img]some_image.jpg[/img]";
$sig[1] = "PlastikRacing Owner" . $sig[0] . "[b]Image and Video Hosting[/b]
http://www.plastikhosting.net";
Maybe I'm going about this the wrong way, but is this possible, or is there an easier way?