1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Post Replacement help!

Discussion in 'Troubleshooting and Problems' started by Lilybet, Sep 1, 2012.

  1. Lilybet

    Lilybet Member

    having converted over from vB4, I just have an issue with Post Replacements from vB4, and would ask some kind soul to help me convert them over by offering advice on how to:

    1. Convert 'Fieldset' bbcode; I have at present:

    Code:
    [fieldset="Members' Birthdays!"] 123456789abc[/fieldset]
    I have the Post Replacement mod installed on XF, and I just require the replacement codes to convert existing BBcode, so I require:

    Regular Expression:
    Replacement String:

    Thank you!
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Quick Find: [fieldset

    Regular Expression: #\[fieldset="([^"]+)"\](.+)\[/fieldset\]#siU

    Replacement String: [code]\1 \2[/code]

    The replacement is up to you. XenForo doesn't have a "fieldset" BB code so I don't know what you want to replace it with. But the \1 and \2 variables are in reference to the two values from the regex.

    FYI for others, he is using this addon:

    http://xenforo.com/community/threads/post-content-find-replace.6548/
     
    Roberto Bilić and Lilybet like this.
  3. Lilybet

    Lilybet Member

    thanks, Jake ! :) It didn't finish converting ALL posts as the site was hanging for a long period during the conversion.

    another request please:

    Code:
    [highlight]XENforo[/highlight]
    it just hightlights text in yellow!
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Quick Find: [highlight

    Regular Expression: #\[highlight\](.+)\[/highlight\]#siU

    Replacement String: [color=yellow]\1[/color]
     

Share This Page