Download: fMoblog v. 2.1

Support

Support forums can be found here

Notes

fMoblog is a moblog plugin for WordPress 1.5.x which enables the user to post images and a description from a cell phone. Pictures can also be uploaded by email. Creation of thumbnails is automatic and the image are displayed in a image gallery sorted by month. A dropdown list makes it easy to change month to display. Please check out my own moblog for a demo. fMoblog is valid XHTML.

The fMoblog must be on a static page, not in a post.

Requirements

  • WordPress 1.5+
  • Some plugin for running PHP code in posts.
  • Exec PHP at http://soeren-weber.net/
  • RunPHP at http://www.nosq.com/
  • PHP support for imap_open() on your host.
  • Note: Please consider that running PHP code within posts is a security risk.
  • GD library

Installing

  1. Unzip to a directory.
  2. Put fmoblog.php, fmoblog_manage.php and fmoblog_options.php in your wp-content/plugins directory.
  3. Create directories fmoblog_pictures and fmoblog_thumbs in your wp-content folder and change permission to 755.
  4. Create a secret email account at your host for use only for fMoblog. (Ex. fMoblog@domain.com).
  5. Go to WordPress admin->plugins and press activate.
  6. Go to WordPress admin->options->fmoblog and input your incoming email server something like (incomingserver.domain.com), username and password. Input the size you want the image to be resized to and the number of thumbs to be displayed from fmoblog_get_latest() and the update intervall, and finally the thumbnail size for the sidebar. You can choose to show a quick tag for fMoblog.
  7. Press update options.
  8. Create a page and press the fMoblog quicktag or manually input
    [php]<!–fmoblog–>[/php]
    where you want the photos to appear.
  9. You can include an image in a post with this function call: [php]<?php fmoblog_get_image(‘imagename’, [thumb], [align]);?>[/php] imagename should be the name of the full size image without the path and the thumb should be true or false (optional), defaults to false. and image alignment (optional), defaults to ‘default’.
    Ex 1. Thumbnail version of img.jpg left aligned.[php]<?php fmoblog_get_img(‘img.jpg’, true, ‘left’);?>[/php]
    Ex 2. Full version of img.jpg center aligned.[php]<?php fmoblog_get_img(‘img.jpg’, false, ‘center’);?>[/php]
    Ex 3. Full version of img.jpg default aligned.[php]<?php fmoblog_get_img(‘img.jpg’);?>[/php]
  10. Start posting.

Posting images

You can either post from your cell phone as an email with the image attached or from your regular email. Simply attach (inline images are not supported)the picture and write as subject the title for the image and a image description in the email body contained within #-signs. Ex. #My text#. Or you can upload images from WordPress admin area, got to manage->fmoblog.

The image must be of jpg type, and only one image per e-mail.
Send and the next time the page is shown the emailed image will apperar. Post your images to your secret email account.

Deleting images

In the WortPress admin interface go to manage->fmoblog, here you can upload and delete images.

Changelog

Version 1.0.1
2005-09-18: Adding slashes to subject line.
2005-09-19: Option added to specify image size for resizing.
2005-09-19: Added deleting images when logged in as administrator.
2005-09-20: Fixed problem involving foreach().
Version 1.0.2
2005-09-23: Fixed problem with permalinks.
2005-09-24: Changed folders to be in wp-content
Version 1.2
2002-09-30: Added support for more images from fmoblog_get_latest().
Version 1.3
2005-10-05: Added update intervall for e-mail checking.
Version 1.4
2005-10-13: Added function for image inclusion in posts.
Version 2.0
2005-10-13: Added support for image description.
Version 2.1
2005-10-13: Added WordPress admin interface for uploading and deleting images

If you’re updating from earlier version please go to admin->plugins and press “deactivate” and then press “activate” to update installation.

Support

If you are asking for support from me by comment or email please provide a link to your blog so I can see for myself. It sure makes support and debugging a lot more easy. And please do read the FAQ and the other comment before asking for support.

FAQ

  1. Q: Why don’t I see the latest images in my sidebar?
    A: You need a plugin for running PHP in posts, see requirements.
  2. Q: Why do I get a red error in my blog?
    A: Your host do not support the imap_open function in their PHP-installation.
  3. Q: Why do I get “no permission to write image. quitting ‚Ķ “?
    A: You need to set permission for the folders as 775.
  4. Q: Why is the image desription not showing?
    A: The text in the e-mail body must be within #-signs.
  5. Q: Why is the images not appearing?
    A: The images must be as attachments, not as inline elements in the email.

307 Comments

  1. Great hope you like it. Make an email address specially for the fmoblog and use it to post images to. Your mail server should be something like incomingmailserver.joliver.org and not your email address. The script gets the mail from the account at every page view.

    If there are any problems please let me know.

  2. Hi there. I’ve followed the install instructions, and have even reinstalled WordPress and fMoblog twice just to make sure it’s not a fault on the server but I keep getting the same problems. It doesn‚Äôt look like fMoblog is checking the e-mail address and to top things off on each page in WordPress I get an error “Warning: Invalid argument supplied for foreach() in wp-content/plugins/fmoblog.php on line 231″ Any ideas? Thanks, Brendan

  3. Fredrik, your the man! that worked wonderfully and I now it fully functional. Thanks again.

    Also, w/ version 1.0.1, the foreach string has been moved from line 231 to 271, since you need to upgrade to get it working.

    Again GREAT JOB!!!!

  4. Warning: imap_open(): Couldn’t open stream {:110/pop3/notls}INBOX in /home/thesup3/public_html/webblog/wp-content/plugins/fmoblog/fmoblog.php on line 110
    could not connect to mailserver. quitting …

    that is what my website looks like after i activate plugin. when i try to go to options, i get a 404 error.

  5. I do get that kind of error on my site too and that happens when my host’s email server fails to open my inbox. Or there could be some restrictions on your host regarding applications using the imap_open function. Please download the latest version.

  6. hi, I downloaded the latest.

    i can now activate plugin, go to options and make adjustments. but when i go to view my site:

    Warning: imap_open(): Couldn’t open stream {mail@thesuperstar.org:110/pop3/notls}INBOX in /home/thesup3/public_html/webblog/wp-content/plugins/fmoblog.php on line 113
    could not connect to mailserver. quitting …

  7. hi,

    I am trying to use your picure post, but am having trouble editing the homepage to include the pictures. I am using this code:

    fmblog_get_latest(10);

    but i am not sure i am putting it in the right place or that it is coded properly…please advise…

  8. first of all – thanks for the plugin, it’s really useful.
    when I send an email from my computer, everythink is OK.
    but when i use my phone (nokia 6820), this is what comes out:

    Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 31

    Warning: imagecreatefromjpeg(): 'wp-content/fmoblog_pictures/11278902653939.jpg' is not a valid JPEG file in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 31

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 33

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 34

    Warning: Division by zero in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 36

    Warning: imagecreatetruecolor(): Invalid image dimensions in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 37

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 38

    Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 39

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 40

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 41

    Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 47

    Warning: imagecreatefromjpeg(): 'wp-content/fmoblog_pictures/11278902653939.jpg' is not a valid JPEG file in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 47

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 50

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/benkling/public_html/wordpress/wp-content/plugins/fmoblog.php on line 51

    after that, everything gets back to normal, and it adds an empty picture to my gallery. any ideas why?

    btw, the “delete this picture” and your credit is not clickable on my site…

  9. Hi,
    Just recently got into WordPress and have installed your plug-in which is so close to working………I hope. Resolved a number of problems but now stuck with the following, I have tried to debug the code as I have many years codig experience but not in PHP or the framework of WordPress.

    The first problem is I am managing to connect to mail server to retrieve pictures but they are not getting processed fully. For example there were 2 messages to retrieve, both were processed as there were 2 entries in the wp_images table with subject that matched the e-mails. But there was only one image in the fmoblog_pictures folder and nothing in the fmoblog_thumbs.

    Second problem but unsure if related I am getting the following message which is displayed at bottom of main page:

    PHP Warning: strtotime() [function.strtotime]: Called with an empty time parameter. in c:Inetpubwwwrootwp-contentpluginsfmoblog.php on line 254

    HELP PLEASE

  10. Hi again,

    In trying to get this resolved I took your function create_thumbnail and hardcoded some values in a test.php as follows and ran it:

    and that worked apart from the last line!!! But it took test.jpg and created a t_test.jpg thumbnail in thumbnails directory ok.

    I have also noticed that the names of the images in the fmoblog_pictures folder are like follows 26cf4d06db34e7298de5480a2743b34c_1.jpg. But in the database like 11280410717154.jpg which implies they are not being renamed properly?

    HELP AGAIN :-)

  11. Ooops code did not appear prob because of the PHP tags, here it is again:
    $original = imagecreatefromjpeg(“C:/Inetpub/wwwroot/wp-content/fmoblog_pictures/test.jpg”);
    $twidth = 128;
    $owidth = imagesx($original);
    $oheight = imagesy($original);
    $ratio = $owidth / $twidth;
    $theight = $oheight / $ratio;
    $thumbnail = imagecreatetruecolor($twidth, $theight);
    imagecopyresampled($thumbnail, $original, 0, 0, 0, 0, $twidth, $theight, $owidth, $oheight);
    imagejpeg($thumbnail, “C:/Inetpub/wwwroot/wp-content/fmoblog_thumbs/t_test.jpg”);
    imagedestroy($original);
    imagedestroy($thumbnail);
    re(“Test”);

  12. I can’t get the sidebar to show photos. I’ve added
    [?php fmoblog_get_latest; ?] (changing the end caps to ) but nothing shows. I’m putting that code in sidebar.php. Is there something I’m missing? Thanks.

  13. Hi Dan,

    Sorry to use this to reply but it should be fmoblog_get_latest(); i.e. you’re missing the ()

    Did you get your permissions sorted? I am still having problems with renaming the files, for example I have put the following line in a seperate php file:

    rename(“wp-content/fmoblog_pictures/e11648c650b08784ee80473b17047143_1.jpg”,

    “C:/Inetpub/wwwroot/wp-content/fmoblog_pictures/temp.jpg”);

    but it gives the error:
    PHP Warning:
    rename(wp-content/fmoblog_pictures/e11648c650b08784ee80473b17047143_1.jpg,
    wp-content/fmoblog_pictures/temp.jpg)
    [function.rename]: Permission denied in wp-contentpluginstest.php on line 4

    Despite setting ALL permissions correctly, I think!

    Any help appreciated.

    Regards
    Mark

  14. Mark: I have some idea what your problem could be. IIS servers use the rename function a little diffrent then Apache. I have made some changes in the script for this resason but I have no IIS to test on. I can send you the script for you to test.

  15. # Create a page and press the fMoblog quicktag or manually input [!–fmoblog–] just change the [] to where you want the photos to appear.

    Exactly what does that mean?

  16. I have installed it but on my page it always says:

    “No pictures this month, please check out the archives.”

    I have e-mailed it about 5 times, but it never shows anything, any help would be great.

    If anyone has yahoo messenger and can help, my name is: tkvisions

    Cheers

  17. I am getting this now:

    Warning: imap_open(): Couldn’t open stream {mail.ohwhatanight.info:110/pop3/notls}INBOX in /home/night/public_html/wp-content/plugins/fmoblog.php on line 128
    could not connect to mailserver. quitting …

  18. Everything seems to be going okay, but I too am getting the:

    no permission to write image. quitting … wp-content/fmoblog_pictures

    I’ve chmod to both 775 & 777 with no results. Any suggestions as to where else I might look to solve this problem?

    Thanks again!

  19. Hello.

    I’ve installed fmoblog.
    Almost everything works. But all “fmoblog pages and foto’s” are having the link:
    http://www.myweblog.com/II This is my weblog II/wp-content/fmoblog_pictures/test.jpg

    This “II This is my weblog II” appears everywhere. Only my “front-fmoblog” page is ok (http://www.myweblog.com/index.php?page_id=10)

    How, and where can I remove the title of my weblog, so that my links will work properly?

    Thanks very very much !!

    Greetz from Holland :-)

  20. I am using your great plug-in at http://mblog247.com/

    I want to have a VERY SIMPLE index page for cellphone browswers so I created a cell directory and placed both a html and a php index page in this folder. SO you can visit either
    http://mblog247.com/cell/index.html or
    http://mblog247.com/cell/index.php

    EVEN if its hardwired code – can someone tell me what will the http://mblog247.com/cell/index.php page need to get rid of that error?

    thanks
    Harry

  21. Great plugin! While I’m a complete newbie at blogs and am just getting my first one set up, I’ve had no problems installing plugins. I think I’ve set your’s up correctly – it appears in both the sidebar and on a page, the only problem that I’m having is that no pictures show up (a minor detail)! I’m not seeing any error messages and it appears as if the pictures I am sending to the e-mail account are being received and then collected by fMoblog. After that, they just seem to disappear entirely. I installed ExecPHP too and that seems to be working just fine. Any other ideas?

    Thanks!

  22. Fredrik, thanks for the update! I’ve modified the code to allow a user to pass in the imageID instead of a filename to show a single image. Makes it a bit easier now, since I don’t have to remember filenames, just get hte ID from the Pages that was created in step 8 of the installation process.

  23. hi fredrik. I lloked for a lot of days for an solution.
    and I think your one is the best for my work.

    I have two questions.
    first: I have installed runPHP and execPHP. also i installed yor script. I installed open_imap, I have the mail account.
    great. It works. :-)
    I send an mail. It will automaticly drop in the folder fmoblog_pictures & fmoblog_thumbs. It will show in the sidebar in “Latest from my moblog”.

    but the overview page. nothing will happen.
    what is going wrong ?

    question 2:
    is there an other way to send images to yor script without email ?
    I like to have an gallery under ech normal post.
    I am a photograher. and i wan’ to write about each shooting and want to show some pics like you do with your script.

    please help.
    kind regards
    maxim

  24. Hi Fredrik looks like i cant do it, this is the reply i got from my host [ Unfortunately that script is not supported at this time. I would recommend using a system that does not require IMAP access to the mail servers.]

  25. 1. Yes.
    2. I have changed it several times, but it does not seem to help.
    3. Yes. I have tried sending the pictures as MMS and email from my phone. I am not sure how the phone handles pictures in MMS, but I know they are acting as attachments when sending email.

    Are there any ways to find out if the script runs or not (like a debugging tool)?

  26. The problem was that the server didn’t have imap_open installed. So even though I think I know the answer to this question, but is it possible to use the moblog without using imap_open, or by using some other function?

  27. Fred,
    Great addition to v2.0!! I love the description addition!! Also, I saw the faq that the picture has to be an attachment. I’ve included my pictures in the message itself many times and it was added to my moblog. Just wanted to say THANKS.

  28. Hi Fred,

    I use your plugin to send pics from my pocketpc. therefore i soon asked myself the question if your code allows to attach multiple images to the mail?
    I tried to do that but only the first one showed up.
    Maybee it might be something for the next version?
    We could e.g. seperate the descriptions and titles like this:
    #1# Description Image 1 #1#
    #2# Description Image 2 #2#

    Anyway thx for this great plugin which it already is at this time!

  29. Hi,
    I am testing out your plugin at the above address and have not been able to retrieve an uploaded picture although I know that the email has arrived at the specified address.
    I just get the ”no pictures this month message”.
    What could I be doing wrong?

  30. Pingback: existentia
  31. I really like your Plugin, Thank you! I use it for mi minidigitalcamera pics. I have just one question.

    Is there a way to put a commentform under the pics, so that visitors can comment pictures. I mean a commentbox for every single picture, not for the whole fmoblog.

    thanx

  32. Hi!! I have tested your plugin, and it’s great!! But I’m having some problem with adding description to my pictures. I¬¥m writing some text in the body ,#some text#, but only the image is showing up, any suggestions?
    I’m using my SonyEricsson 750i.

  33. Hi. Thank you fot the great plugin.

    I got a question. Is it possibe to run the fMoblog if the IMAP server is different from the php server?

    My host server does not support IMAP but my ISP supports it. Do I have to resign this awsome plugin?

  34. Hello.

    Thanks for the plugin. So far so good. But I do have one issue I can’t figure out.

    I am new to WordPress and I have the plugin installed and working (grabs pics, etc), and in-fact I have the sidebar working as well. But when you click on the small pictures it is trying to open http://domainame.com/?page_id=&id=2, which for me opens the main site. Now I tried to make a page with the [!-fmoblog->] tag on it, but it just displays the tag when you go to that page.

    So I guess my question is how do you get the small picture links to bring up the larger image? I know it’s something small I just can’t get it yet. Ideas anyone? Thanks!

    Dave…

  35. Hello,
    Downloaded your plugin. Got it to display on the sidebar and it is uploading files. 2 problems I’m having. First let me say, I’m quite the novice @ this, still learning things, I’m a graphic designer so I have SOME exp @ web.

    1). when the photos show in the sidebar… it creates a HUGE gap between the photos and my “archives” section… any ideas on how to eliminate that?

    2). I’m having difficulty with the page… do I put inside the body of the page? I assume when you said create a page, you meant to create a new page from WP?

    Any help would be greatly appreciated… I’ve tried other MOBLOG plugins and I have to say yours is thus far, very easy.

    Many Thanks and Kind Regards,
    Jason

  36. Tried that… I got the page to finally work. But, however, I still have a huge gap if I place the fmoblog_latest before the “archives” or any other list. If I place it @ the bottom, it’s fine. But, I would like to have it @ the top… the “li” tag you told me to use didn’t help. *scratches head*

    Thanks
    Jason

  37. hi, i seem to have a problem with permissions, it says something like ‘cannot write to wp-content/fmoblog, then when i refresh the message goes away. both folders are set to 755. also on the gallery page when i wrote the code, it just shows as text, no pics. sure its a dumb mistake from me but any info appreciated. ta.

  38. hey I have been messing with your plugin and finally got it to pull email from my account. The only problem is when I go to gallery it displays
    “Fatal error: Call to undefined function imagecreatefromjpeg() in (mywebroothere)wp-contentpluginsfmoblog.php on line 30″

    and the image is posted again every time I refresh the page. and it shows only the little x for a placeholder. the picture is there as i can click on it though.

    thanks for any help you can give
    hoyter
    hoyter.net

  39. sorry for all the commenting
    I found i was running 1.3 so i downloaded the new version 2.1? and it is still giving me the same issues but a few more. now it is still showing the little x instead of the thumb nail but the thumbnail no longer links to the full size picture

    when I go to the manage page and try to upload an file i get
    “Warning: unlink(../wp-content/fmoblog_thumbs/t_113368723655.jpg) [function.unlink]: No such file or directory in c:Hoyter.netwp-contentpluginsfmoblog-manage.php on line 104″

    and when I try to delete and image, it deletes it from the list but gives me ”
    Warning: unlink(../wp-content/fmoblog_pictures.jpg) [function.unlink]: No such file or directory in c:Hoyter.netwp-contentpluginsfmoblog-manage.php on line 103

    Warning: unlink(../wp-content/fmoblog_thumbs/t_.jpg) [function.unlink]: No such file or directory in c:Hoyter.netwp-contentpluginsfmoblog-manage.php on line 104

  40. Hi, i’ve installed fmoblog. As you can see, the image doesn’t seem to show up. This is an image I emailed rather than MMS. With MMS for some reason it doesn’t grab the file from the server. I logged into webmail and it’s still sitting there. The file is as an attachment. Thanks in advance, Ainslee

  41. love the script… but one little problem (prob not but its worth a try right?)

    so ive looked around and cant find any information regarding my issue.
    i can successfully email myself images and they do display on a page. but is there anyway i can have it create a new post on the frontpage with that one image?

    please help me solve my problem! thank you very kindly in advance… tom.

    btw: links.

    script dir: http://infinitetwo.com/blog_alone/
    page file: http://infinitetwo.com/blog_alone/?page_id=68

  42. Hey Fredrik, I just reinstalled fmoblog on my WP 2.0 install. Plugin activated and I was able to successfully upload the image, but I can not get the page created. I added the required page tag, but it seems to ignore it with the new editor. Got any suggestions?

  43. In regards to: “Hey what do I need to do in order to get my sidebar.php and gallery pages to have the same size thumbnails with different proportions of course? Exactly like it is here”

    It looks like all your images were of the same size when they were uploaded to the fmoblog. Is there a parser called to resize the images once fmoblog takes them, or does it only reduce by a percentage of the original when it creates a thumbnail? Reason i’m asking, I just want to know if I should keep all my fmoblog stuff at the same size so that I have a neat presentation on my sidebar and fmoblog page.

  44. Well I do not know if you will find a reason :) but making the script more customizable to be use for all the “fans” is not a bad idea… I like the way that script shows it in big resolution :)

    You are not attach to the height/weight desing on the WP theme… :)

  45. Don’t you think you should give the original author of the actual imap/pop3 program the credit? Semsi or simse was the original name from whence the code came (even the same variables are used)

  46. first i must say that this is an awesome idea. some parts broke, missing… after a while i decided to mod it… and have done so quite a bit so far.

    if anyone is interested my blog url is :
    http://infinitetwo.com/getmegone/

    example of post here :
    http://infinitetwo.com/getmegone/01-20-2006/Buy-My-Car-Please/

    what i changed was the posting to a page, i made it as a post instead. also adds it to a category and all that jazz…
    most of the backend php code is direct with my server information. some rather. i will add config options as a menu so everyone can use it like i am.

    (Fredrik Fahlstad: if you want to see what i have mod’ed ill send you a copy first. dont want to step on anyones toes here)

  47. Hello,
    This seems to be a great plugin for WP. But, I’m having some trouble setting it up.
    When I try to upload through the WP admin I get the following error:

    Warning: move_uploaded_file(../wp-content/fmoblog_pictures/greenaaron.jpg): failed to open stream: Permission denied in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 71

    Warning: move_uploaded_file(): Unable to move ‘/tmp/phppl5h7t’ to ‘../wp-content/fmoblog_pictures/greenaaron.jpg’ in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 71
    ERROR: Unable to upload file.

    Warning: imagecreatefromjpeg(../wp-content/fmoblog_pictures/.jpg): failed to open stream: No such file or directory in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 23

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 25

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 26

    Warning: Division by zero in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 28

    Warning: imagecreatetruecolor(): Invalid image dimensions in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 29

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 30

    Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 31

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 32

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 33

    Warning: imagecreatefromjpeg(../wp-content/fmoblog_pictures/.jpg): failed to open stream: No such file or directory in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 40

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 43

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/doughboy/aspears-www/asBlog/wp-content/plugins/fmoblog-manage.php on line 44

  48. I did. I Ftp’d to my site through the terminal and ran the chmod command. Chmod 755 . Do i have to do the whole wp-content directory? Thanks for the quick response

  49. i have installed fmoblog on a site http://www.tonybatman.com
    and it used to work just fine then one day the images stopped being “clickable” (i can still upload and see the thumbs)
    ..i have evne tried switching themes and added the code but cannot seem to get it back the way it was (perfect).

    any suggestions?

  50. worked out the initial problem was a gallery2 installation and calling the fMoblog page gallery…
    now its uploading pics from ‘manage’ in wordpress2 but say if I upload an image called cmb125.jpg with a title ‘tester’ then in the online ‘fmoblog_pictures’ folder it appears as ‘11401533374961.jpg’ and doesnt come up on the display page at all. meanwhile if i try to delete the image from the manage section, it gives the errors: ‘Warning: unlink(../wp-content/fmoblog_pictures11401533374961.jpg): No such file or directory in /home/taotonic/public_html/wp-content/plugins/fmoblog-manage.php on line 103′. is it missing a ‘/’ after the fmoblog_pictures’ folder or sth? any suggestions appreciated…

  51. tried everything, installed the plugin, activated it, set up a dedicated email account, created the page etc.
    when I send an email to this account, it shows up there (as planned) but then the plugin grabs the email (also as planned) and sends it into nirvana (NOT as planned) – no traces in any of the created directories and (of course) not on the wordpress page as well.
    not a single image ever made it to the page, which can be found under “Fotos von unterwegs”.
    Any idea?
    Thanks for your help!

  52. Fredrik,

    thanks for the update, unfortunately it still does not work. I don’t get any error messages (and manual upload using WordPress/manage still works well), but all emails sent to the “secret” account dissapear.
    It seems that your plugin checks the account, and then deletes the whole email without processing it. I know that the email reaches the account (because I have set up a automatic CC: for this account to another account for testing purposes). Image is attached (no inline) and everything seems to be ok, except that the images do not show up on the WordPress page.
    Does your script inlude some check for allowed senders? If yes, can I switch it off?
    My WordPress installation is completey standard, no other paths, just a few translation changes.

    Thank you for your kind help.

  53. Hi Fredrik
    Your moblog rocks. All i would like to ask is if there is anyway for the pictures to be resized, as the full pics currently are too big for my main page and cover up the side bar. Any ideas?

  54. I have a quick question. I’m setting up a WP2 blog and am interested in this plugin. Reading through the installation instructions I came across “Please consider that running PHP code within posts is a security risk.”

    Isn’t WordPress running php within posts all the time? Would this script be any less secure than using PHP to pull data from SQL? Sorry if this is so simple that its eluding me, I’m just trying to understand if I’m opening any security holes with this plugin.

    Thanks in advance.

  55. I’m having the same problem as spacecaptain. The email gets sent from my phone fine, shows up in the email fine, is retrieved from the email fine bt fMoblog, deleted from the email server, but no image ever gets added to fMoblog. Adding an image manually through the manage function works fine.

  56. Well i’m not certain, but based on what i’m seeing through trial and error with heavy use of debug statements, fMoblog simply doiesn’t work properly with how my phone sends picture mail. My provider is Sprint and i’m using a Samsung a900 phone. It works fine with Flickr but doesn’t seem to work here. I’d much rather use fMoblog if theres anyway to get it working, but for now it looks like i’ll have to go back to Flickr :(

  57. Sorry to flood the comments but wanted to let you know what I found. In the end what I found was the problem was the way the Sprint picture mail works. The image is NOT attached, but rather an HTML email is sent to the email address containing a standard img src markup tag pointing to the image on the Sprint Picture Mail website. Hence the reason fMoblog doesn’t parse it properly.

    I’ve pretty much totally rewritten the mail handling code in fMoblog, and I still have more code to write to handle descriptions properly, but I do now have it working on Sprint picture mail. Its very specific to Sprint picture mail though so won’t work on anythign else. However if there is anyone else out there who uses Sprint, i’d be more than happy to share the code with Fredrik.

  58. Hey Fredrik….

    I installed this today.. and everything seems to work ok except 2 things…..

    one… the descriptions don’t show when I email from my phone… I put everything between # signs and still nothing….

    two… I can’t get my sidebar to show the latest image… I put in the code [?php fmoblog_get_latest; ?] in my sidebar.php.. but it seems to not be working…. and I did put in the runPHP plugin and made sure the runPHP box is checked in the page I created… any ideas?

  59. An excellent plugin!…however, I am facing one problem. As far as I can see, it has not been brought up in the communciation above. The first and second time I sent to my blog (from a Nokia phone) appeared perfectly correct. After that, nomatter what I try, it will not update with additional images. I originally used RunPHP and has now installed ExecPHP, but with the same result. I do not know if my provider supports imap_open () , but considering it worked at first, I presume they do. There are no signs of error, just no updates to the moblog page. Would greatly appreciate your comments.

  60. Hello,

    I’m a huge moblog fan and i always wanted to have one for my own. So i installed fmoblog and set the permissions for the folders. But still i get de message “no permission to write image. quitting … wp-content/fmoblog_pictures”. What can it be? Where can i fix the problem? In fmoblog-manage.php, change the $PICTURE_FOLDER = ..//wp-content/fmoblog_pictures/? My weblog is in de following path: weblog/wordpress/wp-content/fmoblog_pictures.

    Thank u!

    Chris

  61. Fredrik
    I Checked the permissions and tried another program but the problem is still:
    Warning: unlink(../wp-content/fmoblog_pictures/.jpg): No such file or directory in /www/nl.klicked/public_html/weblog/wordpress/wp-content/plugins/fmoblog-manage.php on line 103

    Warning: unlink(../wp-content/fmoblog_thumbs/t_.jpg): No such file or directory in /www/nl.klicked/public_html/weblog/wordpress/wp-content/plugins/fmoblog-manage.php on line 104

    This is when i delete a file in the fmoblog admin. When i trie to uload the file it says upload succesful. In the frontend i get de same error with the permissions.. en no image. Same story with sending with my mobile.

  62. Great plugin! Got it installed, the images are showing up in the side bar, though Im having the same problem as Chris was last October. When I click on a thumbnail from the sidebar it goes to the blog homepage. I have setup a page for the moblog and put in . Im sure Im missing a really simple step, but I just cant figure it out.

    If anyone has any advice, Id love to hear it!

    Thanks again for this great pluin!

  63. Hi!
    After a little bit of tinkering i got your plugin to work. Love it!
    But im missing a feature. I would like to have my moblog posts to be posted in my blog as a standard post, and that you could choose in wich category the moblog post should fall under.

    Hope you understand my thoughts. Im not that good at english. Maybe we shoud discuss it in swedish :)

    regards
    /Patrik

  64. Hi !

    I’m having a few problems aligning the latest thumbnail, I would like to align it to the right, but it keeps coming up in the centre
    Can you help!?
    If you look at my site you’ll know what I mean, I want it to look like a Polaroid picture

    Regards

    Nap

  65. ermm.. i tried everything.. all i get when i upload image from.. the wpadmin -manage- fmoblog is

    ERROR: Unable to upload file.

    Thats all?? i dont get it why.. i followed exactly as the instruction said.. :(
    plz help..

  66. Thanks! Better than running Gallery with integration plugin for my use.

    Some install trouble for me: Crashed during activate, caused by wp-admin/upgrade*.php was deleted.

    And why would anyone do that? I thought I was beeing safer when deleting files I thought was only used to upgrade to 2.x :P

  67. hi fredrik,

    its me again ;-) the one who want to change so much on your script.
    what I try to whant is to send .3gp video files via mail to the script.
    I have a good quicktime embed code to display the files on a website.

    I failed to mofify the script.
    I replace all .jpg with .3gp
    replace the img tag with the embed tag.

    the big problem ist the automatic thumbnail and rezise function.

    do you see a way to modify the script for using it with video files ?

    kind regards from germany
    maxim

  68. I installed the plugin, but I don’t get any response.
    The page only shows “No pictures this month, please check out the archives.”

    I tried to write a wrong mailserver address, but I don’t even get an error message.

  69. Is this plugin not working for anyone else in the new wp update?

    In the plugins page it seems to fill the screen with the plugin code, although it seems to still pump out the pictures.

  70. I also would like to integrate Lightbox into this excellent moblog software. I’m using the Lightbox plugin for WP that automatically changes all links to images to Lightbox popups.

    All I need to make this work is for the thumbnails to link directly to their full size counterparts. I have been tinkering with the PHP, but I can’t figure it out. Is this harder than it seems? Any help is appreciated.

    Great work, Fredrik. Really love your stuff.

  71. Well I finally got this working. Was pretty simple, actually. The solution, for anyone else wondering how to use this with Lightbox, is to change line 300 from:

    $fblog .= "imgid'>

    to:

    $fblog .= "sixfourdata' rel='lightbox'/>

    You also need this Lighbox JS WP plugin installed. One very nice benefit of this method is it enables you to run fmoblog on your front page, as a post, basically converting a wordpress install into a standalone moblog.

    Thanks again for the great plugin, Fredrik.

  72. Great work with the plug-ins! The fMoblog plugin works fine if I upload an image from the WPAdmin—>Manage—>fMoblog; however, if I send an image (attached) via e-mail it does not download put it up on the page. In fact it doesn’t even check the mailbox for new messages.

    I know you’re busy with other things as the last time you checked this page was a little over two months ago, but if you get a chance just a quick look would be nice….

    Thanks!

  73. As of the not checking email, plese take a look at the requriments, you need imap_open in your PHP installation and GD library for the image proccessing. Check with your web hotel.

    lvlolvlo: Yup, you are right.

    maxim: Not at the time.

    Jeremy: Thanks.

  74. Exactly the plugin I have been looking for the past couple of weeks! Great!

    I have some problems sending email from my phone, but that is not something I expect you to help me with. ;) I’ll figure that one out myself…

    What I do seem to have some problems with, are receiving mail from my gmail-account. (Made one dedicated for this purpose).

    Tried editing this line in fmoblog.php:
    if (! $mail = imap_open( “{” . $MAIL_SERVER . “:110/pop3/notls}INBOX”, $MAIL_USERNAME, $MAIL_PASSWORD))

    to this:
    if (! $mail = imap_open( “{” . $MAIL_SERVER . “:995/pop3/ssl/novalidate-cert}INBOX”, $MAIL_USERNAME, $MAIL_PASSWORD))

    To try to connect to the POP-SSL service of Gmail. But so far I seem to have no luck. Are there any way to enable debugging, so I could easily see where it fails?

  75. I finally found out!

    The sollution was so simple, I am ashamed not to have seen it. But to cheer myself up, I have discovered hundres of others with the same problem while using google. So I’ll just have to start posting in forums to help others now. :)

    The sollution was simply to use ‘@gmail.com’ after my username. It won’t accept only “username”, one must juse “username@gmail.com” =)

  76. Well, now it’s all up-and-running. And I’m loving it. :)

    One question though; Is it possible to get the plugin to display the Title, and maybe also the description, underneat the picture in the Sidebar?
    Would love that :)

    Thanks for this great plugin! I have searched and searched a long time. I knew exactly what I wanted, and what kind of functions. Suddenly I found your plugin, and you saved my day! :D

  77. Sorry for spamming you like this. But if I may request some other feature for the next version, I would say some kind of commenting-feature would be nice. Maybe just use the one already in WordPress, by simply integrating it in the script somehow? … I’m no programmer, so I’ll leave that one up to someone who knows what they’re doing. ;)

    Thanks again!
    // J??rn

  78. Hi!

    I can’t get the email to work. When I’m activate exec-php, I get this error message: Parse error: parse error, unexpected ‚Äò[‚Äô in C:homekunder6821mathias.zetterfeldt.sewp-contentpluginsexec-php.php(45) : eval()‚Äôd code on line 9. What does th?°t mean? Is that the problem why I can’t get the email message right? It seems that fMoblog never checks the email…

    Everything else is working…almost..when I click on a thumbnail (which I uploaded in the admin part of WP) I get the big picture, but my sidebar is under the page…not right of the picture as it should be…

    Can somebody, maybe Fredrik help me out?

  79. Hi Frederick,

    Killer plug-in! I’ve made it past the hard part and everything is installed and running. Before I get my site up and running i’d like it to look like your fMoblog sample site with the photos lining up in a horizontal row. On my site they just stack up in vertical columns. How can I make my blog look like yours. Here’s what i have so far:

    http://www.irenec.com/wordpress/?page_id=3

    Thanks so much ahead of time for your help!

  80. Hi Frederick,
    Great plug-in! I love it. I’ve gotten past the hard part – everything is installed correctly and running no problem. My question is do I get the images to line up horizontally like on your sample fmoblog site? My photos line up vertically and my page will get awefully long if they keep stacking vertically rather than across the page. I would really appreciate your help!

  81. Hej Fredrik jag t?§nkte test din fmoblog men har fastnat.
    Jag har ett webbhotell hos one.com och nu ?§r det inst?§llningarna jag ej fattar
    Mailserver vad ska det st?• d?§r ? om det ej ska vara ?§nns email ska det vara pop3 eller smtp n?•got ? Och sedan ska jag skriva in anv och l??sen till ftp ?

    Hopps p?• svar

  82. Quick fix for the thumnail display in the manage page. If you have your WP installed in a subdirectory instead of the server root the thumbnail images are broken. I fixed it by changing line 203 in the fmoblog-manage.php file from:

    "sixfourdata'>

    to

    "sixfourdata'>

    Nice module by the way. Is there any way to have the photos automatically go into a post instead of collecting in a gallery?

    Thanks!

    — Dan

  83. Hi, I have seen a few users with this same issue. All of the answers point to permissions, BUT1 that does not add up. Like in my issue and some others, the script works fine with some images, but does not post thumbs ofr slighly larger images. I feel pretty strong that the issue is in the code, not allowing the thumbs to be created for images larger than a certain size.
    See below:

    Hi,

    Very nice work on this script. It is just what I am looking for.
    I have installed it on a couple of different domains, but I get the same issue no matter what I do. I can upload some images just fine, but some that are just a tiny bit larger will not produce a thumbnail. They still upload, and the larger images is there if you click on the thumb placeholder, but it brings up some error codes each time I try to post a larger images format. It appears to be a highth and width issue more than a file size issue. None of these imagea are more than about 60K, but the ones that do not produce thumbs are just a little wider format I guess.

    here is the site, you can see what I mean, if you click on the x’s where the thumbs should be.

    http://kgb.texttoweb.com/?page_id=3

    Here are the errors that are produced whenever I upload a pic much lager than 500 pixels wide:

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: ‘wp-content/fmoblog_pictures/11651611499433.jpg’ is not a valid JPEG file in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 30

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 32

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 33

    Warning: Division by zero in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 35

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 36

    Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 37

    Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 38

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 39

    Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 40

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: ‘wp-content/fmoblog_pictures/11651611499433.jpg’ is not a valid JPEG file in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 46

    Warning: imagesx(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 49

    Warning: imagesy(): supplied argument is not a valid Image resource in /home/httpd/vhosts/texttoweb.com/subdomains/kgb/httpdocs/wp-content/plugins/fmoblog.php on line 50

    Can you please provide some assistance?

    Thanks,
    Dave Beightol

  84. Hey, love your script works really well! Was using Mafia, but had some problems so moved it over to Fmoblog, just a few issues that hopefully you can solve!

    1. Is it possible to simply display all the pictures on the one page, instead of using the calender system, so say 20 images per page, and you simply go thought the pages

    http://joi.ito.com/moblog/

    2. To be able to use Permalink

    Hopefully you can help me out :)

  85. I’ve installed per instructions. I also have runPHP installed. fMoblog is not retrieving from server.
    Here is my error message.

    Warning: imap_open() [function.imap-open]: Couldn’t open stream {mail.slablog.net:110/pop3/notls}INBOX in /home/slabalb6/public_html/wp-content/plugins/fmoblog.php on line 128
    could not connect to mailserver. quitting …

    my web page is http://www.slablog.net
    Go to the right sidebar and click on blog photos

    I have looked at my server PHP setup but really don’t know if it has imap and GD Library. Can you check it with ‘info.php’ and tell me?

    Thanks

  86. Okay, I tinkered around until I finally got it to work. It didn’t say anywhere, but I figured out I had to add/change the server,user,pw parameters in the fmoblog_manage.php file. Then I also had to change the permissions to 777 in the pictures and thumbs directories. What a puzzle! But once I got it working it was sweet. Thanks!

  87. HI
    This plugin doesn’t work for me. I tried going into the Admin page and I get a 404 so I copy the fmoblog_options.php file into wp-admin folder and then I get Fatal error: Call to undefined function get_option() in /home/.chasm/neopangea/jmrpub.com/blog/wp-content/plugins/fmoblog_2_1/fmoblog_options.php on line 6

    What am I doing wrong?

  88. post made with fmoblog would be like normal post which made with pc?they’ll be in pages like regular post or i need to put some codes every time?whenever i mail, the post would be published or what? thanks for any answer.

  89. Hi, it will be nice if I can get this to work, but I am getting a database error. Any help will be appreciated. I am running the latest version of WP.

    Thanks,

    Javy

  90. The database error is this (Sorry forgot to include in first post):

    WordPress database error: [Table ‘db199431877.wp_images’ doesn’t exist]
    SELECT * FROM wp_images WHERE date LIKE ‘%2007-06%’ ORDER BY imgid DESC

    WordPress database error: [Table ‘db199431877.wp_images’ doesn’t exist]
    SELECT DISTINCT DATE_FORMAT(date,’%Y-%m’) as dates, count(date) as counts, imgid FROM wp_images GROUP BY dates ORDER BY imgid DESC

  91. Pingback: Wangtam
  92. I found this error when execute the page..
    Please help me, what must to do

    WordPress database error: [Table ‘balijb_wrdp1.wp_images’ doesn’t exist]
    SELECT * FROM wp_images WHERE date LIKE ‘%2007-10%’ ORDER BY imgid DESC

    WordPress database error: [Table ‘balijb_wrdp1.wp_images’ doesn’t exist]
    SELECT DISTINCT DATE_FORMAT(date,’%Y-%m’) as dates, count(date) as counts, imgid FROM wp_images GROUP BY dates ORDER BY imgid DESC

  93. Thanks for this great plug in! Two things – I don’t understand what I need to do to get a larger view of the thumbnail.
    And – this doesnt work with Sprint picture mail – but hardly anything does. I guess I need to switch – or find a programmer with sprint that can hack into your mod.

    Thanks again!

  94. Hello Fahlstad.

    I really enjoyed your fMoblog-plugin earlier, on a blog I had. I’m now concidering using it again – but have you stopped the making of it totally?

    Would be great to have one “more compatible” with the new WordPress, with this plugin in the WordPress Extension directory, and with some more features… Would love to be able to make something like this myself, but I have no programming skills ;)

    Would you ever consider making more out of this great plugin? :-)

    Kind regards from Norway,
    jorno

  95. Does this plugin support mobile text updates?
    Occasionally, due to my career, I have large swaths of time where I have to entertain myself and have quite a bit of time for blogging. Right now I am writing the post as an email, then copying and pasting to my WordPress site. If I send them to WordPress’ blog by email feature, the text is encoded into Base64, so if I want them to show up I have to access my blog via the web browser. But doing this is slow and painful. I have figured out how to post photos, and I often take advantage of that. But as a writer, I would really like to have text posting capabilities.
    Please help! I’ve been looking for a solution for several weeks now, and haven’t figured it out yet!

  96. Any idea on this error when going to the page:

    Warning: imap_open() [function.imap-open]: Couldn’t open stream {mail.stangsgarage.com:110/pop3/notls}INBOX in C:Inetpubvhostsstangsgarage.comhttpdocswp-contentpluginsfmoblog_2_1fmoblog.php on line 128
    could not connect to mailserver. quitting …

  97. Pingback: 10lofi » Hej

Leave a Comment.