Jump to content

naf

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

naf's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. naf

    GD Library

    Hi, how i could do this with gdlibrary: I make image with imagecreatefrompng , and that is my pictures background. Then I add image there, and that is my bird flying in the background. that is only example, i wanna just add image to image
  2. <?php function forumbbcode($text) { if(preg_match("/\[/", $text)) { $match = array( '/\[b\](.+?)\[\/b\]/is', '/\[u\](.+?)\[\/u\]/is', '/\[i\](.+?)\[\/i\]/is', '/\[url=(.+?)\](.+?)\[\/url\]/is', '/\[url\](.+?)\[\/url\]/is', '/\[quote\](.+?)\[\/quote\]/is' ); $replace = array( '<b>$1</b>', '<u>$1</u>', '<i>$1</i>', '<a href="$1">$2</a>', '<a href="$1">$1</a>', '<div class="quote">$1</div>' ); return preg_replace($match, $replace, $text); } } ?> I have this kind of BBCode parser, but only problem is that it doesn't allow for ex. multiple quotes inside. if i put [quote]asd[quote]efg[/quote][/quote] it will return <div class="quote">asd[quote]efg[/quote]</div>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.