title: Converting [img=URL] to html tags
body: <p>making a basic user submitted CMS and there is all sorts of different image codes that forums use.</p>
  
  <p>So far I have used the following:</p>
  
  <pre><code>$text = str_ireplace("[IMG]", "&lt;img class='buildimage' src='", "$text");
  $text = str_ireplace("[/IMG]", "'&gt;", "$text");
  </code></pre>
  
  <p>Which works for the normal BBCode image tags which are [img]URL[/img]</p>
  
  <p>But cant think of a way to change e.g using PHP:</p>
  
  <pre><code>[img=http://img.photobucket.com/albums/v479/D2BBA/p3.jpg]
  </code></pre>
  
  <p>To a normal HTML image tag. Any help?</p>
  
  <p>Thanks, Craig.</p>