Archives for the tag “ WordPress ”

Stéphane Thibault >_

Hosting a WordPress site on AppFog, without persistent file storage » StevePerkins.net.

[…] AppFog currently does not offer a persistent file system. As with most PaaS providers right now, all persistent data is expected to go in a database.

What this means is that every time your application restarts, all files revert to the state they were in when last uploaded. Most WordPress activity, such as posts and comments, lives in the database and requires no special consideration. However, if you install some plugins or themes, or any other updates which write to files, then all those changes will be rudely rolled-back. Even worse, the database will not be rolled-back, so your WordPress files and data may be out of sync and broken.

Stéphane Thibault >_

sthibault bookmarked a link:

Few days ago, we ran into an issue where a user’s site got hacked and their admin account was deleted from the database. This locked them out of their site without any other entry. We went in to the phpMyAdmin and created a new admin user to grant them access. In this article, we will show you a step by step guide on how to create an admin user in WordPress Database via MySQL.

Stéphane Thibault >_

sthibault bookmarked a link:

I wanted to attached a function to an event, publish_post whenever the user click on publish or update button when they have done with their post in WordPress. Usually, global variable $post will solve this problem easily. But for the case of publish_post action hook, this is not the case. The global variable $post which is accessible in any area of WordPress is not accessible when a user clicked on the publish button. The global variable $post will return ‘null’ instead of the post object which contain all the post data. Let the nightmare began.

Stéphane Thibault >_

sthibault bookmarked a link:

Today we are going to look at getting the content of a post using ajax and then display it in a popup box. The popup part is actually the easiest part, thanks to the fantastic Simple Modal plugin for jQuery written by Eric Martin.

So the basics here are:

* we call a page using ajax, passing the id of the post
* The page grabs the content of the post we requested and returns it to the script
* We then output the content in a div and “simplemodal” it