Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

phpBB-Quote-Extension?

akbakb
edited January 2006 in Vanilla 1.0 Help
Well, I dont think there is any extension to handle phpBB-like quotes out there... so could someone tell me how to rewrite a regex for handling this? Looking at the BBcode-extensions i simply had to add a line for handling quote-tags, shouldnt be that difficult. But I'm a real dumb in writing regex's, so I need some help with this :-) [php] $String = preg_replace("/\[quote\](.+?)\[\/quote\]/","<blockquote>$1</blockquote>",$String);[/php] this is what i have for now... this handles simple [ quote ] [ /quote ] style tagging and it works. but in phpBB there are quotes like [ quote:678346783165478 ] [ /quote ] (remove the spaces, iek) and i dont know how to change it to work with this. for those who ask why i need phpbb quotes: i migrated from my old phpbb and have thousands of quotes w/ this style in our postings, that i would like to "work" again.

Comments

  • Options
    NickENickE New
    edited January 2006
    preg_replace("/\\[([\\w_]+):\\d+\\]/", '[\\\\1]', $String);
    Or something along those lines...

    EDIT: mark, something's up with the stripslashes() again.
  • Options
    Just read the phpBB source then ;)
  • Options
    aaah, dammit, why didnt i think of that? :D thx for that tipp *gg
This discussion has been closed.