Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default PHP help please.

    Okay, im using a BB code script that tomm helped me with (thanks dude) However, it only applies the code if there are no new lines in between it

    for example

    PHP Code:
    [align=center]
    Bla
    Bla
    [/align
    Wont work..

    The code is as follows:

    PHP Code:
    <?php
    $str 
    preg_replace('#\[align=(.*?)\](.*?)\[/align\]#i','<div align="$1">$2</div>',$str);
    return 
    $str;
    ?>
    Any help please?
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Hm.... I think I made something similar not too long ago for my dj panel.... I can't access the file right now but I will check later and get back to you

  3. #3
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Ty

    + REP if i can =]

    EDIT: Gotta spread..
    Coming and going...
    Highers are getting the better of me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •