RSS Icon Twitter Icon Linked In Icon

Featured

1 2

Latest

Find Deleted SMF User Posts

When an SMF member deletes their account and then contacts you to delete their posts, it’s not an easy request because the posts are no longer attached to a user account. What can you do? You can query the database for the list of the messages they posted. SELECT * FROM smf_messages WHERE posterName='{deletedusername}' Replace all of {deletedusername} with the username of the deleted member and update your table name for smf_messages. You could run a DELETE query, but this could result in … Read entire article »

Drupal Query to Disable Comments on Node by Content Type

A handy drupal snippet, when someone’s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand. … Read entire article »

Wordpress Plugin Exec-PHP Hack – Disable For Post

If you’re running the Exec-PHP plugin in Wordpress and struggling with posting your php code blocks without it being executed, I’ve made a quick hack to disable this plugin per post by adding a custom field. You just have to remember not to upgrade automatically or you’ll lose the changes. With a few lines of code and a Custom field in on your post entry page, you can disable Exec-PHP and it will skip this content. Note it will still … Read entire article »

Assign Guest Posts to New Member in SMF

Or as I like to call it, “Query to assign guest posts to user who threw a tantrum and deleted their account and then wanted it back again.” We get these at least twice a year, usually around the holidays. … Read entire article »