Announcement

Collapse
No announcement yet.

Import Snitz - Quotes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Import Snitz - Quotes

    I have succesfully imported my Snitz forum. After the import some messages look like this

    Code:
     
    <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">citat:<hr height="1" noshade id="quote"><i>Ursprungligen skickat av janne dansk</i>
    <br />for det första om du har små discus så är det för låg temp du bör ha minst 30 g .
    <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">...och för det andra?
    It's the code for a Snitz quote. How can I fix this?

  • #2
    2 ways.

    1)
    use : impex/tools/cleaner.php and swap the HTML out for the quote tags.

    2)
    translate it into english so I can see what is bb code and what is text, i.e. citat looks like citation ?
    I wrote ImpEx.

    Blog | Me

    Comment


    • #3
      I have already run cleaner.php

      Here is the english version

      Code:
       
      <blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">citat:<hr height="1" noshade id="quote"><i>Original message by USER</i>
      <br />Here is the text that is quoted  
      <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

      Comment


      • #4
        You have to set up cleaner.php it dosn't do anything on its own you have to tell it what text to swap out.

        I'll update the snitz parser now I know what the text is.
        I wrote ImpEx.

        Blog | Me

        Comment


        • #5
          Can you help me what to write:

          $replacer = array(
          "<blockquote id="quote">" => "",
          "<font size="1" face="Verdana, Arial, Helvetica" id="quote">" => "",
          "<hr height="1" noshade id="quote">" => "",
          "<i>" => "",
          "</i>" => "
          "
          "</blockquote id="quote">" => ""
          "</font id="quote">" => ""
          );

          Comment


          • #6
            I think this would be the easiest :

            PHP Code:
            $replacer = array(
            '<blockquote id="quote">'                                        =>    '[quote]',
            '<font size="1" face="Verdana, Arial, Helvetica" id="quote">'    =>    '',
            'citat:<hr height="1" noshade id="quote">'                        =>    '',
            '<i>Original message by USER</i>'                                =>    '',
            '<br />'                                                        =>    '',  
            '<hr height="1" noshade id="quote">'                            =>    '[/quote]',
            '</blockquote id="quote">'                                        =>    '',
            '</font id="quote">'                                            =>    ''
            ); 
            I wrote ImpEx.

            Blog | Me

            Comment


            • #7
              Also I've updated the snitz importer and it should get thoese quotes now.
              I wrote ImpEx.

              Blog | Me

              Comment

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