• User wants to post a commentary/analysis about some webpage, e.g. a Facebook user’s public post and its comments. Ideally the original formatting of that webpage is retained.

    • Copypasting into WordPress loses all formatting.
    • The “Press This” plugin loses all formatting – different users comments (and their metadata) all become one continuous run-on string
    • Screenshots don’t let readers easily quote text excerpts, and text in screenshots is missed by many/most search engines.
    • Evernote Webclipper retains most of the formatting.*
    • Copypasting into Gmail retains most of the formatting.**
    • Specific to Facebook, using WordPress’ “Embed Facebook” tool includes only the post, not the comments. Facebook itself has/had tools, but they have been removed or are very limited.***
    • Save as html (complete webpage) creates a local html file plus a folder with images etc.
    • Save as mhtml (webpage, single file) creates a local mhtml file including images etc.

      The last option seems to be the best option that retains proper formatting and all the images.

      I searched wordpress Plugins and Support and www.ads-software.com in general, but found only a few results, and from what I could see they don’t even mention mhtml.

      How can an mhtml file be brought into a WordPress site?

      ===================

      * I can use Evernote Webclipper, the post date is scrambled/obfuscated* and the user profile pix are lost (with the new Facebook format; the old format worked). Layout and format and emoticons and reaction graphics and counts are retained. (Copying and pasting into Evernote does not work as well – only the top approx 20 pixels of images appear.)

      ** I can copy and paste into Gmail – but the post date is scrambled/obfuscated and profile pix and reaction graphics and counts are lost. (Layout and format and emoticons and images and i-think-videos are retained)

      *** Facebook’s Graph API can be used to extract comments – but only the comments on a Page managed by you (not your personal profile, not groups, not other people’s Pages or profiles). (https://graph.facebook.com/229071731175095_674180143330916/comments?access_token=XXX where the first number is the page id and the 2nd number is the post id.)
      Facebook gives instructions for embedding a single comment, but only a single comment: https://developers.facebook.com/docs/plugins/embedded-comments/
      Facebook previously allowed “Comment Mirroring”, but that is deprecated.
      Facebook uses FBML – facebook markup language – instead of HTML – I’m not sure if this is throughout Facebook or only in specific contexts. Does that affect this challenge?

Viewing 1 replies (of 1 total)
  • Hey:

    Interesting topic. I used a secure FTP, like Filezilla to get the HTML to the WordPress server. You can use other means to get the file to the server. I placed my file in the ‘Uploads’ folder and then I made an HTML folder. Then in a page I added ‘Custom HTML’ block and placed the following IFRAME:

    
    <iframe src="https://localhost:9137/wp-content/uploads/html/LocalHosts.html"
     width="600" height="450" frameborder="0" style="border: 0px; width: 736px; height: 552px;" allowfullscreen="" aria-hidden="false" tabindex="0" data-origwidth="600" data-origheight="450">
    </iframe>
    

    The src URL will be to be changed to fit your situation.

Viewing 1 replies (of 1 total)
  • The topic ‘How to bring mhtml single-file-webpages into WordPress?’ is closed to new replies.