Is there a way to save posts when WordPress goes offline? - wordpress

Is there a way to save posts when WordPress goes down?
Can I use a hook that saves this post into a cookie if no internet connection?
And when I got the connection back it will "run" the offline file and upload it to the WordPress installation.
Hope you understand what I want to achieve

For that you would have to have a client side app handling post creation.

Related

WordPress, send articles by facebook messenger each day

I have a wordpress website who publish articles, i want to automacaly send a selection of articles to users in their facebook messenger
I saw a website that do that, and I want to do same
Thank you
Maybe there is a Wordpress Plugin for that, but I would do it like so:
Creating a cronjob and executing a php file once a day. (How this works in WP: https://www.a2hosting.com/kb/installable-applications/optimization-and-configuration/wordpress2/configuring-a-cron-job-for-wordpress)
This file is getting all the new posts (or maybe posts with a specific WP Tag or whatever you want to send to your users) from the WP API.
Then, in this file, you connect to the Facebook Send API https://developers.facebook.com/docs/messenger-platform/reference/send-api/ and send this posts to your users. Read the API docs for how that actually works

how to do lengthy operation in wordpress plugin

I am learning wordpress plugins and getting to know it fairly well.
now i think i need help doing small operation is fine but length operation how we do that. i guess AJAX or cron job
an example say i am trying to use content spinner api .so i have to send 100 post title and content to content spinner ,wait for response and update post title and content.
whats the best way to do that in wordpress plugin
Ajax where each post is sent to content spinner api and on result we update UI. please point good tutorial for that
or a cron job but i know wordpress cron job is limited
please please advise
If you do not want to keep the user locked until the API returns the result best option would be to use a cronjob that will run a PHP script which will update all your articles. Not necessarily Wordpress cronjob because that could cause delays if the site doesn't have any traffic, you could use a system cronjob.
With AJAX you will still lock the user, if the user closes the page the API call will not be finished and the title and content won't be updated.
Depends mostly on how the plugin is going to be used. If you want to spin the content on bulk articles (100 posts at once) go with cronjob, if you want to spin the content after the user has written the article do it with AJAX or hook your plugin on save_post action.

How to create an offline form for submitting WP posts

You may have seen WP plugins that allow guests to submit posts. Those submissions proceed to the WP posts area where the admin can edit/publish them.
I want to create a form like this that I can install on my (and other people's) computers, so they can fill out the form fields for a WP post, save offline, then send to my WP site when ready.
Can anyone tell me the steps involved, and, if there is a description for what type of thing this is, please let me know to aid my search.
I am learning code at present and want to learn while building tools.
Thanks
Hi hope I can give you some hints with this answer.
I don't know what programming language you would like to use, but for the communication with your Wordpress blog you could use the WP API to create a post over REST API. It offers a API to create and edit your Wordpress Posts over HTTP.
Your programm just have to check if an connection is possible and then execute the API calls.
You could use an database to store all created post and then call the Create Post Task with the POST Method over HTTP for each post saved offline.
When the creation was successful you could update your offline database, so that the post is marked as already created.

Weird Issues with WPMU I Can't Figure Out

I know I should post this on the WPMU forum, but no one writes me back and I'm just trying to find a larger audience hoping you have run into this issue as well.
I have built a WPMU site for a client, and I am able to upload media into the Media Library and within a Post or Page perfectly. I thought my job was finished, yet the client can't upload any media at all. I'm located in Kentucky, they are located in New England (if that even matters). I had the client record their process of uploading as I thought they were simply not following my instructions for uploading, yet they are doing everything correctly.
When uploading a file it goes through the process of allowing them to select a file and it says it uploads it, yet when it is finished uploading nothing is in the Media Library or in the Post.
Video of the client trying to upload in Media Manager (http://www.screencast.com/users/CatherineWeber/folders/Jing/media/945d33fa-a752-45fd-9bc1-f76fc5a1814a)
Video of the client trying to upload within a Post (http://www.screencast.com/users/CatherineWeber/folders/Jing/media/b5c60e25-f0b5-40c0-a820-c2fc9eb00906)
Asking the client to disable Flash Uploader didn't work :(
Yet, I can login to the WPMU site, access their blog's backend and can easily upload a ton of files. I am so lost at to what the issue is here. I am running version 2.8.4a, and will try to upgrade to latest release hoping this will fix things.
Are you using same blog and same username to login ?
Ask the client what media exactly he is trying to upload. PHP server has "Maximum allowed size for uploaded files"(upload_max_filesize) option. So if this limit is set to 2M(M stands for MB in php.ini), but the client is trying to upload something bigger...it can't be uploaded.
Also check the filetype...I'm not sure, but I think wordpress has such a filter.
If even this doesn't help, ask the client to record itself what exactly is doing on his screen. There could be errors returned, or any other little missed, by him things ;)

Wordpress Update through email

I have a blog, that is update pretty often. I like, while on the road to be able to use my blackberry or any eepc to prepare my post, review it, and send and email to somewhere that will be able to update my blog
three solution come to my mind
offline blog, edit and resync when return (not super good)
send email, update blog with blackberry
write text doc, send it by email and manually copy-paste in new post after return
I like not to have a list of all the possible solution, but the best working solution that you have use/try and like...
I use wp 2.6
thanks
--
Note just as boj note, I discover the already there feature included in wordpress... but I like my post to be in a Drafts state, because some photos and later editing will be done, but most of the post will already there
I have found that list. Just as Weblog Client said, there is a tons of software to do that, i just like THE BEST ONE !
Post to your blog using email.
WordPress can be configured to use e-mail to post to a blog. To enable this functionality, you need to:
Create a dedicated e-mail account to be used solely for posting to your blog,
Configure WordPress to access that account, and
Configure WordPress to publish messages from the e-mail account

Resources