Include Me In That HTML ~ Plugin


Warning: fopen(IMIT_files/include_me_in_that_html_example.html) [function.fopen]: failed to open stream: No such file or directory in /homepages/37/d107237305/htdocs/bochgoch/wordpress/wp-content/plugins/include_me_in_that_HTML.1.0/include_me_in_that_html.php on line 42

Warning: filesize() [function.filesize]: stat failed for IMIT_files/include_me_in_that_html_example.html in /homepages/37/d107237305/htdocs/bochgoch/wordpress/wp-content/plugins/include_me_in_that_HTML.1.0/include_me_in_that_html.php on line 43

Warning: fread(): supplied argument is not a valid stream resource in /homepages/37/d107237305/htdocs/bochgoch/wordpress/wp-content/plugins/include_me_in_that_HTML.1.0/include_me_in_that_html.php on line 43

Warning: fclose(): supplied argument is not a valid stream resource in /homepages/37/d107237305/htdocs/bochgoch/wordpress/wp-content/plugins/include_me_in_that_HTML.1.0/include_me_in_that_html.php on line 44

Version 1.0 of the plugin is now available.

This is a embedded file plugin that will include any file into the body of any WordPress Post or Page.

You can download it and get more details from here.

I’m always looking for suggestions on how I can improve things, any feedback on testing or suggestions for amendments to Include Me In That HTML will be gratefully received.

Please post any comments below…..

Posted in Wordpress | 16 Comments »

16 Responses to “Include Me In That HTML ~ Plugin”

  1. David Says:

    What directory does the included HTML file have to be placed within to work correctly?

  2. bochgoch Says:

    Thanks for the reminder David, forgot that bit from the documentation:

    Files should be placed in a directory called IMIT_Files that is in the directory that WordPress is installed into. You will need to create that directory and place the files in it yourself.

  3. Melanie Says:

    I think the directory is supposed to be IMIT_files (lower case f on files) rather than IMIT_Files (upper case F on Files). It only worked after I changed the directory to IMIT_files.

  4. bochgoch Says:

    Thanks Melanie, I develop on Windows which lets me get away with case sensitivity sloppyness. On (l)unix the directory must be IMIT_files.

    On a related subject, the directory is easily changed, just edit include_me_in_that_html.php and find the line:

    $IMIT_directory = 'IMIT_files/';

    …and amend as you see fit.

  5. Dario Says:

    It’s an awsome plugin!
    I’ve “rated” it on my personal blog:
    http://www.dozarte.com/wordpress/2007/08/27/inserire-qualsiasi-cosa-in-un-post-wordpress/
    …but it’s a pity we cannot embed PHP o ASP lines of code!
    Ciao!

  6. Dario Says:

    But…
    I’m now testing online and I get errors:
    “…No such file or directory…” but the file is there!!
    Why?!?
    I found it: it’s case-sensitive!!! It depends on the server OS.
    I changed folder’s name from “IMIT_Files” to “IMIT_files” (but you should check it)
    Ciao!

  7. Krold Says:

    Your plug is great. It almost do everything I want.
    Is there a way to automatically add the same text file to certain category. For exemple, when I create a post of category XX, automatically add in the end of the post, if a post from category YY, automatically add and so on …

  8. bochgoch Says:

    Krold, nice suggestion, I’ll certainly consider that for a future version.

  9. Alexa Says:

    Hi – I’m having trouble – where exactly do I create the IMIT_files directory? I use bluehost and don’t have a directory that is simply wordpress – I have /public_html – and in that folder is wp_content where the plugins directory lives. Also have a /www directory. I’ve tried the IMIN_files directory in each of those, in the plugins folder – where exactly should it be?

    I’m getting this error:
    Warning: fopen(/IMIT_files/freemealformoms.html) [function.fopen]: failed to open stream: No such file or directory in /home/thedishb/public_html/wp-content/plugins/include-me-in-that-html/include_me_in_that_html.php on line 42

    Warning: filesize() [function.filesize]: stat failed for /IMIT_files/freemealformoms.html in /home/thedishb/public_html/wp-content/plugins/include-me-in-that-html/include_me_in_that_html.php on line 43

    Warning: fread(): supplied argument is not a valid stream resource in /home/thedishb/public_html/wp-content/plugins/include-me-in-that-html/include_me_in_that_html.php on line 43

    Warning: fclose(): supplied argument is not a valid stream resource in /home/thedishb/public_html/wp-content/plugins/include-me-in-that-html/include_me_in_that_html.php on line 44

  10. bochgoch Says:

    Alexa, sounds like you don’t have access to the directory you need. I’m going to tidy this up on the forthcoming version of the plugin.

  11. Plugin Change Lists ~ May 2008 | Bochgoch Blog Says:

    [...] Enhancement: Make IMIT_files directory allocation easier. Enhancement: ‘Automatically add the same text file to certain category. For example, when I create a post of category XX, automatically add in the end of the post, if a post from category YY, automatically add and so on …‘ ~ Thanks Krold [...]

  12. Plugin Change Lists ~ May 2008 | Bochgoch Blog Says:

    [...] Enhancement: Make IMIT_files directory allocation easier. Enhancement: ‘Automatically add the same text file to certain category. For example, when I create a post of category XX, automatically add in the end of the post, if a post from category YY, automatically add and so on …‘ ~ Thanks Krold [...]

  13. Tony Says:

    Hi Martin,
    Your plugin IMITH is working fine on several of my blogs, but for some unknown reason which is driving me insane, I keep getting the same errors as Alexa above when I try to save a post. The post apparently saves OK but without tags. The file is successfully included in the post when viewed, but when saving I get a page full of the errors (they repeat) and have to close the tab.

    Strangely, exactly the same set-up, permissions and everything, is working in other blogs operating side-by-side on the server. It must be a database glitch or something any ideas? Server is regulae unix/apache etc.

    Tony Page

  14. Tony Says:

    An update: the reason seems to be a conflict with the social bookmarking plugin socializeit by JP Schoeffel. When I disable the plugin’s autopost checkbox (on the post edit page) the error messages disappear. I’ll check this further.

    Tony

  15. DJ Says:

    Tech INFO and Enhancement Suggestion: Just now discovering your plugin Thanks! (will send a donation…) My Documentation on Useage–Thanks to the mention of naming the Folder/Directory ‘IMIT_files’ with the lower case ‘files’ that helped.

    I discovered that naming the file ‘filename.inc’ made it work, in some of your documentation it stated to name it ‘filename.html’ which did not work. Also some folks may not know that when wordpress is installed in your root folder (without the /wordpress/ directory) — (on some hosts like Alexa’s – Blue Host) that the public_html is considered to be the root folder. So she could place it in there –

    Also I found that –for an include the html page does not need all the ‘head info’ like (the DOCTYPE or other standard html and meta info —you can have only the info that goes in the body with out the body tags.) I also experimented with styles in the head section —it worked but threw all my other styling out the window —such is the case with Style in the head section …. and since then have removed the head section. I tried calling an image file from that same ‘IMIT_files’ from within an images folder – nope — did not work. but I was able to get an image file by using a long URL path —and doing that with wordpress in my public_html folder/root directory. That path FYI would go like this: http://yoursitename.com/wp-content/uploads/2009/05/yourimage.jpg that is how I got a background image to be placed in the background of my text.
    An enhancement would be to be able to trigger JavaScript other codes that usually do abide with in the ‘Head area’ from the html as well as other standard functions we have enjoyed without plugins before WordPress came into being. Don’t get me wrong I like WordPress and think it is a great tool but I do miss the good ole’ days when html and flash worked well without having to learn a new plugin for every other function I want to be able to have “just work”.

  16. DJ Says:

    Another short message I forgot to include my link if you would like to see it working on my site: http://www.geekstreetstudios.com/testing-many-plugins/
    Thanks so much for your work!

Have your say