I need help with cleaner.php after migration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SFX
    Member
    • Jul 2014
    • 59
    • 5.6.4

    [Forum] I need help with cleaner.php after migration

    Hello everyone, I have a problem with my forum that I recently migrated from MyBB 1.8.5 to vBulletin 4.2.3

    MyBB uses some different bbcodes to vBulletin, therefore, they have no format in posts, and therefore, the appearance thereof looks very bad.

    This is solved using the file cleaner.php has so far helped me solve simple bbcodes; however, there are some bbcodes they are giving me problems as alignment, for example:

    HTML Code:
    [align=center]some text[/align]
    [align=left]another text this is a [b]bold[/b][/align]
    [align=justify]This is a text in bold and this is a image[img]http://andomain.com/image.png[/img][/align]
    I wonder how to fix the alignment shown in the example above, without affecting other bbcodes; I only want to have a proper alignment in vBulletin as their bbcodes alignment are:

    HTML Code:
    [center]some text[/center]
    [left]another text this is a [b]bold[/b][/left]
    [justify]This is a text in [b]bold[/b] and this is a image [img]http://andomain.com/image.png[/img][/justify]
    Please, help me.
    Last edited by SFX; Sat 29 Aug '15, 6:16am.
  • SFX
    Member
    • Jul 2014
    • 59
    • 5.6.4

    #2
    Anyone can help me?

    Comment

    • SFX
      Member
      • Jul 2014
      • 59
      • 5.6.4

      #3
      I really need help in this thread, I am disappointed to have paid $ 250; to ignore me for days when I apply for support, nobody took the slightest discomfort to answer to me or even trying to help me.

      Is it too much solicit support for something that I paid?

      Comment

      • Wayne Luke
        vBulletin Technical Support Lead
        • Aug 2000
        • 74117

        #4
        We can't provide support for cleaner.php. You would have to ask over at www.vbulletin.org.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment

        • BirdOPrey5
          Senior Member
          • Jul 2008
          • 9613
          • 5.6.3

          #5
          Your best bet with those alignment bbcodes is to create a new bbcode in bbcode manager called: align

          Go to Admin CP -> Custom BB Codes -> Add New BB Code

          Title: align
          BB Code Name: align
          Replacement:
          Code:
          <div style="text-align: {option}">{param}</div>
          Example: [align=center]some text[/align]
          Description: Alignment Compatibility BB Code
          Use {option}: YES
          Button Image: (leave blank)
          Remove Tag if Empty: Yes
          All others: No

          Save changes. If you get a warning when you save it is safe to continue just hit OK/next and it will save.

          That should restore the same alignments you were used to and the bbcodes will parse. You may need to refresh/clear the cache to see any difference.

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...